My USB Drive is not mounted automatically but it has detected through lsusb.

I also used dconf-Editor but it is not working. Every time I have to mount manually through Disk Utility.

share|improve this question

A complete description for configuring auto-mount is given here:

https://help.ubuntu.com/community/Mount/USB

If this does not help, please insert your usb-stick and post the last lines of dmesg and syslog.

share|improve this answer

Have you recently not unmounted the drive correctly, either power failure or a crash while writing to or reading from the drive? This can cause errors with the drive and while once mounted it functions normally the superblock may have errors causing it to not mount correctly.

As Requist asked, check dmesg immediately after inserting you flash drive, you may see one of the last lines as "Volume was not properly unmounted. Some data may be corrupt. Please run fsck.".

Check the device label in gparted then run

sudo fsck /dev/xxx (swapping xxx for your device)

You may get some details back about an invalid Superblock.

Fixing this is dependent on the drive filesystem, is it ext4 or Fat32 etc?

Here's a page on repairing an ext4 superblock

If your drive is fat32 or other msdos type, then testdisk may help but be careful with this tool, with great power...

sudo apt-get install testdisk
sudo testdisk

here is a post on using testdisk to repair a fat32 superblock issue. It links to this post, read both before starting.

Hope it helps.

share|improve this answer
    
I was trying to figure out why a FAT32-formatted thumbdrive wasn't automounting in GNOME (the kernel was recognizing it just fine). When I set the label (I didn't look at it beforehand; I'm guessing that it was empty), it was immediately seen and mounted. Can you explain this behavior? I would assume that, if there wasn't a label, GNOME would just provide a placeholder in the UI. Do you have an opinion whether this was an underlying filesystem issue that was simply corrected by setting a label? – Dustin Oprea Dec 31 '16 at 17:36
    
It should still mount the drive and give it a default 'disk1' type label if none are present. This should be in /media/[username]/disk1 etc. Check your automount config with dconf-editor, check org.gnome.desktop.media-handling for specific configurations on automounting and Nautilus actions. More here help.ubuntu.com/community/Mount/USB – Jools Jan 5 '17 at 11:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.