Lord Sauron wrote:
I decided I needed major help with this one - in other words, a walk-through.

I was working and shoved a CD into my laptop as I do every once in a
while (not that often - I'm happy to use the network 99.99999999999%
of the time).

Well, I stuck it in, and there wasn't any automounter action that I
could see, so I wisely (for me, at least) went to fstab to find this:

localhost ~ # cat /etc/fstab
/dev/hda1        /boot   ext2    defaults                1 2
/dev/hda2        none            swap            sw              0 0
/dev/hda3        /       ext3    defaults                0 1
none        /proc     proc    defaults          0 0
none        /dev/shm  tmpfs   defaults          0 0
/dev/sda1       /mnt/sda1       vfat    noauto,async,user,exec  0 0

My CD drive wasn't listed.  Big surprise.

To be more specific about the hardware I'm using, I'm using a CD
RW/DVD-ROM drive in the docking station to my X40.  Here's all the
relevant entries from /dev that could help.

Oops... tried "cat /dev/dvd..."  didn't work too well.  Started
reading the *whole* contents of the CD.  Gotta remember that next
time...

Well, now it complains that no medium is found.  However, it looks
like it's listed as /dev/hdc in addition to what I assume are aliases
as /dev/dvd, /dev/cdrom, and /dev/cdrw.

Sorry I can't be more precise, but I'd like some help with sticking
this in fstab so that I can mount the disk and then use it.  I'm so
darn inexperienced with this.

There isn't anything from /etc/mtab that could help, either:

localhost etc # cat mtab
/dev/hda3 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw 0 0
cachedir /lib/splash/cache tmpfs rw 0 0
/dev/hda1 /boot ext2 rw 0 0
none /dev/shm tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw,devmode=0664,devgid=85 0 0

I'm flummoxed.  I don't even know where to begin, since anything I can
try and Google will most likely not be for my system.  Any help or
pointers?


A line in /etc/fstab like this:

/dev/cdrom       /mnt/cdrom      auto noauto,ro        0 0

Should let access the cd/dvd:

(root) # mount /mnt/cdrom
(root) # ls /mnt/cdrom

If you want users other than root to be able to mount it change 'noauto,ro' to 'noauto,user,ro'.

Desktops like Gnome and Kde will probably automount the cd once the fstab entry is there (hmmm - been a while since I used either of these, but I thought one of other of them uses a device scan as opposed to using fstab.... but anyway see if the above helps!).

If you want to do some reading then try:

$ man mount
$ man fstab

There are non-desktop related packages that will automount media (local and network) - autofs comes to mind as the most well known to me - tho submount might be good.

regards

Mark



--
gentoo-user@gentoo.org mailing list

Reply via email to