LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2005, 04:01 PM   #1
JakeMH
LQ Newbie
 
Registered: Feb 2005
Posts: 22

Rep: Reputation: 15
After reformatting my Windows partition, Linux is corrupt and won't boot.


My first partition is Windows XP, and then I have a / partition, Linux swap partition, and the /home partition. I formated the Windows partition and reinstalled it, and after I reinstalled the boot loader, I get this error:

Remounting root flesystem in read-write mode:
Activating swap partitions: swapon /dev/sda7: Invalid argument [FAILED]
Checking filesystems
fsk.ext3: Bad magic number in super-block /dev/sda8:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contain an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

While trying to open /dev/sda8
Failed to check filesystem. Do you want to repair the error? (Y/N)
(beware, you can lose date)

Is there any way to fix this without reinstalling Linux? I can still access the two partitions from Windows with ext2fsd, so I'm assuming that the swap partition is corrupt.

Thanks

Last edited by JakeMH; 05-31-2005 at 04:18 PM.
 
Old 05-31-2005, 04:34 PM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
As far as I can read from your desription, /dev/hda7 is SWAP, and /dev/hda8 is suposed to hold an EXT2 filesystem.

Not being able to mount the swap partition should not stop your linux from booting (unless you have very little main memory)

Could you post your /etc/fstab here?
 
Old 05-31-2005, 04:36 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Your error messages state that sda7 and sda8 are both bad, not just sda7. If it was just the swap partition, only sda7 would be bad, and I think that you should have been able to boot without a swap partition if the problem was only there.

Is sd8 a logical volume set?

Do you have "parted" on your rescue CD? You could try the partition recovery function. (I'd try it on the swap partition first, since there's nothing there to be lost.)

Caution: I recently used the parted recovery function on one of my disks, and my whole XP partition was trashed. (Note that I probably did something stupid [like using M$ tools, too], and I'm not blaming the developers of parted.)
 
Old 05-31-2005, 06:35 PM   #4
JakeMH
LQ Newbie
 
Registered: Feb 2005
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks a lot for the help! I found the problem. Using rescue, I found that these were the actual partitions:
Sda1: 80,000 Mb, tye NTFS
Sda5: 5,000 Mb, type Ext2
Sda6: 1,592 Mb, type Linux Swap
Sda7: 68, 597 Mb, type Ext2
Sda8: 1,000 Mb, type FAT32
from

Fstab had sda8 as sda6, sda6 as sda7, and sda 7 as sda8. I just edited the file, and now I'm posting this with Linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 02:31 AM
Resizing/reformatting ext3 partition mark.johnson Linux - Hardware 3 04-25-2005 02:48 PM
Will I corrupt my Windows partition... nostrum Linux - Newbie 3 06-22-2004 10:21 PM
Linux & Windows 98SE dual boot... will defrag mess up linux partition? herrtool Linux - General 5 10-31-2003 03:43 PM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration