Summary: | sys-apps/util-linux-2.14.1 seems to have problems with mmc/sd cards | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lars Langhans <lars.langhans> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
compressed part of the first 100 sectors from my sd-card
4 straces of fdisk |
Description
Lars Langhans
2008-12-05 18:41:29 UTC
run like `dd if=/dev/mmxblk0 of=foo count=100` and then run `fdisk -l foo` ... if that still works with util-linux-2.13.1 but fails with 2.14.1, compress the file and post it as an attachment What I've done: dd if=/mnt/mmcblk0 of=foo_2.13.1.1.dat count=100 with util-linux-2.13.1.1 then rebuild util-linux-2.14.1, reboot, why: may be /dev will change. Then: dd if=/mnt/mmcblk0 of=foo_2.14.1.dat count=100 fdisk -l no longer shows the sd-card. I checked the difference of foo_2.13... and foo_2.14... in emacs with hexl-mode and ediff-buffers. There are no difference. I can mount the sd-card with util-linux-2.14.1: mount /dev/mmcblk0p1 /mnt/mmc -t vfat dmesg shows me the card. [...] mmc0: card 0001 removed mmc0: new SD card at address 314b mmcblk0: mmc0:314b SD01G 982 MiB mmcblk0: p1 mmc0: card 314b removed mmc0: new SD card at address 314b mmcblk0: mmc0:314b SD01G 982 MiB mmcblk0: p1 [...] I started /etc/init.d/hald and in /var/log/messages I can see an reaction after insert a sd-card. [...] Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1342: volume.block_size -> 512 Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1350: volume.size -> 16027136 Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1334: volume.fsusage -> filesystem Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1334: volume.fstype -> vfat Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1334: volume.fsversion -> FAT12 Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1334: volume.uuid -> 032C-12BD Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1334: volume.label -> CANON_DC Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1334: info.product -> CANON_DC Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.746 [I] hald_dbus.c:1334: volume.partition.scheme -> mbr Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.747 [I] hald_dbus.c:1334: volume.partition.type -> 0x01 Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.747 [I] hald_dbus.c:1334: volume.partition.label -> Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.747 [I] hald_dbus.c:1334: volume.partition.uuid -> Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.782 [I] blockdev.c:387: entering; exit_type=0, return_code=0 Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.787 [I] blockdev.c:141: Add callouts completed udi=/org/freedesktop/Hal/devices/volume_uuid_032C_12BD Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.787 [D] device_store.c:516: adding 0x80dd020 to (linux.sysfs_path,/sys/devices/pci0000:00/0000:00:1e.0/0000:05:05.2/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1) Dec 6 20:58:51 iapetus hald[8256]: 20:58:51.787 [I] hald.c:108: Added device to GDL; udi=/org/freedesktop/Hal/devices/volume_uuid_032C_12BD [...] Also in /proc/partitions or /proc/diskstats I can see the card as well. I know this has nothing to do with the util-linux but with the kernel. Therefore it seems only fdisk has problems to see the card. All other seems to works as expected. but you missed the important part of my comment: run fdisk on the *file*, not the device, and then compress the file and post it as an attachment. Created attachment 174552 [details]
compressed part of the first 100 sectors from my sd-card
util-linux-2.13.1.1 fdisk result iapetus ~ # fdisk -l foo.dat You must set cylinders. You can do this from the extra functions menu. Disk foo.dat: 0 MB, 0 bytes 2 heads, 32 sectors/track, 0 cylinders Units = cylinders of 64 * 512 = 32768 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System foo.dat1 1 490 15651+ 1 FAT12 util-linux-2.14.1 fdisk result iapetus ~ # fdisk -l foo.dat You must set cylinders. You can do this from the extra functions menu. Disk foo.dat: 0 MB, 0 bytes 2 heads, 32 sectors/track, 0 cylinders Units = cylinders of 64 * 512 = 32768 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System foo.dat1 1 490 15651+ 1 FAT12 As you can see, no difference, I attached the first 100 sectors of my SD-Card also. post the full strace output as an attachment of `fdisk -l` on the real disk strace -s 4096 -f -o log fdisk -l ...... Created attachment 174659 [details]
4 straces of fdisk
The tar.gz files contains 4 different straces.
# fdisk of foo.dat
strace -s ... fdisk -l foo.dat with 2.13.1.1
strace -s ... fdisk -l foo.dat with 2.14.1
# fdisk -l
strace -s ... fdisk -l with 2.13.1.1
strace -s ... fdisk -l with 2.14.1
hope that helps.
|