USB not working with upgrade to Gutsy Gibbon

Asked by Bill Ross

The USB drive worked fine under Feisty Fawn Ubuntu. Then I upgraded to Gutsy Gibbon, inadvertently winding up with Kubuntu in the process.

My USB stick isn't mounting:

$ df
 Filesystem 1K-blocks Used Available Use% Mounted on
 /dev/sda1 76422592 16347720 56192768 23% /
 varrun 253724 292 253432 1% /var/run
 varlock 253724 0 253724 0% /var/lock
 udev 253724 56 253668 1% /dev
 devshm 253724 0 253724 0% /dev/shm
 lrm 253724 39792 213932 16% /lib/modules/2.6.24-23-generic/volatile
 $ dmesg|tail
 [ 1056.847250] sd 2:0:0:0: [sdb] Write Protect is off
 [ 1056.847264] sd 2:0:0:0: [sdb] Mode Sense: 45 00 00 08
 [ 1056.847269] sd 2:0:0:0: [sdb] Assuming drive cache: write through
 [ 1056.854871] sd 2:0:0:0: [sdb] 3940479 512-byte hardware sectors (2018 MB)
 [ 1056.855788] sd 2:0:0:0: [sdb] Write Protect is off
 [ 1056.855807] sd 2:0:0:0: [sdb] Mode Sense: 45 00 00 08
 [ 1056.855812] sd 2:0:0:0: [sdb] Assuming drive cache: write through
 [ 1056.855832] sdb: sdb1
 [ 1056.858453] sd 2:0:0:0: [sdb] Attached SCSI removable disk
 [ 1056.858588] sd 2:0:0:0: Attached scsi generic sg2 type 0
 $
And on unplug dmesg shows:
[ 1522.842168] usb 4-4: USB disconnect, address 4

What is missing?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bill Ross
Solved:
Last query:
Last reply:
Revision history for this message
GAkHEdgmrQ (mvndukezjm-deactivatedaccount) said :
#1

This is a common fault when a user has removed the flash disk unsafely.

Try re-mounting the disk like so:

1. Open a terminal.

2. Create a directory to temporarily mount the drive (eg "disk")
  mkdir disk

Mount disk
3. sudo mount -t vfat /dev/YOURDEVICE disk/

The flash disk should now mount and an icon should be available on the desktop. Allowing you to cleaning unmount the drive by right-clicking.

Post any errors you get.

Revision history for this message
Bill Ross (ross-cgl) said :
#2

Thanks, I can access the drive (ls) from the temporary mount point, but no icon appears on the desktop. Same after unmounting the drive, removing it, and putting it back in. Dmesg output looks the same.

I did unplug it earlier without unmounting (under Feisty Fawn). Perhaps something needs to be done to clean it up? The contents are also visible when plugging it into a Windows box.

Revision history for this message
Bill Ross (ross-cgl) said :
#3

PS - I'm actually on Hardy Heron.

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

mounting a filesystem will not make it appear on the desktop unless you mount it under the /media directory.

Revision history for this message
Bill Ross (ross-cgl) said :
#5

I thought USB sticks were supposed to mount under /media automatically? It seems that it happened under Feisty Fawn.

Revision history for this message
Elliot (elliot-orwells) said :
#6

Many things might have been broken with that "upgrade", reinstalling Ubuntu should fix it.

Revision history for this message
Bill Ross (ross-cgl) said :
#7

That seems like a radical solution - is upgrade not reliable with Ubuntu? Would you reinstall Hardy Heron, or go back to Gutsy Gibbon?

Revision history for this message
Elliot (elliot-orwells) said :
#8

Yes it's a radical solution but figuring out your problem might prove to be a lot of work too, specially because I don't everything you did to cause that. I would upgrade the more recent as possible, or to the latest LTS release.

Have you tried what nhasian said, mount it once in /media and unmount it safely in the desktop to clean a forced unmount?

Revision history for this message
Bill Ross (ross-cgl) said :
#9

(I believe Hardy Heron is the latest LTS release.)

I just tried this:

$ sudo mkdir /media/usbmem
[put in usb stick]
$ sudo mount -t vfat /dev/sdb1 /media/usbmem

Nothing appears on desktop. Umounting from there does what StevePearce originally suggested, i.e. no chance of special cleanup because the stick is being unmounted from the desktop.

I notice that inserting a cd in the drive causes no effect too (used to cause k3b and maybe a cd player to launch). So I hypothesize that whatever is supposed to respond to removable media mounts is disabled somehow.

Revision history for this message
Tom (tom6) said :
#10

Going through the installation process with Ubuntu 8.10 32bit desktop edition sounds like a good plan. But there are 2 sneaky approaches worth considering.

1. Install 8.10 on a new partition and set it up as a dual-boot with what-ever edition you're currently using as the other part of the dual-boot. Note the new 8.10 partition could be on a slave drive or anything and 'only' needs about 5Gb. There's a page for dual-booting with Windows but it should work for dual-booting with another version of Ubuntu too
https://help.ubuntu.com/community/WindowsDualBoot

2. When you get to the Partitioning section of a standard install choose "Manual" rather than "Guided" or automatic. It looks scary but settles down after a moment or 2. Carefully make sure that every partition has the "Format partition?" check box unticked to prevent it from formatting anything. Hopefully then everything will be upgraded or completed, missing stuff will be added back in but hopefully extra packages will be largely untouched and the data should be untouched too. I would want to back up the "/home" folder before trying this of course.

Good luck and take care
Regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#11

With option 1. you could look forward to one day making the feisty fawn partition nothing more than your /home partition and then future upgrades would be less scary ;)

Genius or what?
(errr, don't answer that;) )
Regards from
Tom

Revision history for this message
Tom (tom6) said :
#12

If you are still having trouble with this then please post it as a new question. Only the most recent questions tend to get looked at so posting/reposting a question just before america arrives online gives the best chance of getting a good few answers.

If the problem has been resolved then please follow the link to the forum thread and mark it as Solved.

Good luck and many regards from
Tom :)

Revision history for this message
Bill Ross (ross-cgl) said :
#13

Thanks Tom. The next time I rebooted, automount resumed. Odd that reboot after upgrade didn't catch it. Also k3b pops up when I put in a cd/dvd.

Revision history for this message
Tom (tom6) said :
#14

Ahh great.  It's good to hear you fixed it.  Was it the advice you got from here that did it or was it simply another reboot after doing all the forced mount and unmounts?

Thanks for getting back to us anyway
Good luck and regards from
Tom :)

Revision history for this message
Bill Ross (ross-cgl) said :
#15

Rebooting alone solved it.
Bill

Revision history for this message
Tom (tom6) said :
#16

lol, brilliant. Nicely done and congrats tho :)
Good to hear it's all fixed now :)

Good luck and regards from
Tom :)