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 |
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 |
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 |
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 |
3 posts nearly the same time... :D
|
Thanks for being clearer I'm also at work so short answers:)
|
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. |
Thanks for help folks. I'll try it out tonight. :)
|
: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? |
What do you mean by a "crash"? It looks you've got a problem with automount. Post your /etc/fstab
|
What do you mean by post it (my /etc/fstab)?
-HD |
Mara means that you should copy everything that's in your /etc/fstab file and paste it here in the forum.
|
Uh-oh(?)
OK, I went to my home directory and under root directory then etc and theres no fstab folder.
|
fstab is a file
Btw, do you hot swap the floppy and the cd-rw? what is the model of the laptop? |
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. |