How to mount usb drive outside of gnome, using the gnome magic.

Asked by mathgirl

another user uses gnome, and usb drives magically mount for him and are readable and writable by him. I use ratpoison, and would like to know what the name of the mounting program is so that I could call it from the command line. I'd like to not edit fstab or sudo mount -- i'd like to do what he's doing in gnome, from the command line, if that possible...

thx!:P

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Zombie (initramfs) said :
#1

mathgirl,

use the dmesg | tail command and see if there is any info about your usb drive ( /dev/sdx)

to mount, use the following command:
sudo mkdir -p /media/usbdrive && sudo mount -t auto /dev/sdx /media/usbdrive (replace x in sdx with the correct partition number, like sdb1)
The above command will create a usbdrive folder under mnt and your drive will be mounted to /media/usbdrive

The data on the usb drive can be accessed at /media/usbdrive

With Regards,
Zombie.

Revision history for this message
mathgirl (wonderful1066) said :
#2

I know how to do it manually. I wanted to know what the command is to do what happens when my friend right-clicks a drive and in gnome and asks it to mount. In particular, he doesn't have to have root privileges and he doesn't have to edit fstab.

To repeat my original question, _I'd like to not edit fstab or sudo mount_.

I understand that people ask the general question about mounting usb drives a lot, but I have a particular question, here. :)

Revision history for this message
Zombie (initramfs) said :
#3

mathgirl,

Go to System > Administration > Users & Groups
Select your username, go to Properties and see if the "Access external storage devices automatically" is checked in the User Privileges tab.

With Regards,
Zombie.

Revision history for this message
lifestream (lifestream) said :
#4

I have the same question as mathgirl *waves hello*
Here's me a few times a day:
 *turn on computer*
*attempt to play a song from usb drive*
OOPS! *remember I must mount the drive first*
*open nautilus and mount drive*

*listen to music*
*... use computer as normally*
*Decide that for whatever reason I want to restart/shutdown/etc my computer*
*5 minutes later: turn on computer*
*go through same process again and again and again*

I've tried to have the USB drive mount at boot time but that doesn't work.
The other option I have thought about is to add that gnome command that automagically mounts the drive at the session start.

Could you tell me what's the command that nautilus uses when you right click a drive and select mount? Thanks you.....

Can you help with this problem?

Provide an answer of your own, or ask mathgirl for more information if necessary.

To post a message you must log in.