You are not logged in.

#1 2005-03-20 13:54:36

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

/media vs /mnt[SOLVED]

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

#2 2005-03-20 16:29:46

wdemoss
Member
From: WV - USA
Registered: 2004-01-18
Posts: 222

Re: /media vs /mnt[SOLVED]

kcy29581 wrote:

/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

#3 2005-03-20 16:33:35

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: /media vs /mnt[SOLVED]

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

#4 2005-03-20 16:41:31

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: /media vs /mnt[SOLVED]

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

#5 2005-03-20 16:48:53

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: /media vs /mnt[SOLVED]

kcy29581 wrote:

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

#6 2005-03-20 17:00:41

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: /media vs /mnt[SOLVED]

thanks for the help! all sorted now smile


There is no spoon in Arch...

Offline

Board footer

Powered by FluxBB