Sunday, January 27, 2008

USB Device not detect/automount on Ubuntu

I had a problem of mounting my USB SD card reader. When i insert my USB card reader, nothing happened. After doing some Google discovery, finally i got my card reader work! Perhaps u should try if u had the same problem like me.

1. First, open the terminal. Then type the following code :

dmesg | tail


this is an example of my output

[ 822.864000] sd 4:0:0:0: [sdb] Write Protect is off
[ 822.864000] sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 822.864000] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 822.868000] sd 4:0:0:0: [sdb] 3970048 512-byte hardware sectors (2033 MB)
[ 822.868000] sd 4:0:0:0: [sdb] Write Protect is off
[ 822.868000] sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 822.868000] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 822.868000] sdb: sdb1 **
[ 822.872000] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[ 822.872000] sd 4:0:0:0: Attached scsi generic sg1 type 0

** REMIND THE BOLD


2. Then type in the following code :

sudo mount /dev/sdb1 /home/yourusername/Public

Note 2.1 : Replace yourusername with your actual user name)
i.e :
sudo mount /dev/sdb1 /home/yogatta/Public

Note 2.2 : my output is sdb1, so if your output is sda1, type in sda1

This is the simplest way to mount your disk. Be aware that you won't be able to write to this disk unless you are operating with root permissions. You can start an instance of nautilus from the command line operating with root permissions by:

sudo nautilus


In that instance of nautilus, you'll be able to write to this directory.

3. So, to open your mounted drive, when you open the nautilus, go to file system > home > yourusername > Public

You should see your mounted drive there.

When done, to unmount the device (for safe removal) you can do:

sudo umount /home/yourusername/Public


This will let you at least get access to your devices again.

1 kudos:

Anonymous said...

thanks. this post was really helpful!