LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting and unmounting (https://www.linuxquestions.org/questions/linux-general-1/mounting-and-unmounting-28825/)

Hidden Dragon 08-26-2002 01:53 PM

Mounting and unmounting
 
Hey, I have a laptop with a swap bay drive and I was wondering how you mount and unmount the cd-rw and floppy. I was fishing around the general questions site and is it something like this:

mount /dev/hdc /mnt/cdrom
mount /dev/hdc /mnt/floppy
unmount /dev/hdc /mnt/cdrom

Am I on the right track here?

-HD

5amYan 08-26-2002 02:12 PM

What do mtab and fstab look like?
Is there a /mnt/cdrom and /mnt/floppy?
you may need to tell it what type of filesystem you're mounting.

Try man mount

Mara 08-26-2002 02:14 PM

You're nearly right.
When you have floppy and cdrom in /etc/fstab you can simply use
mount /mnt/cdrom
mount /mnt/floppy
If you don't have them in /etc/fstab:
mount -t vfat /dev/fd0 /mnt/floppy
(hdx is for hard disks, floppies are fdx)
mount -t iso9660 /dev/hdc /mnt/cdrom

In both cases you can unmount using
umount /mnt/cdrom
umount /mnt/floppy

For more info, type
man mount
and
man umount

wonderpun 08-26-2002 02:14 PM

Well you're right about the cdrom but you're a little bit wrong with the floppy. To mount a floppy you write:

mount /dev/fd0 /mnt/floppy

And to unmount the floppy you use this command:

umount /mnt/floppy

Exactly! Not unmount but umount and to unmount the cdrom:

umount /mnt/cdrom

Mara 08-26-2002 02:18 PM

3 posts nearly the same time... :D

5amYan 08-26-2002 02:26 PM

Thanks for being clearer I'm also at work so short answers:)

michaelk 08-26-2002 02:27 PM

The console mount command for a CDROM is thus;
mount -t iso9660 /dev/hdc /mnt/cdrom

umount /mnt/cdrom

However, your device for the cdrom may not be hdc. And you may have to add a device for the floppy.

Hidden Dragon 08-26-2002 02:36 PM

Thanks for help folks. I'll try it out tonight. :)

Hidden Dragon 08-27-2002 12:42 PM

:confused:

Hey, I tried out the mounting and unmounting thing and I got mixed results! Mounting and unmounting cd roms aren't a problem but whenever I try putting the floppy in the mouse goes really slow and then when the floppy goes in my computer crashes. And if I put the mount command in before I put the floppy in it still crashes. What seems to be the problem?

Mara 08-27-2002 01:07 PM

What do you mean by a "crash"? It looks you've got a problem with automount. Post your /etc/fstab

Hidden Dragon 08-27-2002 02:46 PM

What do you mean by post it (my /etc/fstab)?

-HD

wonderpun 08-27-2002 02:49 PM

Mara means that you should copy everything that's in your /etc/fstab file and paste it here in the forum.

Hidden Dragon 08-27-2002 03:01 PM

Uh-oh(?)
 
OK, I went to my home directory and under root directory then etc and theres no fstab folder.

zelgadis 08-27-2002 08:43 PM

fstab is a file

Btw, do you hot swap the floppy and the cd-rw?
what is the model of the laptop?

Hidden Dragon 08-28-2002 07:52 AM

The laptop is a Compaq Presario 1700. In Windows there was just an icon to click and then it said you can safely remove the drive.


All times are GMT -5. The time now is 10:46 AM.