[Karmic] Internal drives don't always show up in Nautilus/Places menu

Bug #469837 reported by Zeniff
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devicekit-disks (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: devicekit-disks

I did this from a Live CD of Karmic. When I first booted, the internal drive partitions (including Linux ext partitions) showed up in the Places menu (except for a hidden Vista backup partition). After running GParted, the hidden one would also show up. After logging out and back in, only one partition showed up (my Vista partition). Running GParted again did not bring any of them back.

I'm not sure if this is related to another bug or not, since it's with internal drives and not USB: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/463347

ProblemType: Bug
.etc.fstab:
 aufs / aufs rw 0 0
 tmpfs /tmp tmpfs nosuid,nodev 0 0
 /dev/sda5 swap swap defaults 0 0
Architecture: i386
Date: Mon Nov 2 00:54:27 2009
DistroRelease: Ubuntu 9.10
LiveMediaBuild: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Lsusb:
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 011: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Acer Aspire 5515
Package: devicekit-disks 007-2ubuntu3
ProcCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/hostname.seed boot=casper initrd=/casper/initrd.lz quiet splash --
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: devicekit-disks
Symptom: storage
Uname: Linux 2.6.31-14-generic i686
dmi.bios.date: 12/03/2008
dmi.bios.vendor: Acer
dmi.bios.version: V1.00
dmi.board.name: Nile
dmi.board.vendor: Acer
dmi.board.version: N/A
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAcer:bvrV1.00:bd12/03/2008:svnAcer:pnAspire5515:pvrV1.00:rvnAcer:rnNile:rvrN/A:cvnAcer:ct10:cvrN/A:
dmi.product.name: Aspire 5515
dmi.product.version: V1.00
dmi.sys.vendor: Acer

Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Bug 463347 was not specific to removable drives. However, with the current data I can't yet say whether it is a duplicate.

Can you please do the following:

  - Boot the live system, open a Terminal, and do

     gvfs-mount -li > gvfs.boot.txt
     devkit-disks --dump > dkd.boot.txt

 - Start gparted and repeat the actions that you did. What did you do there in particular?

    After the change happened, do

     gvfs-mount -li > gvfs.gparted.txt
     devkit-disks --dump > dkd.gparted.txt

 - Then log out, back in (to replicate the third situation), and again do

     gvfs-mount -li > gvfs.relogin.txt
     devkit-disks --dump > dkd.relogin.txt

Then please attach all six *.txt files here. Thanks!

Changed in devicekit-disks (Ubuntu):
status: New → Incomplete
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Download full text (3.5 KiB)

Hi again~ Sorry, I was/am really busy with school and wasn't able to get back to this for a long while.

Here I tried to repeat my steps as I remember them:

Boot up 9.10 LiveCD. (and made the 2 boot.txt you mentioned.)
Look in Places menu, all internal drives except my hidden Vista backup partition appear. (no external drives attached yet)
Start GParted, and now all partitions show up. (and made 2 gparted.txt)
Log out, and back in.
Looked in Places menu, and it still shows all. (made 2 relogin.txt)
(A few days ago, also tried this, and at this point started GParted, but if I remember right it didn't make any change to Places menu. Didn't start GParted at this step today, though.)
Was confused, but thought may have plugged USB flash drive in at some point last time, so I inserted a 2GB flash stick. It shows up normally.
Started GParted again, and now only flash stick and vista partition show up in Places menu. (here, I made 2 more files, following your format after plugging in the USB drive: gvfs. and dkd.gprtdaftrlognusbdrv.txt)
Chose to Safely Remove flash drive.
Restarting GParted or logging out and back never brings back the other partitions. Also, re-inserting the flash drive doesn't change stuff, either.
After all that, I also opened Palimsest Disk Utility (without rebooting), and it shows my internal hard drives correctly as a Vista partition and a hidden backup partition, but my Linux partitions are not there. Instead, it says the rest of the drive is one big unallocated space. I then ran GParted with Palimpsest still opened and it looked like it auto-refreshed or something, but didn't change anything. (finally after all the opening GParted more times and logging out and stuff, just now I made 2 more files: gvfs. and dkd.aftrfewmoretries.txt)

I was just about to reboot to installed Ubuntu (writing this in Gedit from LiveCD), and thought I'd try GParted one more time. After starting it, the Places menu shows everything again! The only thing I think I did, was copy the txt files you asked for from the LiveCD /home folder into my 2GB drive. I'm not sure, but I think when I went to open my 2GB drive again, it didn't have an icon on the desktop, so I chose it from the Places menu, but I don't think the drives were back that time, until I started GParted. Now, the flash drive icon is also back on the desktop. (I just now made 2 final files: gvfs. and dkd.aftrcopytousbgparted.txt)

Also, I don't really remember getting this error in 9.04, but it seems GParted always gives me the following error in both my installed Ubuntu and on the LiveCD:
"The kernel is unable to re-read the partition tables on the following devices:
- /dev/sda
Because of this you will only have limited access to these devices. Unmount all mounted partitions on a device to get full access."
I don't now remember about the installed one, but on the LiveCD, it looks like the swap partition is in use or something (has keys icon next to it).

By the way, I heard Fedora asks its users for a hardware profile of their computers to optionally be sent back to Fedora. Is there something similar for Ubuntu? I'm curious because I feel the problems I run into don't sound common and won...

Read more...

Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :

Sorry comment was so long, by the way. Just trying to be detailed.. @_@;;

Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Zeniff (zeniffmartineau) wrote :
Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 469837] Re: [Karmic] Internal drives don't always show up in Nautilus/Places menu

Hello Zeniff,

Zeniff [2009-11-28 19:23 -0000]:
> Hi again~ Sorry, I was/am really busy with school and wasn't able to get
> back to this for a long while.

No problem at all. It takes me some time to get back to this, too :)

I have an idea what happens here. (For my own notes: gparted inhibits
dk-d and after releasing the lock it seems to make no attempt to
re-detect stuff).

When you opened gparted, did you actually change any partition? I. e.
are the changes in the dkd.* logs that I see just artifacts from this
bug, or are there also real changes?

After you open/close gparted, does this command bring back everything?

  sudo udevadm trigger --action=change --subsystem-match=block

If that works, I know what the problem is.

> By the way, I heard Fedora asks its users for a hardware profile of
> their computers to optionally be sent back to Fedora. Is there
> something similar for Ubuntu?

There is indeed. System -> Admin -> System Testing.

Thanks!

Martin

--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Revision history for this message
Zeniff (zeniffmartineau) wrote :

Hi! Sorry again, this is a slow bug report, huh? :P

I think I started same as before:
Booted and started Launchpad in Firefox (and changed always wrong LiveCD system time :P)
Started Gparted and didn't make any partition/drive changes and then closed it. Places menu now shows all partitions.

Here, I did a little bit different (kind of lazy to wait for re-login and wondered if it would be same anyway):
This time, I didn't log out, but instead plugged in a 2GB flash drive, which showed up fine.
Then, started Gparted 2nd time and again didn't make any changes.
Closed Gparted.
Not sure if Places menu changed after open or after close of Gparted the 2nd time, but anyway, it's now empty except for flash drive and Vista's C drive.

I then tried the command you gave:
  sudo udevadm trigger --action=change --subsystem-match=block
It just went back to the prompt right away and didn't give any message, and Places menu didn't change.

I tried it a couple more times and still nothing. I think this was all with the 2GB flash drive also still plugged in.

As I was writing this, I copy/pasted your command back in and also left my computer for a few minutes and when I came back, Places menu was normal, except it said the 2GB flash drive was "Unrecognized" and it couldn't unmount it. I plugged it back in and had no response for a few minutes, unplugged and tried again, and that made the Places menu show nothing again (except flash drive and Vista drive.)

I tried the command several more times and also ran Gparted, but it didn't happen again yet.

This is kind of confusing to me, but I feel maybe it's caused by plugging in the flash drive instead of relogging in...

Hope I didn't make it too confusing..^^;;; and I hope it's useful.
Thanks again~ (And thanks, I'll try System Testing soon!)

Revision history for this message
Zeniff (zeniffmartineau) wrote :

After posting the last comment, I unplugged my flash drive, and (not sure, but) Places menu still showed only Vista.
Then, after a few minutes of looking at other Launchpad site stuff with flash drive still removed, I just now opened Gparted, and didn't do anything, but after it opened, I checked Places menu and all the partitions show up.

I then closed Gparted just now, checked the Places menu right away (which still showed all) and then re-ran the command you gave. The Places menu now shows only Vista partition again... But I wonder I wonder if I didn't wait long enough to see if it was Gparted which made them disappear or the command.

I tried repeating it, but I seem to be back to nothing happening again and only the Vista partition showing up...

Is it me, or does it seems some of this stuff happens after a bit time goes by?

Sorry it must be so confusing...

(Also, I wonder if it matters that I didn't physically unplug the flash drive after choosing "Safely Remove" drive command?)

Martin Pitt (pitti)
Changed in devicekit-disks (Ubuntu):
status: Incomplete → New
Revision history for this message
Zeniff (zeniffmartineau) wrote :

Hi again~ Is it possible that a problem with the hardware could be related?

I've had this error continuously happen every few seconds for as long as I can tell (since Jaunty), but didn't do anything because it didn't affect anything that I could see...

I'm not sure, but I'm guessing it's an error about something wrong with my HDD?

From dmesg:
[11752.144071] ata3.00: qc timeout (cmd 0xa0)
[11752.144112] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[11752.144122] ata3.00: irq_stat 0x40000001
[11752.144147] ata3.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[11752.144151] cdb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[11752.144154] res 51/20:03:00:00:00/00:00:00:00:00/a0 Emask 0x5 (timeout)
[11752.144163] ata3.00: status: { DRDY ERR }
[11752.144178] ata3: hard resetting link
[11752.628060] ata3: softreset failed (device not ready)
[11752.628073] ata3: applying SB600 PMP SRST workaround and retrying
[11752.792065] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[11752.806957] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[11752.822474] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[11752.822487] ata3.00: configured for PIO0
[11752.824540] ata3: EH complete

I hope it isn't harmful to my HDD...

Thanks and have a good day~! ^^

Revision history for this message
Martin Pitt (pitti) wrote :

Zeniff,

this indeed looks scary. It's a shot into the dark, but do you still get this after you do

  sudo mv /lib/udev/devkit-disks-probe-ata-smart /lib/udev/devkit-disks-probe-ata-smart.disabled

and reboot?

Revision history for this message
Zeniff (zeniffmartineau) wrote :

Scary? O_O;; Oh boy....

I'm hoping it's just a loose cable....but I never often moved and didn't open it before (but it is refurbished...). From the forums, it sounds like it could also be a lot of different things, and I'm not sure how similar any of them are to my problem, so I haven't tried their ideas yet:

http://ubuntuforums.org/showthread.php?t=1353444
http://ubuntuforums.org/showthread.php?t=1034762
http://ubuntuforums.org/showthread.php?t=1195716
http://ubuntuforums.org/showthread.php?t=1217131

After renaming that file and rebooting, I can't find any difference (although I only know to check for that same error).

I saw a difference in only this line: "ata3.00: configured for PIO3"
However, I searched for that in the logs, and it looks like, before renaming, that at different times in the log it has been sometimes PIO0, PIO3, or PIO4.

By the way, as far as I know, it doesn't seem to affect speed or anything (but I can't compare that to anything, since I don't have experience using something similar).

I'll wait before I mess with cables... I hope to do one thing at a time and keep track of it.

Thanks! :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.