To err or not to err? Filesystem Error Problem
Hi and thanks,
This is about trouble reading files from a particular partition. The volume is my home directory from the prior (now deleted) Fedora 9 system. Linux doesn't list the partition in /dev/disk/by-uuid. When I try to fsck it, I see a report that there are problems and a check is forced. Then after a while fsck asks to make some changes and after making them it seems to finish successfully. But when I mount the volume there is gibberish for file names. Now the first time fsck reported errors I was surprised. The drive had been closed down properly I thought and had been working in the prior system. So I booted Knoppix and saw similar gibberish when the partition was mounted; and I ran fsck there for the first time. It forced a check and when it was done, I mounted the partition and all the file names appeared. But when I mounted it in the new distributions both had the problem as described above. When I reloaded Knoppix again, the files were there without fsck.
Originally I was running Fedora 9 and decided to try Fedora 10 and Ubuntu 8.1. Also I've reinstalled Ubuntu 7.1 which I used before Fedora 9 and the same problem appears there. So Ubuntu 7.1, 8.1 and Fedora 10 have problems with the partition but not Knoppix??
My hardware is an Asus M2n-SLI. It has the nforce 570 chipset. Lspci reports it as MCP55 SATA controller. This board also has a JMicron 20360/20363 hot-swapping controller and I've gotten the problem with both. The hard drive is a SATA I Maxtor-Maxline III Model 7L300S0. The drive is in a Supermicro hot-swapping box.
----Here is lspi output----
~$ lspci
00:00.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a2)
00:01.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation MCP55 SMBus (rev a3)
00:02.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
00:04.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
00:05.0 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
00:05.1 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
00:05.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
00:06.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)
00:08.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a3)
00:0e.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:08.0 SCSI storage controller: Adaptec AIC-7892A U160/m (rev 02)
01:0b.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
02:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 03)
02:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 03)
03:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7600 GS] (rev a1)
~$
----here is some dmesg output----
~$ dmesg |grep error
[ 63.022714] ACPI: Looking for DSDT in initramfs... error, file /DSDT.aml not found.
~$
---the problem partition is at /dev/sdb5---
~$ dmesg|grep sdb
[ 89.140266] sd 8:0:0:0: [sdb] 586114704 512-byte hardware sectors (300091 MB)
[ 89.140273] sd 8:0:0:0: [sdb] Write Protect is off
[ 89.140274] sd 8:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 89.140283] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 89.140310] sd 8:0:0:0: [sdb] 586114704 512-byte hardware sectors (300091 MB)
[ 89.140315] sd 8:0:0:0: [sdb] Write Protect is off
[ 89.140317] sd 8:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 89.140325] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 89.140326] sdb: sdb1 sdb3 sdb4 <<6>usb usb2: configuration #1 chosen from 1 choice
[ 89.169568] sdb5 >
[ 89.169685] sd 8:0:0:0: [sdb] Attached SCSI disk
[ 3370.694401] sd 8:0:0:0: [sdb] Synchronizing SCSI cache
[ 3370.694431] sd 8:0:0:0: [sdb] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK
[ 3370.694434] sd 8:0:0:0: [sdb] Stopping disk
[ 3370.694437] sd 8:0:0:0: [sdb] START_STOP FAILED
[ 3370.694439] sd 8:0:0:0: [sdb] Result: hostbyte=DID_BAD_TARGET
driverbyte=DRIVER_OK,SUGGEST_OK
---the drive on Jmicron controller this time
~$ dmesg|grep jmicron
[ 89.109720] scsi9 : pata_jmicron
[ 89.109781] scsi10 : pata_jmicron
----here is the output of fsck.
----There is no /home/antbat on the running system. /home/antbat is where the volume was mounted on Fedora 9.
~$ sudo fsck /dev/sdb5
[sudo] password for antcat:
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
/home/antbat contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Directories count wrong for group #243 (33, counted=0).
Fix<y>? yes
Free inodes count wrong for group #343 (16497, counted=16369).
Fix<y>? yes
Directories count wrong for group #343 (33, counted=0).
Fix<y>? yes
Directories count wrong for group #625 (33, counted=0).
Fix<y>? yes
Free inodes count wrong (34422761, counted=34422633).
Fix<y>? yes
/home/antbat: ***** FILE SYSTEM WAS MODIFIED *****
/home/antbat: 278679/34701312 files (4.4% non-contiguous), 61197111/69376694 blocks
antcat@antcat-desktop:~$ mkdir 1
antcat@antcat-desktop:~$ sudo mount /dev/sdb5 1
[sudo] password for antcat:
antcat@antcat-desktop:~$ ls 1
???.?? ??8???8?.??8 ??y.??y
antcat@antcat-desktop:~$
----here is /etc/fstab
antcat@antcat-desktop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=af39ea9c-bc12-4419-bdc2-ca710b926481 / ext3 defaults,errors=remount-ro 0 1
# /dev/sdb5
UUID=7edb5a06-f1d7-48ae-b783-155e9ea2fc31 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
----here is "ls -al /dev/disk/by-uuid"
antcat@antcat-desktop:~$ ls -al /dev/disk/by-uuid
total 0
drwxr-xr-x 2 root root 80 2008-12-07 18:46 .
drwxr-xr-x 5 root root 100 2008-12-07 17:52 ..
lrwxrwxrwx 1 root root 10 2008-12-07 17:52 7edb5a06-f1d7-48ae-b783-155e9ea2fc31 -> ../../sda5
lrwxrwxrwx 1 root root 10 2008-12-07 17:52 af39ea9c-bc12-4419-bdc2-ca710b926481 -> ../../sda1
antcat@antcat-desktop:~$
----here is /etc/mtab
antcat@antcat-desktop:~$ cat /etc/mtab
/dev/sda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
lrm /lib/modules/2.6.22-16-generic/volatile tmpfs rw 0 0
securityfs /sys/kernel/security securityfs rw 0 0
/dev/sdb5 /home/antcat/1 vfat rw 0 0
antcat@antcat-desktop:~$
Why does fsck know /home/antbat?
Hoping you can help with this. Thanks!
|