You are not logged in.

#1 2010-10-02 12:36:19

TelaKeppi
Member
Registered: 2010-05-13
Posts: 6

Filesystem check failed, but filesystems are clean

Im running custom kernel and this might be related to it, but Im on my wits' end here and looking for pointers.

The problem is, Im getting filesystem check failed every time I boot my system. And it gives no apparent reason
for it to happen. I have fsck'd my partitions many times and they are clean. My hwclock is in time and rc.conf is set
to 'localtime'. The problem didn't occurs on the previous kernel (2.6.18) I had, so I've been using its running config to
compile the new one (2.6.23). The thing is, the previous kernel works fine, no filesystem check failed in boot. Only
difference between those two is I had to enable HOTPLUG in the newer kernel to get udev working, otherwise it would
complain about failing netlink socket in initscript.

As a temporary solution, I commented out the filesystem check from the rc.sysinit and it boots further. This time
it fails to mount my /boot/ and /home/ directory and fails to activate my swap. Effectively only root is mounted, but
after logging in, "mount -a" works without any problems and I can use my system normally.

I have compiled all(?) the needed modules to the kernel, so initramfs shouldn't be needed, but I've tried it anyway, no
luck there. The system is build with 2009.08 core install disc, no packages updated as far as I recall.

fstab:

#none                   /dev/pts      devpts    defaults            0      0
#none                   /dev/shm      tmpfs     defaults            0      0

/dev/hdb             /media/cdrom   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/disk/by-uuid/728c65f2-a84f-401f-9899-17020758b829 /boot ext3 defaults 0 1
/dev/disk/by-uuid/2767f772-203a-4fe9-ac4d-7c8754abc4c8 swap swap defaults 0 0
/dev/disk/by-uuid/b0b958c4-5f24-414a-8826-6df956f0815b / reiserfs defaults 0 1
/dev/disk/by-uuid/e83b7114-86fe-4e8f-9e95-0d92b8e50d1a /home reiserfs defaults 0 1

dmesg:

Linux version 2.6.23-xbox (root@xbox) (gcc version 4.1.2) #3 Sat Oct 2 14:20:54 EEST 2010
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e820: 000000000009f000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000003c00000 (usable)
 BIOS-e820: 0000000003c00000 - 0000000004000000 (reserved)
60MB LOWMEM available.
Entering add_active_range(0, 0, 15360) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->    15360
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    15360
On node 0 totalpages: 15360
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 88 pages used for memmap
  Normal zone: 11176 pages, LIFO batch:1
  Movable zone: 0 pages used for memmap
DMI not present or invalid.
Allocating PCI resources starting at 10000000 (gap: 04000000:fc000000)
Built 1 zonelists in Zone order.  Total pages: 15240
Kernel command line: root=/dev/hda3 devfs=mount kbd-reset xbox=hdd
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 256 (order: 8, 1024 bytes)
Detected 733.370 MHz processor.
Console: colour dummy device 80x25
console [tty0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 57652k/61440k available (1764k kernel code, 3380k reserved, 470k data, 136k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xffffb000 - 0xfffff000   (  16 kB)
    vmalloc : 0xc4800000 - 0xffff9000   ( 951 MB)
    lowmem  : 0xc0000000 - 0xc3c00000   (  60 MB)
      .init : 0xc0332000 - 0xc0354000   ( 136 kB)
      .data : 0xc02b90ae - 0xc032ea60   ( 470 kB)
      .text : 0xc0100000 - 0xc02b90ae   (1764 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 1467.98 BogoMIPS (lpj=2935965)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 128K
CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040 00000000 00000000 00000000 00000000
Compat vDSO mapped to ffffe000.
CPU: Intel Celeron (Coppermine) stepping 0a
Checking 'hlt' instruction... OK.
NET: Registered protocol family 16
PCI: Using configuration type 1
Setting up standard PCI resources
SCSI subsystem initialized
libata version 2.21 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Cannot allocate resource region 7 of bridge 0000:00:08.0
PCI: Cannot allocate resource region 8 of bridge 0000:00:08.0
PCI: Cannot allocate resource region 9 of bridge 0000:00:08.0
PCI: Bridge: 0000:00:08.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
PCI: Failed to allocate mem resource #2:80000@f8000000 for 0000:01:00.0
PCI: Failed to allocate mem resource #6:10000@f8000000 for 0000:01:00.0
PCI: Bridge: 0000:00:1e.0
  IO window: disabled.
  MEM window: fd000000-fdffffff
  PREFETCH window: f0000000-f7ffffff
PCI: Setting latency timer of device 0000:00:08.0 to 64
NET: Registered protocol family 2
Time: tsc clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 325k freed
Enabling Xbox eject problem workaround.
fuse init (API version 7.8)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
xboxfb: nVidia device/chipset 10DE02A0
xboxfb: Detected 64MB of system RAM
xboxfb: Using 4M framebuffer memory
i2c-xbox.o version 0.0.1
i2c-xbox.o: Found nVidia XBOX nForce SMBus controller.
i2c-xbox.o: SMBus bus detected and initialized
xbox-tv-i2c: Using 'SMBus adapter at c000'!
xboxfb: Setting TV mode from EEPROM (NTSC)
xboxfb: detected conexant encoder
xboxfb: Setting cable type from AVIP ID: HDTV (Component video)
xboxfb: RIVA MTRR set to ON
Console: switching to colour frame buffer device 80x30
xboxfb: PCI nVidia NV20 framebuffer ver 0.9.5b-xbox (XboxGeForce3, 4MB @ 0xF3C00000)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
[drm] Initialized drm 1.1.0 20060810
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.60.
PCI: Setting latency timer of device 0000:00:04.0 to 64
eth0: forcedeth.c: subsystem: 00000:0000 bound to 0000:00:04.0
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
NFORCE: IDE controller at PCI slot 0000:00:09.0
NFORCE: chipset revision 212
NFORCE: not 100% native mode: will probe irqs later
NFORCE: 0000:00:09.0 (rev d4) UDMA100 controller
    ide0: BM-DMA at 0xff60-0xff67, BIOS settings: hda:DMA, hdb:DMA
Probing IDE interface ide0...
hda: WDC WD2500JB-00FUA0, ATA DISK drive
hdb: PHILIPS XBOX DVD DRIVE, ATAPI CD/DVD-ROM drive
hda: host side 80-wire cable detection failed, limiting max speed to UDMA33
hda: selected mode 0x42
hdb: selected mode 0x42
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hda: max request size: 512KiB
hda: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63, UDMA(33)
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4
hdb: ATAPI DVD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
PCI: Setting latency timer of device 0000:00:02.0 to 64
ohci_hcd 0000:00:02.0: OHCI Host Controller
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:02.0: irq 1, io mem 0xfed00000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
PCI: Setting latency timer of device 0000:00:03.0 to 64
ohci_hcd 0000:00:03.0: OHCI Host Controller
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:03.0: irq 9, io mem 0xfed08000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
USB Universal Host Controller Interface driver v3.0
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
usb 1-3: new low speed USB device using ohci_hcd and address 2
usb 1-3: configuration #1 chosen from 1 choice
input: DELL DELL USB Keyboard as /devices/pci0000:00/0000:00:02.0/usb1/1-3/1-3:1.0/input/input0
usbcore: registered new interface driver usbkbd
drivers/hid/usbhid/usbkbd.c: :USB HID Boot Protocol keyboard driver
usbcore: registered new interface driver usbmouse
drivers/hid/usbhid/usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
TCP cubic registered
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing unused kernel memory: 136k freed
ReiserFS: hda3: found reiserfs format "3.6" with standard journal
ReiserFS: hda3: using ordered data mode
ReiserFS: hda3: journal params: device hda3, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hda3: checking transaction log (hda3)
ReiserFS: hda3: Using r5 hash to sort names
NET: Registered protocol family 1
spurious 8259A interrupt: IRQ7.
udev: starting version 141

df -h after "mount -a":

Filesystem            Size  Used Avail Use% Mounted on
/dev/disk/by-uuid/b0b958c4-5f24-414a-8826-6df956f0815b
                      7.4G  2.1G  5.3G  29% /
/dev/hda1              99M   11M   83M  12% /boot
/dev/hda4             226G   39M  226G   1% /home

Ok, something is definately wrong there, only root is by-uuid

blkid:

/dev/hda3: UUID="b0b958c4-5f24-414a-8826-6df956f0815b" TYPE="reiserfs" 
/dev/hda2: TYPE="swap" UUID="2767f772-203a-4fe9-ac4d-7c8754abc4c8" 
/dev/hda4: UUID="e83b7114-86fe-4e8f-9e95-0d92b8e50d1a" TYPE="reiserfs" 
/dev/hda1: UUID="728c65f2-a84f-401f-9899-17020758b829" SEC_TYPE="ext2" TYPE="ext3"

Should I try newer udev? Can I even use the latest with 2.6.23?

Offline

#2 2010-10-02 12:50:36

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Filesystem check failed, but filesystems are clean

Is there a particular reason why you're using outdated software and kernel?

Sounds to me like a udev issue. I'd try rootdelay=10 as boot parameter. And when I'd be out of ideas, I'd do a full system upgrade.


no place like /home
github

Offline

#3 2010-10-02 13:03:07

TelaKeppi
Member
Registered: 2010-05-13
Posts: 6

Re: Filesystem check failed, but filesystems are clean

The standard kernel doesn't work without patches and 2.6.23 is the latest I have been able to modify by hand. If the rootdelay adds a waiting time before mounting root, I have it allready enabled.

Offline

#4 2010-10-02 20:37:06

TelaKeppi
Member
Registered: 2010-05-13
Posts: 6

Re: Filesystem check failed, but filesystems are clean

Mounting Local Filesystems fails

Mount: Special device /dev/disk/by-uuid/728c65f2-a84f-401f-9899-17020758b829 does not exist
Mount: Special device /dev/disk/by-uuid/e83b7114-86fe-4e8f-9e95-0d92b8e50d1a does not exist

so does Activating swap.

still, ls -la /dev/disk/by-uuid/ gives me:

lrwxrwxrwx 1 root root 10 2010-10-02 22:45 2767f772-203a-4fe9-ac4d-7c8754abc4c8 -> ../../hda2
lrwxrwxrwx 1 root root 10 2010-10-02 22:45 728c65f2-a84f-401f-9899-17020758b829 -> ../../hda1
lrwxrwxrwx 1 root root 10 2010-10-02 22:45 b0b958c4-5f24-414a-8826-6df956f0815b -> ../../hda3
lrwxrwxrwx 1 root root 10 2010-10-02 22:45 e83b7114-86fe-4e8f-9e95-0d92b8e50d1a -> ../../hda4

should I have /boot and /home in /dev?

Full system upgrade gave me the same issue. Even after udev downgrade (udev-142 is the latest I can use with 2.6.23).

Edit:

Changed my fstab back from by-uuid to hdaX, didn't help. Strangely all hdaX are in /dev/ after boot, but the symlinks are missing.

Last edited by TelaKeppi (2010-10-02 21:22:53)

Offline

#5 2010-10-03 03:54:22

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: Filesystem check failed, but filesystems are clean

I don't know anything about your custom kernel, of course, but I had a similar failure when I did a fresh standard install last fall.  The problem I had was due to PATA vs. SATA issues. Even though my machine had a parallel ata disk interface, the kernel (I believe) still accesses the disk through the serial interface.  I had been trying to use /dev/hdaN etc. (as I see you are) but the problem went away when I used /dev/sdaN.

Now I don't know when the kernel changed to access the pata disks through the sata interface, but that could be your problem.

I was doing a standard fresh installation using the standard Arch kernel using the 2009.08 install cd as you seem to be doing, and I selected the 'Legacy IDE' install option from the menu.   When I started over using the standard install option, that fixed it.

see https://bbs.archlinux.org/viewtopic.php?id=85934

Offline

#6 2010-10-03 12:27:40

TelaKeppi
Member
Registered: 2010-05-13
Posts: 6

Re: Filesystem check failed, but filesystems are clean

Thanks for the suggestion. Although I think legacy_ide only changes the hooks in initramfs to include pata driver instead of sata(?) The problem is I cant do a full system reinstall since the machine I used for making this install, kernel panics and crashes at startup without legacy_ide. So I would need to do the changes by hand. The custom kernel includes patches for the pata support, so Im not sure what would happen if I enable libata as well. Can those coexist?

Offline

#7 2010-10-03 17:11:35

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: Filesystem check failed, but filesystems are clean

I'm sorry, I'm not knowledgeable enought to answer your question.  As someone in the thread I referenced suggested, just change your /etc/fstab to use /dev/sd* instead of /dev/hd* and see what happens.  Perhaps your patches are incompatible with your kernel in this area.  Good luck.

Offline

#8 2010-10-03 20:03:16

TelaKeppi
Member
Registered: 2010-05-13
Posts: 6

Re: Filesystem check failed, but filesystems are clean

Success at last! While googling for pointers, i stumbled on this https://bbs.archlinux.org/viewtopic.php?pid=650611 topic, which is essentially the same problem I initially had. So to test that theory, rather than downgrade udev. I pulled initscripts-2009.08-1-i686.pkg.tar.gz package from Arch Rollback Machine, which is the same(?) package that's in the 2009.08 core image. I installed it and noticed rc.sysinit differed size wise from the stock from 2009.08 core install (luckily I backed it up before fidling with it). I quickly compared the points I had previously tried to alter, but they seemed identical. To see if my system would still boot, I rebooted and holy sh.. it booted without any issues smile I think it's finally time to do a full system upgrade after blacklisting some packages.

Offline

Board footer

Powered by FluxBB