Package: util-linux
Version: 2.12p-8
Severity: normal

I used cfdisk to delete the partition hdb5 (~50 GB) and,
then, create two new partitions (4 and 45 GB). Finally, I
moved all directories from /var/chroot/ia32 to the new
smaller partition. When I run "fdisk -l" and "df", I get
inconsistent results:

root@:~# fdisk -l

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1         851     6835626   83  Linux
/dev/hdb2             852         973      979965   82  Linux swap / Solaris
/dev/hdb3             974        1702     5855692+  83  Linux
/dev/hdb4            1703        9729    64476877+   5  Extended
/dev/hdb5            1703        2188     3903763+  83  Linux
/dev/hdb6            2189        7538    42973843+  83  Linux
/dev/hdb7            7539        8267     5855661   83  Linux
/dev/hdb8            8268        8996     5855661   83  Linux
/dev/hdb9            8997        9729     5887791   83  Linux

root@:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb1              6728280   3525672   2860828  56% /
/dev/hdb3              5763648   3873856   1597008  71% /home
/dev/hdb5             46141380   1303000  42494500   3% /mnt/ia32
tmpfs                   511380         0    511380   0% /dev/shm
/dev/hdb6             42299280    131228  40019360   1% /mnt/sda

As you can see, "fdisk" reports that /dev/hdb5 has 4GB,
while "df" reports 46 GB.

When I go to /mnt/ia32 and do "du -sh", I get the following
errors:

root@:~# cd /mnt/ia32/
root@:ia32# du -sh
du: cannot access `./boot': Input/output error
du: cannot access `./dev': Input/output error
du: cannot access `./etc': Input/output error
du: cannot access `./home': Input/output error
du: cannot access `./initrd': Input/output error
du: cannot access `./lib': Input/output error
du: cannot access `./media': Input/output error
du: cannot access `./mnt': Input/output error
du: cannot access `./opt': Input/output error
du: cannot access `./proc': Input/output error
du: cannot access `./root': Input/output error
du: cannot access `./sbin': Input/output error
du: cannot access `./srv': Input/output error
du: cannot access `./sys': Input/output error
du: cannot access `./tmp': Input/output error
du: cannot access `./usr': Input/output error
du: cannot access `./var': Input/output error
2.9M    .

root@:~# dmesg | tail
EXT3-fs error (device hdb5): ext3_get_inode_loc: unable to read inode block - 
inode=3145729, block=6291458
attempt to access beyond end of device
hdb5: rw=0, want=51642392, limit=7807527
EXT3-fs error (device hdb5): ext3_get_inode_loc: unable to read inode block - 
inode=3227649, block=6455298
attempt to access beyond end of device
hdb5: rw=0, want=36175896, limit=7807527
EXT3-fs error (device hdb5): ext3_get_inode_loc: unable to read inode block - 
inode=2260993, block=4521986
attempt to access beyond end of device
hdb5: rw=0, want=44564504, limit=7807527
EXT3-fs error (device hdb5): ext3_get_inode_loc: unable to read inode block - 
inode=2785281, block=5570562
root@:~# 

All original partitions were created with the Debian
installer of CD 1 (Sarge).

Best regards,

Jakson

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-amd64-k8
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)

Versions of packages util-linux depends on:
ii  libc6                         2.3.5-8.1  GNU C Library: Shared libraries an
ii  libncurses5                   5.5-1      Shared libraries for terminal hand
ii  libslang2                     2.0.5-1    The S-Lang programming library - r
ii  libuuid1                      1.38-2     universally unique id library
ii  zlib1g                        1:1.2.3-8  compression library - runtime

util-linux recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to