llivv wrote:I haven't used ext4 yet so I can't give you the solution.
I will suggest you take a look at the progs for repairing the superblock
The only program that I can think of that might do that is e2fsck, and I can't get it to check the partition.
Code: Select all
mke2fs -n /dev/sda3
mke2fs 1.41.4 (27-Jan-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
9953280 inodes, 39797021 blocks
1989851 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
1215 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
I tried using the -b option for each superblock backup mentioned there, and they all failed with the aforementioned error message.
aspnair wrote:ATA Error Count: 2
.....
25 03 40 bf 25 78 e0 00 03:35:13.728 READ DMA EXT
Make sure that your hard disk is really good.
May be try another fsck, see whether the errors are going up.
Also look at the output of dmesg
The other partitions are clean, and e2fsck won't check the bad one.
There is a lot of stuff in dmesg. What exactly am I looking for in it? Here are the last 50 lines from a live CD
Code: Select all
[ 3.382450] Floppy drive(s): fd0 is 1.44M
[ 3.399871] FDC 0 is a post-1991 82077
[ 3.400068] hub 1-0:1.0: over-current change on port 5
[ 3.434640] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 3.434666] r8169 0000:00:0b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 3.434683] r8169 0000:00:0b.0: PCI: Disallowing DAC for device
[ 3.434726] r8169 0000:00:0b.0: no PCI Express capability
[ 3.435246] eth0: RTL8110s at 0xffffc20000152f00, 00:0c:76:b3:41:5b, XID 04000000 IRQ 16
[ 3.457127] ohci1394 0000:00:0e.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 3.509878] ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[19] MMIO=[cfffe000-cfffe7ff] Max Packet=[2048] IR/IT contexts=[4/8]
[ 3.516022] hub 1-0:1.0: over-current change on port 6
[ 3.620033] hub 1-0:1.0: over-current change on port 7
[ 3.724032] hub 1-0:1.0: over-current change on port 8
[ 4.068009] usb 3-1: new low speed USB device using uhci_hcd and address 2
[ 4.241322] usb 3-1: configuration #1 chosen from 1 choice
[ 4.249197] usbcore: registered new interface driver hiddev
[ 4.264583] input: Logitech USB Mouse as /devices/pci0000:00/0000:00:10.1/usb3/3-1/3-1:1.0/input/input5
[ 4.288041] generic-usb 0003:046D:C00C.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB Mouse] on usb-0000:00:10.1-1/input0
[ 4.288060] usbcore: registered new interface driver usbhid
[ 4.288063] usbhid: v2.6:USB HID core driver
[ 4.469384] kjournald starting. Commit interval 5 seconds
[ 4.469396] EXT3-fs: mounted filesystem with ordered data mode.
[ 4.484018] usb 3-2: new full speed USB device using uhci_hcd and address 3
[ 4.503379] kjournald starting. Commit interval 5 seconds
[ 4.503389] EXT3-fs: mounted filesystem with ordered data mode.
[ 4.670985] usb 3-2: configuration #1 chosen from 1 choice
[ 4.796175] ieee1394: Host added: ID:BUS[0-00:1023] GUID[0010dc00005c7cfd]
[ 6.067058] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 6.091293] ISO 9660 Extensions: RRIP_1991A
[ 6.335299] aufs 20080922
[ 6.528117] squashfs: version 3.3 (2007/10/31) Phillip Lougher
[ 52.759104] udev: starting version 141
[ 52.997418] parport_pc 00:03: reported by Plug and Play ACPI
[ 52.997530] parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
[ 53.419113] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 53.562076] usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x7904
[ 53.562100] usbcore: registered new interface driver usblp
[ 54.085373] input: PC Speaker as /devices/platform/pcspkr/input/input6
[ 54.148775] ppdev: user-space parallel port driver
[ 54.184957] ACPI: I/O resource vt596_smbus [0x400-0x407] conflicts with ACPI region SMOV [0x400-0x406]
[ 54.184960] ACPI: Device needs an ACPI driver
[ 54.767424] VIA 82xx Audio 0000:00:11.5: PCI INT C -> GSI 22 (level, low) -> IRQ 22
[ 54.767583] VIA 82xx Audio 0000:00:11.5: setting latency timer to 64
[ 58.148004] Adding 891596k swap on /dev/sda4. Priority:-1 extents:1 across:891596k
[ 67.159582] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 67.159585] Bluetooth: BNEP filters: protocol multicast
[ 67.416960] Bridge firewalling registered
[ 75.658620] lp0: using parport0 (interrupt-driven).
[ 77.581884] r8169: eth0: link up
[ 87.652013] eth0: no IPv6 routers present
An here is what happens when I try to mount it from the CD
Code: Select all
mount -t ext4 /dev/sda3 /mnt/devil/
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg | tail
[ 54.767424] VIA 82xx Audio 0000:00:11.5: PCI INT C -> GSI 22 (level, low) -> IRQ 22
[ 54.767583] VIA 82xx Audio 0000:00:11.5: setting latency timer to 64
[ 58.148004] Adding 891596k swap on /dev/sda4. Priority:-1 extents:1 across:891596k
[ 67.159582] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 67.159585] Bluetooth: BNEP filters: protocol multicast
[ 67.416960] Bridge firewalling registered
[ 75.658620] lp0: using parport0 (interrupt-driven).
[ 77.581884] r8169: eth0: link up
[ 87.652013] eth0: no IPv6 routers present
[ 1339.894240] VFS: Can't find ext4 filesystem on dev sda3.