LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-26-2002, 01:53 PM   #1
Hidden Dragon
LQ Newbie
 
Registered: May 2002
Posts: 12

Rep: Reputation: 0
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
 
Old 08-26-2002, 02:12 PM   #2
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
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
 
Old 08-26-2002, 02:14 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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

Last edited by Mara; 08-26-2002 at 02:16 PM.
 
Old 08-26-2002, 02:14 PM   #4
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Rep: Reputation: 30
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
 
Old 08-26-2002, 02:18 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
3 posts nearly the same time...
 
Old 08-26-2002, 02:26 PM   #6
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
Thanks for being clearer I'm also at work so short answers
 
Old 08-26-2002, 02:27 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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.
 
Old 08-26-2002, 02:36 PM   #8
Hidden Dragon
LQ Newbie
 
Registered: May 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Wink

Thanks for help folks. I'll try it out tonight.
 
Old 08-27-2002, 12:42 PM   #9
Hidden Dragon
LQ Newbie
 
Registered: May 2002
Posts: 12

Original Poster
Rep: Reputation: 0


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?
 
Old 08-27-2002, 01:07 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What do you mean by a "crash"? It looks you've got a problem with automount. Post your /etc/fstab
 
Old 08-27-2002, 02:46 PM   #11
Hidden Dragon
LQ Newbie
 
Registered: May 2002
Posts: 12

Original Poster
Rep: Reputation: 0
What do you mean by post it (my /etc/fstab)?

-HD
 
Old 08-27-2002, 02:49 PM   #12
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Rep: Reputation: 30
Mara means that you should copy everything that's in your /etc/fstab file and paste it here in the forum.
 
Old 08-27-2002, 03:01 PM   #13
Hidden Dragon
LQ Newbie
 
Registered: May 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Uh-oh(?)

OK, I went to my home directory and under root directory then etc and theres no fstab folder.
 
Old 08-27-2002, 08:43 PM   #14
zelgadis
Member
 
Registered: Apr 2002
Location: Venezuela
Distribution: slackware 8.0
Posts: 67

Rep: Reputation: 15
fstab is a file

Btw, do you hot swap the floppy and the cd-rw?
what is the model of the laptop?
 
Old 08-28-2002, 07:52 AM   #15
Hidden Dragon
LQ Newbie
 
Registered: May 2002
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting and Unmounting issues kronuskaos Linux - Hardware 14 11-24-2005 03:32 AM
mounting & unmounting? 777JR Slackware 3 02-08-2004 03:26 AM
Icons jump around when mounting / unmounting falcon56215 Linux - Software 2 10-02-2003 06:44 PM
Mounting and unmounting in Linux... Tommi Linux - Newbie 3 07-05-2003 08:02 PM
Mounting and unmounting in redhat. Tommi Linux - General 3 04-22-2003 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration