[Bug 1179770] [NEW] Wrong information reported by command df
Christophe
chatelai at free.fr
Tue May 14 04:26:03 UTC 2013
Public bug reported:
The command 'df' reports the following informations about my partitions:
> df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 476740616 264313004 188203868 59% /
none 4 0 4 0% /sys/fs/cgroup
udev 1912656 8 1912648 1% /dev
tmpfs 385588 876 384712 1% /run
none 5120 0 5120 0% /run/lock
none 1927928 148 1927780 1% /run/shm
none 102400 12 102388 1% /run/user
/dev/sdb1 476740616 264313004 188203868 59% /media/backup
You can notice that the informations for /dev/sd1 are identical to those
of my main partition /dev/sda1. But /dev/sdb1 is actually a 16 Gb SD
card.
fdisk provides correct informations:
> fdisk /dev/sdb
p
Disk /dev/sdb: 15.9 GB, 15931539456 bytes
255 heads, 63 sectors/track, 1936 cylinders, total 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00037e0d
Device Boot Start End Blocks Id System
/dev/sdb1 63 31101839 15550888+ 83 Linux
The command 'dmesg' gives when I plug in the card
>dmesg
[ 3299.049759] usb 2-2: new high-speed USB device number 4 using ehci-pci
[ 3299.194700] usb 2-2: New USB device found, idVendor=0bda, idProduct=0138
[ 3299.194718] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3299.194728] usb 2-2: Product: USB2.0-CRW
[ 3299.194738] usb 2-2: Manufacturer: Generic
[ 3299.194746] usb 2-2: SerialNumber: 20090516388200000
[ 3299.218485] scsi3 : usb-storage 2-2:1.0
[ 3300.220628] scsi 3:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANSI: 0 CCS
[ 3300.224353] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 3300.931175] sd 3:0:0:0: [sdb] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 3300.932269] sd 3:0:0:0: [sdb] Write Protect is off
[ 3300.932284] sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 3300.933399] sd 3:0:0:0: [sdb] No Caching mode page present
[ 3300.933411] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3300.940241] sd 3:0:0:0: [sdb] No Caching mode page present
[ 3300.940254] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3300.941306] sdb: sdb1
[ 3300.949741] sd 3:0:0:0: [sdb] No Caching mode page present
[ 3300.949757] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3300.949767] sd 3:0:0:0: [sdb] Attached SCSI removable disk
I use the stable distribution (raring)
> lsb_release -rd
Description: Ubuntu 13.04
Release: 13.04
> more /proc/version
Linux version 3.8.0-19-generic (buildd at roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #30-
Ubuntu SMP Wed May 1 16:36:13 UTC 2013
> dpkg -l coreutils
ii coreutils 8.20-3ubuntu5 i386 GNU core utilities
** Affects: coreutils (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1179770
Title:
Wrong information reported by command df
Status in “coreutils” package in Ubuntu:
New
Bug description:
The command 'df' reports the following informations about my partitions:
> df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 476740616 264313004 188203868 59% /
none 4 0 4 0% /sys/fs/cgroup
udev 1912656 8 1912648 1% /dev
tmpfs 385588 876 384712 1% /run
none 5120 0 5120 0% /run/lock
none 1927928 148 1927780 1% /run/shm
none 102400 12 102388 1% /run/user
/dev/sdb1 476740616 264313004 188203868 59% /media/backup
You can notice that the informations for /dev/sd1 are identical to
those of my main partition /dev/sda1. But /dev/sdb1 is actually a 16
Gb SD card.
fdisk provides correct informations:
> fdisk /dev/sdb
p
Disk /dev/sdb: 15.9 GB, 15931539456 bytes
255 heads, 63 sectors/track, 1936 cylinders, total 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00037e0d
Device Boot Start End Blocks Id System
/dev/sdb1 63 31101839 15550888+ 83 Linux
The command 'dmesg' gives when I plug in the card
>dmesg
[ 3299.049759] usb 2-2: new high-speed USB device number 4 using ehci-pci
[ 3299.194700] usb 2-2: New USB device found, idVendor=0bda, idProduct=0138
[ 3299.194718] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3299.194728] usb 2-2: Product: USB2.0-CRW
[ 3299.194738] usb 2-2: Manufacturer: Generic
[ 3299.194746] usb 2-2: SerialNumber: 20090516388200000
[ 3299.218485] scsi3 : usb-storage 2-2:1.0
[ 3300.220628] scsi 3:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANSI: 0 CCS
[ 3300.224353] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 3300.931175] sd 3:0:0:0: [sdb] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 3300.932269] sd 3:0:0:0: [sdb] Write Protect is off
[ 3300.932284] sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 3300.933399] sd 3:0:0:0: [sdb] No Caching mode page present
[ 3300.933411] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3300.940241] sd 3:0:0:0: [sdb] No Caching mode page present
[ 3300.940254] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3300.941306] sdb: sdb1
[ 3300.949741] sd 3:0:0:0: [sdb] No Caching mode page present
[ 3300.949757] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 3300.949767] sd 3:0:0:0: [sdb] Attached SCSI removable disk
I use the stable distribution (raring)
> lsb_release -rd
Description: Ubuntu 13.04
Release: 13.04
> more /proc/version
Linux version 3.8.0-19-generic (buildd at roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #30-
Ubuntu SMP Wed May 1 16:36:13 UTC 2013
> dpkg -l coreutils
ii coreutils 8.20-3ubuntu5 i386 GNU core utilities
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1179770/+subscriptions
More information about the foundations-bugs
mailing list