linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ext3 recovery
@ 2002-11-13 17:13 Andrei Ivanov
  2002-11-13 18:42 ` Andreas Dilger
  0 siblings, 1 reply; 3+ messages in thread
From: Andrei Ivanov @ 2002-11-13 17:13 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 837 bytes --]


Hello, I have an ext3 formated partition on a harddrive that just got tons
of badblocks and I'm trying to recover as much data as possible from that
partition.
If I try e2fsck /dev/hdb3 I get this error:

e2fsck 1.32 (09-Nov-2002)
Group descriptors look bad... trying backup blocks...
e2fsck: Invalid argument while checking ext3 journal for /

So I tried to remove the journal and make e2fsck treat the partition as an
ext2 one, but no luck, although tune2fs -O ^has_journal /dev/hdb3 doesn't
give me any message, except it's version string.

If I pass fsck the backup superblock myself, it still refuses to run:
e2fsck -b 32768 /dev/hdb3
e2fsck: Invalid argument while checking ext3 journal for /

Attached you will find some info (dmesg and hdparm). If you need any more
info, tell me.

Please advise, what can I do now ?
Thank you


[-- Attachment #2: dmesg.log --]
[-- Type: TEXT/PLAIN, Size: 7498 bytes --]

Linux version 2.5.47 (root@hate.dev.ro) (gcc version 3.2) #1 Mon Nov 11 17:52:02 EET 2002
Video mode to be used for restore is f00
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e7000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fffdc00 (usable)
 BIOS-e820: 000000001fffdc00 - 000000001ffffc00 (ACPI data)
 BIOS-e820: 000000001ffffc00 - 0000000020000000 (ACPI NVS)
 BIOS-e820: 00000000fffe7000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131069
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 126973 pages, LIFO batch:16
  HighMem zone: 0 pages, LIFO batch:1
ACPI: RSDP (v000 PTLTD                      ) @ 0x000f6ad0
ACPI: RSDT (v001 PTLTD    RSDT   00000.00001) @ 0x1fffdd69
ACPI: FADT (v001 INTEL  SEATTLE2 08192.02071) @ 0x1ffffb8c
ACPI: DSDT (v001  Intel  S2440BX 00000.00001) @ 0x00000000
ACPI: BIOS passes blacklist
ACPI: MADT not present
Building zonelist for node : 0
Kernel command line: root=/dev/hda3
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 548.587 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1085.44 BogoMIPS
Memory: 514524k/524276k available (2086k kernel code, 9016k reserved, 1159k data, 288k init, 0k highmem)
Security Scaffold v1.0.0 initialized
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
-> /dev
-> /dev/console
-> /root
CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
CPU:     After generic, caps: 0383fbff 00000000 00000000 00000000
CPU:             Common caps: 0383fbff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel Pentium III (Katmai) stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 548.0648 MHz.
..... host bus clock speed is 99.0754 MHz.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
mtrr: v2.0 (20020519)
PCI: PCI BIOS revision 2.10 entry at 0xfd9b4, last bus=1
PCI: Using configuration type 1
Registering system device cpu0
adding 'CPU 0' to cpu class interfaces
BIO: pool of 256 setup, 14Kb (56 bytes/bio)
biovec pool[0]:   1 bvecs: 256 entries (12 bytes)
biovec pool[1]:   4 bvecs: 256 entries (48 bytes)
biovec pool[2]:  16 bvecs: 256 entries (192 bytes)
biovec pool[3]:  64 bvecs: 256 entries (768 bytes)
biovec pool[4]: 128 bvecs: 256 entries (1536 bytes)
biovec pool[5]: 256 bvecs: 256 entries (3072 bytes)
ACPI: Subsystem revision 20021101
    ACPI-0508: *** Info: GPE Block0 defined as GPE0 to GPE15
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 9 10 11 12, disabled)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 9 *10 11 12)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 9 10 *11 12)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 *9 10 11 12)
ACPI: Power Resource [PFAN] (on)
block request queues:
 992 requests per read queue
 992 requests per write queue
 8 requests per batch
 enter congestion at 123
 exit congestion at 125
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
Registering system device pic0
Registering system device rtc0
slab: reap timer started for cpu 0
aio_setup: sizeof(struct page) = 40
[dff9e040] eventpoll: driver installed.
Journalled Block Device driver loaded
devfs: v1.22 (20021013) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver 2.1.0 [Flags: R/O].
udf: registering filesystem
Capability LSM initialized
Initializing Cryptographic API
Limiting direct PCI/PCI transfers.
ACPI: Power Button (FF) [PWRF]
ACPI: Fan [FAN1] (on)
ACPI: Processor [CPU0] (supports C1 C2)
Serial: 8250/16550 driver $Revision: 1.90 $ IRQ sharing disabled
tts/0 at I/O 0x3f8 (irq = 4) is a 16550A
tts/1 at I/O 0x2f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.11
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected Intel 440BX chipset
agpgart: AGP aperture is 64M @ 0xf8000000
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
8139too Fast Ethernet driver 0.9.26
eth0: RealTek RTL8139 Fast Ethernet at 0xe0829000, 00:02:44:02:92:c7, IRQ 10
eth0:  Identified 8139 chip type 'RTL-8139C'
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1420-0x1427, BIOS settings: hda:DMA, hdb:DMA
hda: IBM-DTLA-305020, ATA DISK drive
hdb: QUANTUM FIREBALLP AS20.5, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: host protected area => 1
hda: 40188960 sectors (20577 MB) w/380KiB Cache, CHS=2501/255/63, UDMA(33)
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3
hdb: host protected area => 1
hdb: 40132503 sectors (20548 MB) w/1902KiB Cache, CHS=2498/255/63, UDMA(33)
 /dev/ide/host0/bus0/target1/lun0: p1 p2 p3
register interface 'mouse' with class 'input
mice: PS/2 mouse device common for all mice
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
serio: i8042 AUX port at 0x60,0x64 irq 12
input: AT Set 2 keyboard on isa0060/serio0
serio: i8042 KBD port at 0x60,0x64 irq 1
Advanced Linux Sound Architecture Driver Version 0.9.0rc5 (Sun Nov 10 19:48:18 2002 UTC).
request_module[snd-card-0]: not ready
request_module[snd-card-1]: not ready
request_module[snd-card-2]: not ready
request_module[snd-card-3]: not ready
request_module[snd-card-4]: not ready
request_module[snd-card-5]: not ready
request_module[snd-card-6]: not ready
request_module[snd-card-7]: not ready
ALSA device list:
  #0: Yamaha DS-XG PCI (YMF740C) at 0xe082d000, irq 11
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 288k freed
EXT3 FS 2.4-0.9.16, 02 Dec 2001 on ide0(3,3), internal journal
Adding 262136k swap on /swap.  Priority:-1 extents:67
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.

[-- Attachment #3: hdparm.log --]
[-- Type: TEXT/PLAIN, Size: 1739 bytes --]


/dev/hdb:

ATA device, with non-removable media
	Model Number:       QUANTUM FIREBALLP AS20.5                
	Serial Number:      192116572795        
	Firmware Revision:  A1Y.1500
Standards:
	Used: ATA/ATAPI-5 T13 1321D revision 1 
	Supported: 5 4 3 2 & some of 6
Configuration:
	Logical		max	current
	cylinders	16383	17475
	heads		16	15
	sectors/track	63	63
	--
	CHS current addressable sectors:   16513875
	LBA    user addressable sectors:   40132503
	device size with M = 1024*1024:       19595 MBytes
	device size with M = 1000*1000:       20547 MBytes (20 GB)
Capabilities:
	LBA, IORDY(can be disabled)
	bytes avail on r/w long: 4	Queue depth: 1
	Standby timer values: spec'd by Vendor, no device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 16
	Recommended acoustic management value: 254, current value: 254
	DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	READ BUFFER cmd
	   *	WRITE BUFFER cmd
	   *	Host Protected Area feature set
	   *	Look-ahead
	   *	Write cache
	   *	Power Management feature set
		Security Mode feature set
	   *	SMART feature set
	   *	Automatic Acoustic Management feature set 
		SET MAX security extension
	   *	DOWNLOAD MICROCODE cmd
Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
	not	supported: enhanced erase
	12min for SECURITY ERASE UNIT. 
HW reset results:
	CBLID- above Vih
	Device num = 1 determined by the jumper
Checksum: correct

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ext3 recovery
  2002-11-13 17:13 ext3 recovery Andrei Ivanov
@ 2002-11-13 18:42 ` Andreas Dilger
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Dilger @ 2002-11-13 18:42 UTC (permalink / raw)
  To: Andrei Ivanov; +Cc: linux-kernel

On Nov 13, 2002  19:13 +0200, Andrei Ivanov wrote:
> Hello, I have an ext3 formated partition on a harddrive that just got tons
> of badblocks and I'm trying to recover as much data as possible from that
> partition.
> If I try e2fsck /dev/hdb3 I get this error:
> 
> e2fsck 1.32 (09-Nov-2002)
> Group descriptors look bad... trying backup blocks...
> e2fsck: Invalid argument while checking ext3 journal for /
> 
> So I tried to remove the journal and make e2fsck treat the partition as an
> ext2 one, but no luck, although tune2fs -O ^has_journal /dev/hdb3 doesn't
> give me any message, except it's version string.
> 
> If I pass fsck the backup superblock myself, it still refuses to run:
> e2fsck -b 32768 /dev/hdb3
> e2fsck: Invalid argument while checking ext3 journal for /
> 
> Attached you will find some info (dmesg and hdparm). If you need any more
> info, tell me.

I would suggest "dd if=bad_drive of=good_drive conv=sync,noerror"
and then do all of your recovery on the good drive.

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ext3 recovery
@ 2002-11-15 23:46 Andrei Ivanov
  0 siblings, 0 replies; 3+ messages in thread
From: Andrei Ivanov @ 2002-11-15 23:46 UTC (permalink / raw)
  To: linux-kernel




>
> On Nov 13, 2002  19:13 +0200, Andrei Ivanov wrote:
> > Hello, I have an ext3 formated partition on a harddrive that just got tons
> > of badblocks and I'm trying to recover as much data as possible from that
> > partition.
> > If I try e2fsck /dev/hdb3 I get this error:
> >
> > e2fsck 1.32 (09-Nov-2002)
> > Group descriptors look bad... trying backup blocks...
> > e2fsck: Invalid argument while checking ext3 journal for /
> >
> > So I tried to remove the journal and make e2fsck treat the partition as an
> > ext2 one, but no luck, although tune2fs -O ^has_journal /dev/hdb3 doesn't
> > give me any message, except it's version string.
> >
> > If I pass fsck the backup superblock myself, it still refuses to run:
> > e2fsck -b 32768 /dev/hdb3
> > e2fsck: Invalid argument while checking ext3 journal for /
> >
> > Attached you will find some info (dmesg and hdparm). If you need any more
> > info, tell me.
>
> I would suggest "dd if=bad_drive of=good_drive conv=sync,noerror"
> and then do all of your recovery on the good drive.
>
> Cheers, Andreas
> --
> Andreas Dilger
> http://www-mddsp.enel.ucalgary.ca/People/adilger/
> http://sourceforge.net/projects/ext2resize/

I've finally managed to get a hard drive to do this, but I receive the
same errors... :(

Do you have any other suggestions ?
Thanks






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-15 23:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 17:13 ext3 recovery Andrei Ivanov
2002-11-13 18:42 ` Andreas Dilger
2002-11-15 23:46 Andrei Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).