Now I have really MESSED it ALL up: SUPER BLOCKS--NO LINUX
I am soooo f*****!!! For some reason I can no longer boot into any of my linux partitions:
hda7 Ubuntu Breezy hda8 SUSE linux hda6 SWAP hda1 WinXP (I can boot into here, this is where I can writing this) I used the MEPIS LIVECD to check my partitions for bad sectors and this is what I got: Code:
Checking/repairing filesystem (e2fsck) on /dev/hda7. 1. Boot up 2. GRUB menu (all OS listed as expected) 3. Choose Ubuntu (or even SUSE) 4. text loads, then a couple (perhaps 3 secs later) 5. Systems HALTS to shutdown! Some thing happens if I try again, and again. I think I have messed up my Linux partitions on my hdd. The partitions have become corrupt. Questions: 1. How do I re-instate or correct the ba sectors (remove them, if it can be done?) 2. If this means my linux partitions are USELESS, then my Linux glory days are OVER??? I am very SAD! I have even tried to format the drives (fronm reiserFS to ext3) to see if this would work, then reinstalled Ubuntu to check. But still the same happens. 3. What do I do next? Many many thanks, Smiley |
First thing is give us your partition table and any advice what it should looks like. I mean, partition 1 is for OS x, type ext3, size nGBytes.
|
I did this (after valuable input from another similar thread here)
1/ Boot using MEPIS LIVECD (I guess I use this because I understand the interface very well, and I should work with any other LIVE CD) 2. terminal consol 3. su as root 4. #fsck -b 32768 /dev/hda7 (and then /dev/hda8) 5. Accept all questions as 'y' 6. reboot into Ubuntu/SUSE 7. Worked like a charm! Will update if I have any subsequent hurdles. Man, knowing how system works really pays off! Thanks once again! Smiley |
Quote:
hda1 winxp ntfs hda5 data fat32 hda6 swp hda7 Ubuntu ext3 hda8 SUSE ext3 Does that help? |
I'm sorry. I mean we need the output of command "fdisk -l /dev/hda" which prints all information in your partition table.
You need to boot using a live distro or whatever. |
Don't follow the smiley_lauf's suggestion until you are sure the partition table is correct.
Doing that on a corrupted partition table could mess even more your filesystem. smiley_lauf's suggestion is a very good suggestion and it is the next step after you are sure your partition table is fine. |
Quote:
Here is my partition table (after I have done the above blind "repair" Code:
Disk /dev/hda: 100.0 GB, 100030242816 bytes best, Smiley |
*lol* You are smiley_lauf ! I read the post and I thought it came from another one following the thread ! Sorry to advice you against yourself :)
Well, your partition table looks like fine. Every partition start where the previous ends, no overlaps, and the partitions id are correct. So I think every else is fine. A live cd is very helpfull in situations like that. See'ya ! |
cheers! thanks
|
Sorry I am back. this time my SUSE partition is giving me BAD BLOCKS!
when i do this: Code:
#fsck -b 32768 /dev/hda8 Thanks again. Smiley |
You are unlucky !
I suggest you to buy a new drive and move/backup only the important/personal files. On the new disk make a fresh install. As a temporary solution, try to run fsck with the options "-b 32768 -cc". The double "c" option will do a non-destructive read/write test on disk, mapping all badblocks, preventing the filesystem to use this blocks in future allocations. It will take a very long time to finish, and I'm not sure it worth the time. If you can not buy a new disk right now, backup all important stuff, and run "badblocks -sw -b 4096 -o /tmp/badblk.hda8 /dev/hda8" . It will run a destructive write test and list all badblocks on specified file. After that, re-create the ext3 filesystem with "mke2fs -b 4096 -j -l /tmp/badblk.hda8 /dev/hda8". Of course, all operations must be done with a live CD. good luck, |
All times are GMT -5. The time now is 03:07 PM. |