LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-07-2008, 09:54 PM   #1
abejarano
Member
 
Registered: May 2006
Posts: 32

Rep: Reputation: 15
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!
 
Old 12-08-2008, 12:39 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,743

Rep: Reputation: 299Reputation: 299Reputation: 299
It looks like you are using GNU/Linux fsck to check a vfat partition. You should be using fsck.vfat to check /home/antbat.
 
Old 12-09-2008, 04:23 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,801

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
There are several inconsistencies that require clarification. Your mtab and fstab do not make sense if they are from the same running distribution. sdb5 appears to be swap in one and vfat in the other. sdb1 appears to be root in fstab but sda1 in mtab.

How many physical disks are attached to the computer? As posted from the output of /dev/disk it only appears like one. From the output of mtab is appear that you have more then one. If only one then what is the output of the command
fdisk -l (must be root and that is a small L)

My guess is that /home/antbat is a partition label and has nothing to do with how it is actually mounted. You can verify with the e2label command. And do not run fsck on a mounted partition.

Last edited by michaelk; 12-09-2008 at 04:28 AM.
 
Old 12-09-2008, 04:12 PM   #4
abejarano
Member
 
Registered: May 2006
Posts: 32

Original Poster
Rep: Reputation: 15
Thank you both very much. I didn't see that mtab had the drive as vfat. Using "mount -t ext3 ...", it now mounts correctly manually. I wonder why it's vfat but I'm sure an entry in fstab will fix everything.
To answer your questions, MichaelK: Fstab and mtab were from the same distribution but different runs. There were two physical drives on the computer, (1) the system drive, a true SCSI on an Adaptec controller card and the problem drive on one of the board controllers. I remember trying it on different slots in the drive box to try both controllers and also maybe ran the system without the problem drive and hot-plugged it. I can't post new examples because I reinstalled 8.1. I appreciate your explaining about the /home/antbat label. It did verify with e2label.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random file lines directed to a new file. In script an error. In command line no err leventis Programming 1 09-28-2006 07:16 AM
Dual system boot err: rootnoverify(hd1,0),but the hd0 err msg existed befor shut down lilipeng24 Linux - General 3 06-25-2005 12:10 PM
LFS 6.0 problem: GCC check err. alinsoar Linux From Scratch 11 06-03-2005 05:37 AM
err=2 noz6 Slackware - Installation 3 01-30-2005 11:26 PM
tiglusb cable error> ticables: err: usb_claim_interface r_jensen11 Linux - Hardware 0 08-26-2004 05:12 PM


All times are GMT -5. The time now is 05:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration