skip to main
|
skip to sidebar
Boardash
Boardash me, Major. The space has no more room for cadets.
Tuesday, March 30, 2010
Advance your career with a degree in medical coding
On Jan 07, 2009 22:42 +0100, Christian Ohm wrote: Can you upload someplace the output of dumpe2fs /dev/XXX dumpe2fs -o superblock=32768 /dev/XXX dumpe2fs -o superblock=98304 /dev/XXX That would be helpful to see what had happened. I'll do that soon; I got another harddisk to copy the partition, but both disks aren't connected right now. You could also and compile and run the e2fsprogs "findsuper" tool (I've attached it here, it isn't built by default). This will scan the specified device and look for ext2/3/4 superblock signatures. 2. Is this corruption a fault of ext4? I guess this is difficult to answer, but I had ext3 survive any lockups without much problems. So far ext4 seems not quite that robust, but perhaps another file system would have blown up as well in this situation. Is there any information I can give you to help make ext4 more robust? I'm not sure what the hard system hang did, but it looks like it splattered a lot of random crap all over the harddrive. I doubt ext4 did this, and I doubt ext3 would have done any better.... we need to know a lot more about exactly what sort damage was done to the filesytem to say for certain, though. I did one copy of the partition already (took three hours, so not something to do often...), and ran fsck -y on that. The result was an endless fsck loop like that described in http://www.linuxquestions.org/questions/linux-hardware-18/corrupt-ext3-partition-need-to-recover-376366/ . Oh, and I have to try if dumpe2fs actually works, either that or debugfs failed when I tried to run it on the original disk (I also ran dumpe2fs on the copy while fsck was doing its looping, and depending on the time it did or did not find a file system on the device). Anyway, I hope I can experiment some more tomorrow. Oh, and is there a human understandable description of the on-disk data format to compare with a hexdump? A (admittedly very short) search didn't turn up anything. Best regards, Christian Ohm -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majo ... @vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc. /* * findsuper --- quick hacked up program to find ext2 superblocks. * * This is a hack, and really shouldn't be installed anywhere. If you * need a program which does this sort of functionality, please try * using gpart program. * * Portions Copyright 1998-2000, Theodore Ts'o. * * Well, here's my linux version of findsuper. * I'm sure you coulda done it faster. :) * IMHO there isn't as much interesting data to print in the * linux superblock as there is in the SunOS superblock--disk geometry is * not there...and linux seems to update the dates in all the superblocks. * SunOS doesn't ever touch the backup superblocks after the fs is created, * as far as I can tell, so the date is more interesting IMHO and certainly * marks which superblocks are backup ones. * * I wanted to add msdos support, but I couldn't make heads or tails * of the kernel include files to find anything I could look for in msdos. * * Reading every block of a Sun partition is fairly quick. Doing the * same under linux (slower hardware I suppose) just isn't the same. * It might be more useful to default to reading the first (second?) block * on each cyl; however, if the disk geometry is wrong, this is useless. * But ya could still get the cyl size to print the numbers as cyls instead * of blocks... * * run this as (for example) * findsuper /dev/hda * findsuper /dev/hda 437760 1024 (my disk has cyls of 855*512) * * I suppose the next step is to figgure out a way to determine if * the block found is the first superblock somehow, and if so, build * a partition table from the superblocks found... but this is still * useful as is. * * Steve * ss ... @nevets.oau.org * ss ... @mae.engr.ucf.edu * * Additional notes by Andreas Dilger < adil ... @turbolinux.com >: * - fixed to support > 2G devices by using lseek64 * - add reliability checking for the superblock to avoid random garbage * - add adaptive progress meter * * It _should_ also handle signals and tell you the ending block, so * that you can resume at a later time, but it doesn't yet... * * Note that gpart does not appear to find all superblocks that aren't aligned * with the start of a possible partition, so it is not useful in systems * with LVM or similar setups which don't use fat partition alignment. * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public * License. * %End-Header% */ /* * Documentation addendum added by Andreas dwgu ... @win.tue.nl /ae ... @cwi.nl * * The program findsuper is a utility that scans a disk and finds * copies of ext2 superblocks (by checking for the ext2 signature). * * For each superblock found, it prints the offset in bytes, the * offset in 1024-byte blocks, the size of the ext2 partition in fs * blocks, the filesystem blocksize (in bytes), the block group number * (always 0 for older ext2 systems), and a timestamp (s_mtime). * * This program can be used to retrieve partitions that have been * lost. The superblock for block group 0 is found 1 block (2 * sectors) after the partition start. * * For new systems that have a block group number in the superblock it * is immediately clear which superblock is the first of a partition. * For old systems where no group numbers are given, the first * superblock can be recognised by the timestamp: all superblock * copies have the creation time in s_mtime, except the first, which * has the last time e2fsck or tune2fs wrote to the filesystem. * */ #define _FILE_OFFSET_BITS 64 #include #include #include #include #include #include #include #include "ext2fs/ext2_fs.h" #include "nls-enable.h" #undef DEBUG #ifdef DEBUG #define WHY(fmt, arg...) { printf("\r%Ld: " fmt, sk, ##arg) ; continue; } #else #define WHY(fmt, arg...) { continue; }
Newer Post
Older Post
Home
Followers
Blog Archive
►
2024
(14)
►
July
(1)
►
June
(2)
►
May
(4)
►
April
(2)
►
March
(1)
►
February
(4)
►
2023
(16)
►
October
(7)
►
September
(1)
►
August
(2)
►
July
(2)
►
June
(2)
►
May
(1)
►
February
(1)
►
2022
(17)
►
November
(3)
►
September
(4)
►
July
(3)
►
June
(1)
►
May
(1)
►
April
(2)
►
March
(3)
►
2021
(157)
►
December
(1)
►
November
(4)
►
July
(22)
►
June
(2)
►
May
(19)
►
April
(28)
►
March
(33)
►
February
(24)
►
January
(24)
►
2020
(302)
►
December
(26)
►
November
(35)
►
October
(29)
►
September
(35)
►
August
(47)
►
July
(25)
►
June
(12)
►
May
(22)
►
April
(14)
►
March
(33)
►
February
(13)
►
January
(11)
►
2019
(200)
►
December
(10)
►
November
(19)
►
October
(17)
►
September
(20)
►
August
(23)
►
July
(24)
►
June
(10)
►
May
(16)
►
April
(22)
►
March
(13)
►
February
(10)
►
January
(16)
►
2018
(227)
►
December
(14)
►
November
(14)
►
October
(22)
►
September
(19)
►
August
(25)
►
July
(10)
►
June
(3)
►
May
(27)
►
April
(32)
►
March
(21)
►
February
(16)
►
January
(24)
►
2017
(221)
►
December
(17)
►
November
(28)
►
October
(35)
►
September
(29)
►
August
(38)
►
July
(4)
►
June
(16)
►
May
(10)
►
April
(14)
►
March
(11)
►
February
(8)
►
January
(11)
►
2016
(106)
►
December
(18)
►
November
(9)
►
October
(9)
►
September
(3)
►
August
(9)
►
July
(11)
►
June
(3)
►
May
(7)
►
April
(16)
►
March
(11)
►
February
(4)
►
January
(6)
►
2015
(147)
►
December
(11)
►
November
(8)
►
October
(16)
►
September
(11)
►
August
(7)
►
July
(18)
►
June
(18)
►
May
(9)
►
April
(13)
►
March
(14)
►
February
(14)
►
January
(8)
►
2014
(135)
►
December
(12)
►
November
(9)
►
October
(11)
►
September
(20)
►
August
(12)
►
July
(13)
►
June
(8)
►
May
(10)
►
April
(12)
►
March
(8)
►
February
(11)
►
January
(9)
►
2013
(140)
►
December
(4)
►
November
(6)
►
October
(25)
►
September
(11)
►
August
(15)
►
July
(12)
►
June
(13)
►
May
(13)
►
April
(7)
►
March
(12)
►
February
(9)
►
January
(13)
►
2012
(91)
►
December
(10)
►
November
(7)
►
October
(11)
►
September
(8)
►
August
(7)
►
July
(6)
►
June
(8)
►
May
(14)
►
April
(6)
►
March
(3)
►
February
(4)
►
January
(7)
►
2011
(364)
►
December
(5)
►
November
(7)
►
October
(15)
►
September
(13)
►
August
(23)
►
July
(45)
►
June
(27)
►
May
(3)
►
April
(12)
►
March
(25)
►
February
(152)
►
January
(37)
▼
2010
(2424)
►
December
(22)
►
November
(24)
►
October
(19)
►
September
(27)
►
August
(34)
►
July
(33)
►
June
(36)
►
May
(18)
►
April
(61)
▼
March
(749)
Today's Word "capacious"
The You Docs for Thursday April 1, 2010
Our Lady Of Weight Loss
Dave Lieberman's Quick And Buttery Pea Soup
Jokes for Thursday April 1, 2010
Today's Health Tips Plus Freebies & Free Quality S...
Egyptian Temples, Early Toadies, and Low Points
Pet Astrology - A Unique Way to Understand Your Pet
A Brief Guide to Travel Visas
Today's Romance Chapter
Big Kahuna Reef and Chess Puzzle
Reducing the Risk of a Routine Brisket
ArcaMax Gardening Daily Tips for Thursday April 1,...
Carolyn Hax for Thursday April 1, 2010
From zero to $1.2 million...
Mother Repeating Unhealthy Childhood Pattern
Train for a great career as an ultrasound technician
Women for Wednesday March 31, 2010
Current News for Wednesday March 31, 2010
Religious News for Wednesday March 31, 2010
Will you be No. 39,108? Open by Midnight
Current News for Wednesday March 31, 2010
Horoscopes for Wednesday March 31, 2010
Local Weather for Wednesday March 31, 2010
The You Docs for Wednesday March 31, 2010
Today's Word "trammel"
Giada De Laurentiis Simple Lemon Ricotta Biscuits
Today's Jokes Plus Private Information Now Available
Listen To Your Body: Save Your Life
Today's Health Tips Plus Complimentary OneTouch Ul...
Bouillon Snacks, Buzzing Flies, and Otter Fur
How to Shop For a Pet Stair - A Comparative Analysis
Around The World: City Island is an Ideal Escape F...
Today's Romance Chapter
Scrambled Eggs with Tomatoes and Fines Herbes
Tri-Peaks Solitaire to Go and Brain Teaser
ArcaMax Gardening Daily Tips for Wednesday March 3...
Carolyn Hax for Wednesday March 31, 2010
Important Information about your New ArcaMax Subsc...
Finish high school
Expert: How to find a good baby bottle
Advance your career with a degree in medical coding
Women for Tuesday March 30, 2010
Current News for Tuesday March 30, 2010
Religious News for Tuesday March 30, 2010
arbcombo -- ARB Chair's Seminar Series: Thursday, ...
A Fortune In Your Future
She is 58 but her skin looks 38 - see her secret
Current News for Tuesday March 30, 2010
Horoscopes for Tuesday March 30, 2010
Local Weather for Tuesday March 30, 2010
Today's Word "presage"
Alton Brown's Basic Popover Recipe
The You Docs for Tuesday March 30, 2010
Today's Jokes Plus Free Samples
Should You Bring Your iPod With You on Your Trip?
Learn About Therapy Dogs
Today's Health Tips Plus Lose 14 lbs in 3 days! Tr...
Japan's Throne, Cleopatra's Ban, and Louis' Chair
Tips on How to Become a Good Pet Sitter
ArcaMax Gardening Daily Tips for Tuesday March 30,...
Turbo Subs and Chess Puzzle
Carolyn Hax for Tuesday March 30, 2010
Pineapple & Ham Bread Soufflé, Tortellini Pr...
Today's Romance Chapter
GED Information
Horrible Mother or Challenging Child?
Crab Cakes
Women for Monday March 29, 2010
Current News for Monday March 29, 2010
Religious News for Monday March 29, 2010
Inspector Parker (Special Edition) and Answer Man
Your March 2010 Auto Insurance Rate Review
Current News for Monday March 29, 2010
Horoscopes for Monday March 29, 2010
Local Weather for Monday March 29, 2010
Today's Jokes Plus Claim Your Free Pair of Ugg Shoes
The You Docs for Monday March 29, 2010
Today's Word "ablution"
Paula Deen's Banana French Toast
Hi-Tech Hospitals Keep You Safe
Today's Health Tips Plus Free Folgers Gourmet Coffee
Atomic Bombs, Lightning Strikes, and Large Organs
Taxi Etiquette - The Do's and Don'ts Guide
Common Skin Ailments in Senior Pets
ArcaMax Gardening Daily Tips for Monday March 29, ...
Today's Romance Chapter
Carolyn Hax for Monday March 29, 2010
View local foreclosure listings
Women for Sunday March 28, 2010
Current News for Sunday March 28, 2010
Attend high school online
Horoscopes for Sunday March 28, 2010
Local Weather for Sunday March 28, 2010
The Ultimate Showdown winner shares Vanilla Lemon ...
Today's Word "triskaidekaphobia"
Cut This Fat For A Healthy Heart
Interactive Quizzes -- Trivia
Today's Jokes Plus Free $1,000 Sam's Gift Card
Rick Steves' Europe: What's New in Eastern Europe ...
►
February
(656)
►
January
(745)
►
2009
(3239)
►
December
(769)
►
November
(724)
►
October
(670)
►
September
(483)
►
August
(250)
►
July
(256)
►
June
(87)
►
2006
(1)
►
December
(1)
About Me
Cadet Boardash
View my complete profile