Mount/umount cdrom & floppy, how

Mount/umount cdrom & floppy, how

Post by Simon Bar » Thu, 09 Nov 1995 04:00:00



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

--

 
 
 

Mount/umount cdrom & floppy, how

Post by Davide Vit » Thu, 09 Nov 1995 04:00:00


I am not so much experienced!
When I had the same problem with mtab~ I deleted it and retried
to mount the cd-rom with no problems.
In general when messing with drives you should remember few
things:

- the mountpoint (/cdrom /mnt /floppy ,....) that you want to
use must be present ('mkdir /cdrom ' as root to create /cdrom
mountpoint) when you try to mount

- when you want to umount a drive NOBODY must be in its
mountpoint (if you are for example in /cdrom/dir1 you must cd
out of there and all the users logged in mustn't be into
/cdrom)

-configure /etc/fstab for your needs to mantain your filesystem
 (man fstab gives you a lot of informations about it)

I found a lot of infos,tips reading Linux Gazette ,a FREE
magazine online on Internet (sorry I haven't with me the
address; to find it look for 'linux gazette' using NET SEARCH
button with Netscape)

Davide

 
 
 

Mount/umount cdrom & floppy, how

Post by Patrick Vierheili » Fri, 10 Nov 1995 04:00:00



>...
>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 am going to initially suggest that you reference the manual page(s) for
the 'mount' function; "man mount" should do it.

I have s matsushita/panasonic Sound Blaster CD and this is how I mount it:
mount -t iso9660 -r /dev/cdrom /cdrom

This should work for you also, I think.

Quote:>...
>When I try to mount a floppy using

>mount /dev/fd0 /adrive

>I get /adrive is not a mount point, or something close.

A mount point is (again, I think) supposed to be an existing directory.  
You aren't supposed to be able to create a new directory when mounting.  
Check to see the your /adrive is available in your directory tree, that
permissions are set appropriately.

I'm sure that someone else will respond to this also, so stay tuned...

Patrick

 
 
 

Mount/umount cdrom & floppy, how

Post by W. Paul Mil » Fri, 10 Nov 1995 04:00:00



>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!    |

 
 
 

1. Help with mounting cdrom & floppy drive

                   CALLING ALL GURUS OF LINUX!!!!!

A friend of mine and I have recently loaded Linux on his 486 Dos m/c. We get
the xterm and stuff but are unable to mount the cdrom. Every time
we try to mount the cdrom it gives a message which goes something
like "wrong fstype, drive already mounted, or drive busy". So how
is the cdrom supposed to be mounted?

Another thing is, the way the A drive is mounted seems to be giving
trouble. When we put in a floppy and check its contents by entering
"ls -la" it gives us the contents . But if we change the floppy the
the listing does not change. So it always gives us the listing of
the floppy which is first inserted into the drive.

I would really appreciate it if the the gurus of Linux
out there can provide any suggestion.

Anish Moni

_____________________________________________________________________
Anish Moni
Off : 210, System Network Computer Center, Louisiana State University,
      Baton Rouge, Louisiana - 70808.

______________________________________________________________________

--

Anish Moni

Off : 210, System Network Computer Center, Louisiana State University,
      Baton Rouge, Louisiana - 70808.

2. USR Sportster modem, Win95, and Linux

3. Mounting CDROM & Floppy Drive

4. General question on kill

5. problem with mount cdrom & floppy

6. DNS / The Nameing of a System ?

7. User can't mount CDROM & Floppy

8. dbm error

9. how can i mount a floppy disk & cdrom?

10. RedHat 5.1 floppy install not mounting floppy ro CDROM

11. Problem mounting cdrom on CDROM-floppy hot swap Dell laptop

12. mount error: mount only root can mount /dev/cdrom on cdrom