You are not logged in.
Okay, I've got latest wine, run winecfg, autodetect, I get 2 entries "/media/dvd" "/media/cd" The hardware is a DVDrom and a DVD RW
If I put a CD into the DVDrom drive, go to /media and double click the cd rom folder, it takes me to the contents of the cd.
If I put a cd into the DVD RW drive (Like in multi-cd installs), go and double click the dvd folder under /media, I get taken to a blank folder with no data. Also, the contents of the cd in the dvd RW gets mounted as its own special folder under /media.
How can I make Fstab / Udev mount the DVD RW cd's under /media/dvd?
Fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
/dev/sda5 / ext4 defaults 0 1
/dev/sda6 swap swap defaults 0 0
/dev/sda7 /home ext4 defaults 0 1
mtab:
proc /proc proc rw,relatime 0 0
sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=466077,mode=755 0 0
/dev/sda5 / ext4 rw,commit=0 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
devpts /dev/pts devpts rw 0 0
shm /dev/shm tmpfs rw,nosuid,nodev 0 0
/dev/sda7 /home ext4 rw,commit=0 0 0
gvfs-fuse-daemon /home/eric/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=er$
/dev/sr0 /media/cd iso9660 ro,noexec,nosuid,nodev,unhide,user=eric 0 0
/dev/sr1 /media/D2PAK_2 iso9660 ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=100$
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
What happens if you go to /media/D2PAK_2 instead of /media/dvd?
Offline
I can't answer your question, only confirm the issue: wine doesn't recognize cd and dvd-drives?
I'm using foobar2000 and Exact Audio Copy. The first prog doesn't recognize audiocd's whereas the second does...
My only hint here would be something like linking /dev/sr0 and /dev/sr1 against /dev/cdrom and /dev/dvd....
If you didn't mean this, than I'll keep my mouth shut...
Offline
> wine doesn't recognize cd and dvd-drives?
I'm certainly not an expert on wine, but you have to add drives in winecfg, you start with C: only.
> linking /dev/sr0 and /dev/sr1 against /dev/cdrom and /dev/dvd.
That's right
[karol@black jumanji]$ l /dev | grep cdrom
lrwxrwxrwx 1 21 07-13 01:04 cdrom -> /dev/cd/cdrom-1:0:0:0
lrwxrwxrwx 1 21 07-13 01:04 cdrom0 -> /dev/cd/cdrom-1:0:0:0
[karol@black jumanji]$ l /dev | grep sr0
lrwxrwxrwx 1 3 07-13 01:04 scd0 -> sr0
brw-rw---- 1 11, 0 07-13 01:04 sr0
As you can see /dev/sr0 is a device and /dev/cdrom is just a link - a dummy.
Offline
What happens if you go to /media/D2PAK_2 instead of /media/dvd?
It takes me to the actual contents of the CD that is in the DVDRW drive, but I don't want to have to make a special mount JUST For the other CD every time I want to install something.
This is interesting, If I put 2 CD's into the drives. the DVD drive is /dev/sr1, CD drive is /dev/sr0
if both CD"s are mounted, "umount /dev/sr1" correctly unmounts the DVD drive's cd, but "mount /dev/sr1" with the CD still in the dvd drive, returns "mount: can't find /dev/sr1 in /etc/fstab or /etc/mtab"
Last edited by FathisAeril (2010-07-14 04:51:52)
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
You can mount many drives to the same folder, but you'll be able to access the contents of only one of them if they are mounted at the same time (or you'll get an error):
/dev/sr0 -> /media/cd
/dev/sr1 -> /media/cd
...
I don't know why it uses the disk label as the folder name but I think you can override that. What do you use for (auto)mounting?
Offline
If you're using HAL comment yout fstab as it was in the first place:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
/dev/sda5 / ext4 defaults 0 1
/dev/sda6 swap swap defaults 0 0
/dev/sda7 /home ext4 defaults 0 1
Then go to your home and do this:
ln -sf /dev/sr0 /home/<USERNAME>/.wine/dosdevices/d\:
ln -sf /dev/sr1 /home/<USERNAME>/.wine/dosdevices/e\:
Change d\: or e\: for any available letter so it won't overwrite any other link (ls .wine/dosdevices/). If it doesn't work we'l try something else, good luck.
PS: sorry, english it's not my native language.
Last edited by oTarUX (2010-07-14 05:22:16)
Circa mea pectora multa sunt suspiria
De tua pulchritudine, que me ledunt misere.
Tui lucent oculi sicut solis radii,
Sicut splendor fulguris, qui lucem donat tenebris.
Offline
Yes I am using HAL, as I have not yet found a tutorial of fully replacing HAL with Udev,
I'll try the install again in the morning and tell you how it goes.
Once again, I thank you guys, and the arch community as a whole, for the speed and accuracy of these replies. Makes me glad I switched to Arch
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
Unfortunately, after running both commands re-trying the install, it still does not work
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
> it still does not work
You mean you can't use your optical drives as disk D and E? Or are you referring to /the lack of /media/dvd?
Create a folder named /media/dvd (if it doesn't exist already) and run
sudo mount /dev/sr1 /media/dvd
(if you have set up your permissions and groups and have sudo installed, it should work).
Last edited by karol (2010-07-14 21:11:17)
Offline
Did you mount the cd/dvd devices after creating the links? If you have automount enabled it should work, that way you don't have to change your mount path from winecfg every time a cd/dvd is mounted under /media/<LABEL>.
Circa mea pectora multa sunt suspiria
De tua pulchritudine, que me ledunt misere.
Tui lucent oculi sicut solis radii,
Sicut splendor fulguris, qui lucem donat tenebris.
Offline
Yes all my devices are set to automount
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
> Yes all my devices are set to automount
Have you tried mounting manually?
How many optical drives can you see in winecfg?
Offline
auto-detecting in winecfg reports NO optical drives present, we had to make them using sr0 and sr1, but even that didn't work. Is this a Hal/Udev-Fstab bug? A wine bug? Or did i Miss step with installing wine to get it to detect cdrom's/dvdrom's?
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
IIRC I had to input paths to cd-roms in winecfg, I don't use auto-mounting so I can't speak for that.
Offline
using sudo mount sr0 to cd and sr1 to dvd, I was able to get dvd to link back to dvd and cd to link back to cd, correctly. Im retrying the install now,
Oddly though, the contents of the DVDROM this time were made into its own, with CD being blank (before i ran the commands) and dvdRW linked back correctly. I've double checked that I didnt get the cd's in the wrong drives. I'm not sure if I did this, I'll check after the install, but it seems that whichever is mounted first, gets put into the dvd or cd folder correctly, and the second to be mounted gets put into its own.
Last edited by FathisAeril (2010-07-15 01:00:12)
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
http://wiki.archlinux.org/index.php/Ude … _Each_Boot
You should do sth similar (udev rules) for your optical drives.
Offline
Problem -- my media folder is now missing the CD folder. My media folder typically held "cd" which was for my DVDrom drive, "dvd" which was for my DVDRW drive and a folder named "fl" which im assuming stands for floppy...which I dont have anyway.
Except now, my media folder says "dvd" and "fl" with no "cd"
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
sudo mkdir /media/cd
Offline
That'll make the directory, will it actually work with linking back to the contents of the cd inside of the drive?
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
If you mount it, it will.
Offline
Just the one time or every time after that?
like if I run,
sudo mount /dev/sr0 /media/cd
will that make it so ANYTIME any CD is put into sr0 (my Dvdrom) it will automatically get mounted under cd? or will I have to run it everytime?
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
That's manual mounting: you have to mount AND umount every time you want to access a drive.
Without the udev rules the drive names (sr0 & sr1) might get mixed up . I don't use automounting (because I use external drives very rarely) so you have to refer to the wiki. Some udev rules should solve it.: you put a disk in a drive, the system mounts it accordingly.
Offline
Okay, I'll check out the wiki, but after I do. Is there anyway I can, with automounting, permanently link sr0 back to "cd" ?
I tried going into /dev/ and double clicking both cdrom0 and sr0 and both gave me back errors about block devices
It doesn't matter how much training you have. A broken rib is still a broken rib.
Offline
> Is there anyway I can, with automounting, permanently link sr0 back to "cd"
Yes, just like /dev/sda4 is my /home - everytime.
> I tried going into /dev/ (...)
<sigh>
That's why you need to mount them - you access them via the mountpoints.
Offline