>Help !!
>Sorry if this is in the wrong group or is mentioned in a faq or howto, but I
>am very new to Linux, I'm very experienced in dos/windows but prefer to use
>OS/2 for most of my work.
>The problem of the day is that I wish to be able change the CD that is mounted
>under the directory "cdrom", also I would like to be able to mount floppies.
>If I umount /cdrom then I can eject the CD and change it (NEC4xi on AHA1542cf).
>After inserting a different CD I try to mount it using
>mount /dev/scd0 /cdrom
>or
>mount -t iso9660 -ro /dev/scd0 /cdrom
>I get something like unable to create lock file, and something about file mtab~,
>sorry I can't be more precise but I'm at work at the moment.
>When I try to mount a floppy using
>mount /dev/fd0 /adrive
>I get /adrive is not a mount point, or something close.
>Can anyone help me please, as I say I am very new to Linux/Unix so plain language
>please.
>Also is there a Howto or Faq that would be good for someone moving from dos/OS/2
>TIA
>--
I use this methold which seems easy to me. Show any devices
you might want to mount in /etc/fstab. Mine looks like this:
/dev/hda3 swap swap defaults
/dev/hda2 / ext2 defaults
/dev/hda1 /dos/c msdos defaults
/dev/hdb1 /dos/d msdos defaults
/dev/hdb2 /dos/e msdos defaults
/dev/hd1a1 /dos/f msdos defaults
/dev/hd1a3 /hd1a3 ext2 defaults
^^^^^^this is a bad name for this, but it
is just there to take up space, until
I actually start using this partition.
/dev/cdrom /cdrom iso9660 ro,user,async,noauto
/dev/fd0 /dos/a msdos rw,user,async,noauto
/dev/fd1 /dos/b msdos rw,user,async,noauto
/dev/fd0 /floppy/0 ext2 rw,user,async,noauto
/dev/fd1 /floppy/1 ext2 rw,user,async,noauto
none /proc proc defaults
for me /dev/cdrom is a link to /dev/hd1b, which is where the
cdrom drive is attached. To mount to the cdrom I simply:
mount /cdrom
To mount a floppy:
mount /dos/a
or
mount /dos/b
or
mount /floppy/0
or
mount /floppy/1
depending on the drive and file system type.
The "rw,user,async,noauto" is read/write,group user - so that non-root
can mount,async,noauto prevents attempt to mount on boot-up with
mount -a. Each of those mount points /cdrom /dos/a /dos/b /floppy/0 and
floppy/1 must exist as empty directories in order to mount a device
on them.
I get the problem with mtab~ after a failed mount, due to doing
something wrong. I then have to go in and delete /etc/mtab~ so
that I can mount. I don't know if this is proper, but that is
the only way I could find to mount a device at that point.
--
| ------------------ | New LINUX Hacker | My only love is my |
| ----------------- | Old C Hacker | is worth it! |