You are not logged in.

#1 2011-06-10 01:15:14

Mazh
Member
Registered: 2011-04-13
Posts: 48

Filesystem check failed while booting [SOLVED]

I tried to get some help from my previous post but got no answers, so I'll summarize in hope of getting an answer:

I've installed linux before windows because I had this operating system before. But, when I've partitioned I've made a NTFS type 83 for windows, cause I know I'd install it later on.

Now, I've restored my bootloader (grub) but when I try to boot my arch linux copy, a message tells me that my partition sda2 which is my Windows one, isn't clean or corrupt.


all my linux partition are clean, but my NTFS windows partition make me unable to boot on my linux OS with this error msg:

fsck.ext4: Bad magic number in super-block while trying to open /dev/sda2
/dev/sda2:
The superblock could not be read or does not describe a correct ext filesystem. If the devine is valid and it really contains an ext2 filesystem (and not swao or ufs or simething else), then the superblock is corrupt, and you might try running e2fsck with an alternate superbloc: 
     e2fsck -b 8193 <device>

Next I can do is entering the root psw and use the command line, I really need help to restore my linux partition without formating anything, please.

My guess is that linux doesn't reorganize the partition as it is NTFS and doesn't boot for this reason, but didn't find how to fix it over internet yet, some help would be really appreciated.

Last edited by Mazh (2011-06-10 20:30:39)

Offline

#2 2011-06-10 01:35:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Filesystem check failed while booting [SOLVED]

Are you using UUIDs for your partitions? https://wiki.archlinux.org/index.php/Pe … ice_naming
If you have set up in grub that it should boot Arch of /dev/sda2, that partition may end up being not what you want (e.g. an NTFS partition), UUIDs prevent this from happening:

kernel /vmlinuz26 root=/dev/disk/by-uuid/bf1d191b-4f2d-4961-bd67-4d023a2e5873 ro

as the partition is uniquely identified.

Offline

#3 2011-06-10 01:41:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Filesystem check failed while booting [SOLVED]

I'm confused... /dev/sda2 is NTFS but fsck.ext4 is checking it?  Post your menu.lst and also your /etc/fstab (assuming that it's accurate).  Also, was is your partition layout?

Example:

/dev/sda1  ext3 /boot
/dev/sda2  ntfs /media/data
/dev/sda3 ext4 /
etc.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-06-10 02:18:17

Mazh
Member
Registered: 2011-04-13
Posts: 48

Re: Filesystem check failed while booting [SOLVED]

My partition layout is:

fdisk -l output:

/dev/sda1 ID (5) extended (don't know what's that didn't think I've made that myself, maybe coming from windows when I installed the NTFS partition)
/dev/sda2 * HPFS/NTFS/exFAT ID (7)  (strange cause I had set 87 but well, windows is working correctly it seems)
/dev/sda3 ID (83) linux
/dev/sda5 ID (83) linux
/dev/sda6 ID (83) linux
/dev/sda7 ID (83) linux
/dev/sda8 * ID (83) linux

yep, it's actually strange that my fsck.ext4 check my sda2 partition NTFS...

cat /etc/fstab:

/dev/sda2 /home ext4 defaults 0 1
/dev/sda5 swap defaults 0 0
/dev/sda6 /var ext4 defaults 0 1
/dev/sda7 /usr ext4 defaults 0 1
/dev/sda8 / ext4 defaults 0 1 

menu.lst

linux            grub
/dev/sd0      (fd0)
/dev/sda      (hd0)
/dev/sdb2    (hd1,1)
/dev/sda3    (hd0,2)
[...]
title arch linux
root (hd0,7)
kernel /bootvmlinuz26 root=/dev/sda8 ro
initrd /boot/kernel26.img

the arch fallback (same)

title Windows xp lite sp3
rootnoverify (hd0,1)
makeactive 
chainloader +1

I really have to write by hands, so if you wants more info tell me and I'll write more.

it's strange, could you explain me what does mean hd1 or hd0? isn't the 1st and second hard drive? and the second array the partition? cause if so, i've only 1 drive. But I'm probably not correct. Hope you get enough info to get me out of this problem!

And no, I'm not using UUIDs, thx for your suggestion!

Offline

#5 2011-06-10 02:38:05

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Filesystem check failed while booting [SOLVED]

Change your fstab so it tries mounting /dev/sda2 as ntfs or ntfs-3g?

Offline

#6 2011-06-10 03:25:49

Mazh
Member
Registered: 2011-04-13
Posts: 48

Re: Filesystem check failed while booting [SOLVED]

How I do that, sorry? I'm still a bit new

well, booted knoppix to go edit my fstab and:

nano /etc/fstab
/dev/sda2 /media/sda2 ntfs noautre,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0

So I guess it's already booting as NTFS right?

Last edited by Mazh (2011-06-10 03:39:56)

Offline

#7 2011-06-10 03:34:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Filesystem check failed while booting [SOLVED]

There is an article on the wiki on fstab: please read it and try working through it yourself before asking for help...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2011-06-10 03:41:26

Mazh
Member
Registered: 2011-04-13
Posts: 48

Re: Filesystem check failed while booting [SOLVED]

Thx, but I think I'm already doing my efforts on this and I don't have so many time as I would .....

Offline

#9 2011-06-10 03:53:55

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Filesystem check failed while booting [SOLVED]

It looks like you tried editing Knoppix's fstab instead of your system's. You have to mount your Arch root partition and edit the fstab inside. Then simply change:

/dev/sda2 /home ext4 defaults 0 1

to:

/dev/sda2 /home ntfs defaults 0 1

Replace ntfs with ntfs-3g once (or if) you have it installed.

Offline

#10 2011-06-10 04:03:04

Mazh
Member
Registered: 2011-04-13
Posts: 48

Re: Filesystem check failed while booting [SOLVED]

Thank you, I'll try that after work tomorrow, now I must go to sleep smile

Offline

#11 2011-06-10 04:11:48

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Filesystem check failed while booting [SOLVED]

I just realized that isn't your fstab missing an entry for home? If /dev/sda3 is your home partition, you should instead change:

/dev/sda2 /home ext4 defaults 0 1

to

/dev/sda3 /home ext4 defaults 0 1

It might be bad to mount your NTFS drive at /home anyways.

Offline

#12 2011-06-10 12:36:04

Mazh
Member
Registered: 2011-04-13
Posts: 48

Re: Filesystem check failed while booting [SOLVED]

It looks like you tried editing Knoppix's fstab instead of your system's. You have to mount your Arch root partition and edit the fstab inside.

you were right, I was so tried...

and, now that I look at that, yes, I don't even have /home on sda3... and why is my sda2 ext4 when it's supposed to be NTFS, what could have done this mistake? I just installed windows, it's pretty strange. I'm gonna try to add sda3 entry and get to as /home and switch sda2 to NTFS to see if it works when i come back from work.

Thanks a lot.

*edit: What should I write in the mount point for my sda2? /dev/sda2 /mnt/? NTFS defaults 0 1

I guess there is a way to gather this info

Last edited by Mazh (2011-06-10 12:45:33)

Offline

#13 2011-06-10 20:29:46

Mazh
Member
Registered: 2011-04-13
Posts: 48

Re: Filesystem check failed while booting [SOLVED]

Okay, this worked! special thanks to you anonymous_users, you were really helpful, I didn't know enough to resolve the problem alone and with google, but now I'm pretty happy and this learned me how to deal with fstab much better.

Offline

Board footer

Powered by FluxBB