SD Card mounts first time but will not remount

Bug #743303 reported by Andy Barilla
74
This bug affects 17 people
Affects Status Importance Assigned to Milestone
udisks (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: udisks

This is using an internal card reader on a Pavilion DV7. When inserting an SD Card the first time, it mounts correctly. However, after unmounting and reinserting the system can not recognize it. Rebooting solves the problem. There is no message in dmesg when reconnecting.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: udisks 1.0.2-4
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
Architecture: amd64
Date: Sat Mar 26 14:57:15 2011
EcryptfsInUse: Yes
HotplugNewDevices: /dev/sdc1
HotplugNewMounts: /dev/sdc1 /media/9e16d5ce-154c-4f30-a494-0284f3ff65d6 ext4 rw,nosuid,nodev,relatime,barrier=1,data=ordered 0 0
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110326)
MachineType: Hewlett-Packard HP Pavilion dv7 Notebook PC
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-7-generic root=UUID=8fd9b6d8-04ef-4080-9bcf-851aa8ae0815 ro quiet splash vt.handoff=7
SourcePackage: udisks
Symptom: storage
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/11/2010
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.23
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 1641
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 67.32
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.23:bd11/11/2010:svnHewlett-Packard:pnHPPaviliondv7NotebookPC:pvr0585120014242B10000020100:rvnHewlett-Packard:rn1641:rvr67.32:cvnHewlett-Packard:ct10:cvrN/A:
dmi.product.name: HP Pavilion dv7 Notebook PC
dmi.product.version: 0585120014242B10000020100
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Andy Barilla (andybarilla) wrote :
Revision history for this message
Carla Sella (carla-sella) wrote :

I have this problem with an HP G62 Notebook PC, I was testing Natty Beta 1.

Revision history for this message
Carla Sella (carla-sella) wrote :

Also affects Natty Beta 2 iso.

Revision history for this message
Carla Sella (carla-sella) wrote :

Found out that if you suspend the laptop, when returning from suspension the micro SD, that has been left in the card reader, mounts again.

Revision history for this message
Joaquín Ignacio Aramendía (samsagax) wrote :

I can confirm this. If you unmount the card by just clicking "unmount" it can be remounted by just inserting it. If you click on "safely extract drive" it can't be remounted until next reboot.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udisks (Ubuntu):
status: New → Confirmed
Revision history for this message
apinunt (apinunt) wrote :

You are unmounting the card reader when you only need to eject the card from the reader which leaves the card reader mounted and able to read the next card inserted into it. There should be a second option, and in Linux Mint 12 it is 'eject' which is the correct option to enable the card to be safely removed.
A USB memory stick is unmounted before removal, but SDxx memory cards are ejected, leaving the card reader mounted and ready to read the next card inserted.

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu laptop testing tracker.

A list of all reports related to this bug can be found here:
http://laptop.qa.ubuntu.com/qatracker/reports/bugs/743303

tags: added: laptop-testing
Revision history for this message
palimmo (palimmo) wrote :

Same problem with Ubuntu 11.10 e Ubuntu 12.04 beta2.
Packard Bell Easynote TJ65.

Revision history for this message
palimmo (palimmo) wrote :

It doesn't work both with "Eject" and "Safely remove drive".

Revision history for this message
palimmo (palimmo) wrote :

After 5 attempts (insert-eject) it works!

Revision history for this message
NoOp (glgxg) wrote :

Precise 12.04 same issue.
$ apt-cache policy udisks
udisks:
  Installed: 1.0.4-5ubuntu2.1
  Candidate: 1.0.4-5ubuntu2.1
  Version table:
 *** 1.0.4-5ubuntu2.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.4-5ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Following the first 'Safely Remove':
$ dmesg | tail
[16368.869386] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[16817.600266] WARNING! power/level is deprecated; use power/control instead
[16817.664123] usb 1-3: USB disconnect, device number 3

It appears that the card reader port is powered off. Pulling the SD card and inserting into another system works - card opens right up.

Revision history for this message
NoOp (glgxg) wrote :

udisks dump for comment 12

Revision history for this message
NoOp (glgxg) wrote :

additional dmesg info :

$ dmesg | grep sdb
[16368.856764] sd 6:0:0:0: [sdb] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[16368.857644] sd 6:0:0:0: [sdb] Write Protect is off
[16368.857652] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[16368.858507] sd 6:0:0:0: [sdb] No Caching mode page present
[16368.858513] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[16368.863108] sd 6:0:0:0: [sdb] No Caching mode page present
[16368.863115] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[16368.864265] sdb: sdb1
[16368.869372] sd 6:0:0:0: [sdb] No Caching mode page present
[16368.869380] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[16368.869386] sd 6:0:0:0: [sdb] Attached SCSI removable disk

Revision history for this message
apinunt (apinunt) wrote :

I may be wrong but I believe "safely remove drive" will always unmount the internal card reader, and should only be used if you are using an external USB card reader and wish to remove it AND the card. I always use "eject" to remove an SD card from the internal card reader and can plug another card in and recognize the media without having to reboot.

Revision history for this message
NoOp (glgxg) wrote :

You are correct in that 'eject' works. The issue is with 'Safely Remove". .

However the help files are ambiguous regarding this:

<quote>
Safely remove an external drive
When you use external storage devices like USB flash drives, you should safely remove them before unplugging them. If you just unplug a device, you run the risk of unplugging while an application is still using it. This could result in some of your files being lost or damaged. When you use an optical disc like a CD or DVD, you can use the same steps to eject the disc from your computer.
To eject a removable device:
From the Activities overview, open Files.
Locate the device in the sidebar. It should have a small eject icon next to the name. Click the eject icon to safely remove or eject the device.
Alternately, you can right-click the name of the device in the sidebar and select Eject.
Safely remove a device that is in use
If any of the files on the device are open and in use by an application, you will not be able to safely remove the device. You will be prompted with a window telling you that "the volume is busy," and listing all the open files on the device. Once you close all the files on the device, the device will automatically be safe to remove. At that time you can unplug or eject it.
If you can't close one of the files, for example if the application using the file is locked up, you can right-click the file in the Volume is busy window and select End Process. This will force the entire locked up application to close, which could close other files you have open with that application.
You can also choose Unmount Anyway to remove the device without closing the files. This may cause errors in applications that have those files open.
</quote>

Revision history for this message
Moreno Pinheiro Cunha (moreno-pinheiro) wrote :

I just found this bug today and I had the same issue here in ubuntu 12.04 with HP Pavilion dv6

$ dmesg | grep sdb
[29835.581437] sd 6:0:0:0: [sdb] 7729152 512-byte logical blocks: (3.95 GB/3.68 GiB)
[29835.582307] sd 6:0:0:0: [sdb] Write Protect is off
[29835.582314] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[29835.583297] sd 6:0:0:0: [sdb] No Caching mode page present
[29835.583303] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[29835.586898] sd 6:0:0:0: [sdb] No Caching mode page present
[29835.586905] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[29835.588926] sdb: sdb1
[29835.591902] sd 6:0:0:0: [sdb] No Caching mode page present
[29835.591911] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[29835.591917] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[43065.815847] sd 8:0:0:0: [sdb] 7729152 512-byte logical blocks: (3.95 GB/3.68 GiB)
[43065.816589] sd 8:0:0:0: [sdb] Write Protect is off
[43065.816594] sd 8:0:0:0: [sdb] Mode Sense: 03 00 00 00
[43065.817336] sd 8:0:0:0: [sdb] No Caching mode page present
[43065.817341] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[43065.821102] sd 8:0:0:0: [sdb] No Caching mode page present
[43065.821111] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[43065.823118] sdb: sdb1
[43065.825713] sd 8:0:0:0: [sdb] No Caching mode page present
[43065.825719] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[43065.825724] sd 8:0:0:0: [sdb] Attached SCSI removable disk

Revision history for this message
Victor Sergienko (singalen) wrote :
Download full text (3.3 KiB)

My dmesg tail:

   58.017408] systemd-logind[960]: Linked /tmp/.X11-unix/X0 to /run/user/1000/X11-display.
[ 70.810632] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[ 70.810784] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[ 89.865274] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[ 89.865401] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[ 104.814564] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[ 104.814769] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[ 112.162795] mmc0: new high speed SD card at address d3ba
[ 112.337058] mmcblk0: mmc0:d3ba SD01G 922 MiB
[ 112.338590] mmcblk0: p1 p2
[ 112.933310] EXT4-fs (mmcblk0p2): recovery complete
[ 112.933318] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 112.937222] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 113.125844] systemd-hostnamed[5044]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 3707.456538] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[ 3707.456825] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[ 7730.713723] mmc0: card d3ba removed
[ 9254.532633] usb 3-1: new full-speed USB device number 3 using xhci_hcd
[ 9254.666976] usb 3-1: New USB device found, idVendor=0403, idProduct=6001
[ 9254.666983] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9254.666987] usb 3-1: Product: USB Serial Converter
[ 9254.666990] usb 3-1: Manufacturer: FTDI
[ 9254.666993] usb 3-1: SerialNumber: FTHGU6VS
[ 9255.823408] usbcore: registered new interface driver usbserial
[ 9255.823444] usbcore: registered new interface driver usbserial_generic
[ 9255.823474] usbserial: USB Serial support registered for generic
[ 9255.828477] usbcore: registered new interface driver ftdi_sio
[ 9255.828520] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 9255.828713] ftdi_sio 3-1:1.0: FTDI USB Serial Device converter detected
[ 9255.828793] usb 3-1: Detected FT232RL
[ 9255.828798] usb 3-1: Number of endpoints 2
[ 9255.828801] usb 3-1: Endpoint 1 MaxPacketSize 64
[ 9255.828805] usb 3-1: Endpoint 2 MaxPacketSize 64
[ 9255.828809] usb 3-1: Setting MaxPacketSize 64
[ 9255.829043] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 9611.442629] mmc0: new high speed SD card at address d3ba
[ 9611.442899] mmcblk0: mmc0:d3ba SD01G 922 MiB
[ 9611.444592] mmcblk0: p1 p2
[ 9622.891049] mmc...

Read more...

Revision history for this message
Victor Sergienko (singalen) wrote :

Reloading these kernel modules helped:
mmc_block 35932 3
rtsx_usb_sdmmc 27787 0
rtsx_usb 20933 2 rtsx_usb_sdmmc,rtsx_usb_ms

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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