You are not logged in.
Pages: 1
Hi all,
I have a question about how cd/dvd drives are detected with Linux. In /etc/fstab I have always specified them using a /mnt/cd or /mnt/dvd mount point, and that's exactly how Arch does it during installation and every other distro I have used. But if I use HAL (I think HAL does this...) in Gnome (2.10) and open the Computer folder, I can see 3 different mount points for the same drive, which is just annoying:
2 of them are because Arch does not use auto for a drive but specifies between iso9660 (cd) and udf (dvd) as mount points. That I can fix easily by removing one line and simply using auto.
But the third mount point... /media/cdrom just confuses me. Where did this come from? I know it wasn't there when I was booting into a terminal, but it appeared when I installed Gnome with gdm, so I guess HAL did it or udev?
So my question is this: If I remove the /mnt points wont that mean that if I did NOT use gdm, I would lose usage of my dvd drive? So which do I use /mnt or /media and where did /media come from??? I would rather be able to see just ONE mount point when I open the Computer folder, as I actually only have ONE cd/dvd drive... Not too much to ask right? I just need to know which mount point is the one that is used in both a terminal and a DE in the best possible way.
My /etc/fstab is below:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
/dev/cdroms/cdrom0 /mnt/cd iso9660 ro,user,noauto,unhide 0 0
/dev/cdroms/cdrom0 /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/floppy/0 /mnt/fl vfat user,noauto 0 0
/dev/discs/disc0/part2 swap swap defaults 0 0
/dev/discs/disc0/part3 / reiserfs defaults 0 0
/dev/discs/disc0/part1 /boot reiserfs defaults 0 0
/dev/hdc /media/cdrom auto user,exec,noauto,comment=managed 0 0[/code]
There is no spoon in Arch...
Offline
/dev/cdroms/cdrom0 /mnt/cd iso9660 ro,user,noauto,unhide 0 0
/dev/cdroms/cdrom0 /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/hdc /media/cdrom auto
Right there are your three entries for your cdrom drive in your fstab file since /dev/cdroms/cdrom0 and /dev/hdc are the same thing.
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?
Offline
Like wdemoss said, they're the same: /dev/hdc is the uDev name whereas /dev/cdroms/cdrom0 is the DevFS name (or the other way around).
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
aha... so it was uDev that added the hdc part! cause the other two were there with the installation with devfs.
So I can just remove the two cdrom0 links and just use the uDev one in both console and Gnome? I guess thats the case
There is no spoon in Arch...
Offline
aha... so it was uDev that added the hdc part! cause the other two were there with the installation with devfs.
So I can just remove the two cdrom0 links and just use the uDev one in both console and Gnome? I guess thats the case
To be safe, simply comment out the lines in /etc/fstab you don't want to use (i.e. put an # in front of them). If things don't go as planned, it's easy to go back.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
thanks for the help! all sorted now
There is no spoon in Arch...
Offline
Pages: 1