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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-31-2005, 04:01 PM
|
#1
|
LQ Newbie
Registered: Feb 2005
Posts: 22
Rep:
|
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.
|
|
|
05-31-2005, 04:34 PM
|
#2
|
Member
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226
Rep:
|
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?
|
|
|
05-31-2005, 04:36 PM
|
#3
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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.)
|
|
|
05-31-2005, 06:35 PM
|
#4
|
LQ Newbie
Registered: Feb 2005
Posts: 22
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|