Jump to content

Auto Mount USB storage


ngust
 Share

Recommended Posts

I just started using Mandriva. It works well on my computer.

The only problem I have right now it I can't get it to auto mount my USB storage devices.

I have USB thumb drives and an external hard drive.

I looked at the /etc/fstab file but it doesn't make sense to me (I'm used to Fedora).

# Entry for /dev/sda1 :
UUID=41ef3912-5cca-4cc2-9284-9c2c911e3f5b / ext3 defaults 1 1
# Entry for /dev/sda6 :
UUID=b0b3ac45-6cee-4dc6-82ea-2f41a1e62e32 /home ext3 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=7fed3a51-d19d-4eb5-aaee-d117936315d7 swap swap defaults 0 0

 

I don't know how to set this up. Please help.

Link to comment
Share on other sites

run this command instead then:

dmesg | sed 's/YOUR IP ADDRESS/___.___.___.___/g; s/YOUR MAC ADDRESS/**.**.**.**.**/g' | tail -n 20

You'll have to put your real addresses in the command above, as they appear in the normal output of dmesg.

 

Yves.

Edited by theYinYeti
Link to comment
Share on other sites

I looked at the /etc/fstab file but it doesn't make sense to me (I'm used to Fedora).
Fedora is no different to Mandriva. It uses UUIDs for every partition on your system since quite some time now. You can, however, set up the partitions in the old-fashioned way. The advantage of UUIDs is that every (network)drive will be perfectly identified by the system everytime it is plugged in (very useful for large corporate servers). The old fashioned way does not tell the system which of your harddrives/USB-sticks you are inserting, thus keeping things in a respective order (and finding all the needed files later) is not always possible by using the old naming convention. The disadvantage of UUIDs is of course that it looks like a mess and is rather hard/complicated to set up properly.

 

For more information on UUIDs, see http://www.ossp.org/pkg/lib/uuid/ and http://en.wikipedia.org/wiki/UUID

Link to comment
Share on other sites

OK here is the output of dmesg | grep -i usb | tail -n 20; dmesg | grep -i scsi | tail -n 10

[root@localhost ~]# dmesg | grep -i usb | tail -n 20; dmesg | grep -i scsi | tail -n 10
usb 1-8: USB disconnect, address 2
usb 1-8: new high speed USB device using ehci_hcd and address 3
usb 1-8: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb 1-8: New USB device found, idVendor=0781, idProduct=5406
usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-8: Product: U3 Cruzer Micro
usb 1-8: Manufacturer: SanDisk Corporation
usb 1-8: SerialNumber: 0000184AA473495B
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi3 : SCSI emulation for USB Mass Storage devices
scsi 3:0:0:0: Direct-Access	 SanDisk  U3 Cruzer Micro  4.04 PQ: 0 ANSI: 2
sd 3:0:0:0: [sdc] Attached SCSI removable disk
sd 3:0:0:0: Attached scsi generic sg2 type 0
scsi 3:0:0:1: CD-ROM			SanDisk  U3 Cruzer Micro  4.04 PQ: 0 ANSI: 2
sr1: scsi3-mmc drive: 8x/40x writer xa/form2 cdda tray
sr 3:0:0:1: Attached scsi CD-ROM sr1
sr 3:0:0:1: Attached scsi generic sg3 type 5

Thanks for the input guys.

Link to comment
Share on other sites

Hey my friend, if you have found a version of Gnome that doesn't automount, I'll tell you what to do. Take a patent out on it - I'd buy it.

 

On my Gnome desktop if you stuck a finger in the usb socket it would automount it, and taking the analogy a bit further, if you pulled your finger out it would rip your finger nail off, and metaphorically speaking that is exactly what it does to usb devices that you forget to unmount, and that is why automounting of usb devices is such a dramatically bad idea.

Link to comment
Share on other sites

Main menu > System > Preferences > Removable media > /Storage\ tab > [X] Mount removable media when inserted.

 

Yves.

 

That almost worked.

There is no Storage tab though. It only has Cameras, PDAs, Printers & Scanners and Input Devices.

Is there a way to do the same thing through the terminal?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...