Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th September 2006, 01:13 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,488
how can you mount/unmount from the command line

In the old days, I just used the command line mount/umount command
like :

mount /media/usbdisk

That was annoying though because with usb devices, the system
would map them to different scsi devices depending on the
order in which they were detected, one day the same disk
would be /dev/sda1 and the next /dev/sdc1 and so on.

Now fedora 5 uses
HAL and udev, so from the GUI it seems you have to right click the drive
icon on the desktop when udev/hal detects it and then select mount
from the menu. That's fine but how can I mount/umount from
only the command line if I'm ssh'ed into the machine and don't
want to or can't use the GUI? When I try the mount / umount command
it complains there's no entry for that device in the /etc/fstab file, but
if I edit the fstab to add it, it eventually gets overwritten (I think
by udev/hal ) and the change is lost. Also, obviously
it's not ideal to use fstab entries with usb because the
scsi devices it maps to keeps changing, which was the whole point
of udev and udev-rules --> to correlate unchanging Vendor id's
in the drives firmware to a logical name like /media/maxtor_disk

I think I read there's a command line command gnome-mount
but I didn't have much luck with that. I use KDE but I installed Gnome
too so the libraries should be available. So basically what I'd like is the
same mount unmount command line functionality for FC5 and later.

Mark
Reply With Quote
  #2  
Old 29th September 2006, 01:20 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,509
Typing the command ' mount ' by itself will show all mounted devices.

Brian1
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 29th September 2006, 01:59 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,488
Brian1:

But I don't want to see the mounted devices, I actually want to command that a
device be mounted via command line that's not currently mounted.

Mark
Reply With Quote
  #4  
Old 29th September 2006, 02:31 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,509
I would think the line gets generated in /etc/fstab. Try this.
cat /etc/fstab

Brian1
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #5  
Old 29th September 2006, 08:57 AM
sandynuts's Avatar
sandynuts Offline
Registered User
 
Join Date: Aug 2006
Posts: 53
use "lsusb" to find the usb devices (eg /dev/sda1)
then mount with mount
Reply With Quote
  #6  
Old 3rd October 2006, 05:10 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,488
Ok, I got my own answer to this, my flash key is at
/dev/sdc as shown by running dmesg, so via my ssh
connection this works:
Code:
gnome-mount -d /dev/sdc1
Mark
Reply With Quote
  #7  
Old 3rd October 2006, 06:04 AM
Omega Blue's Avatar
Omega Blue Offline
Registered User
 
Join Date: Apr 2005
Location: Fragrant Harbour
Posts: 1,344
USB drives are generally automatically mounted (in FC5, at least) when you plug them in.
Reply With Quote
Reply

Tags
command, line, mount or unmount

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot mount Windows share from smb4k but can from command line ? zod786 Using Fedora 5 25th November 2008 08:46 PM
mount/unmount problem leegwebb Using Fedora 1 7th August 2007 02:53 PM


Current GMT-time: 17:37 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat