You are not logged in.

#1 2011-02-02 15:27:56

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Problems mounting filesystem

Hey guys,

Today I tried to start my computer but I can't log in. During boot, it hangs for a while in the "Mounting filesystems" phase until it fails with a "Can't create /etc/mtab file" message. It also says "Maybe there is a stale lock".

How can I solve this? SLiM won't allow me to log in, it says it can't execute the log in command.

Thank you!

Offline

#2 2011-02-02 16:24:07

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

Re: Problems mounting filesystem

Can you do some repair as root? If not you can try using a liveCD to check if you have that stale lock.

Offline

#3 2011-02-02 18:16:46

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Problems mounting filesystem

I can't login as root.

I just used a live cd and I can't even mount the partition. It is giving me the "mount: wrong fs type, bad option, bad superblock on ...,missing codepage or helper program, or other error" error message.

I can't also do a fsck, it says the partition seems to have zero length!

Offline

#4 2011-02-02 18:23:39

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

Re: Problems mounting filesystem

Is there a /etc/mtab.lock or some other /etc/mtab* file?

Offline

#5 2011-02-02 18:35:25

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Problems mounting filesystem

Hey karol,

I was able to mount my / partition. However, some directories do not seem right. /dev only has 3 files, /media has the default files, etc etc. /usr is OK though. I'm not sure what is wrong.

Moreover, I tried fsck and e2fsck but I keep getting a bad superblock error.

Is there any way of reparing my filesystem? I'm not sure what went wrong, to be honest...

Thanks

Offline

#6 2011-02-02 19:42:50

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Problems mounting filesystem

vjoe,

what does "fdisk -l" say ?

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#7 2011-02-02 21:43:39

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Problems mounting filesystem

This: http://i55.tinypic.com/j8l9aa.jpg

fsck worked after all. All ok with the disk, but the problem persists.

Last edited by vjoe (2011-02-02 21:55:02)

Offline

#8 2011-02-04 00:00:50

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Problems mounting filesystem

Anything? I will probably have to reinstall the system sad

Offline

#9 2011-02-04 00:22:07

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Problems mounting filesystem

vjoe said: I was able to mount my / partition.
fsck worked after all. All ok with the disk, but the problem persists.

vjoe, I am not at all clear what your problem really is. Can you elaborate ?

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#10 2011-02-05 00:20:10

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Problems mounting filesystem

Blimey, I had to get home drunk to fix this! tongue

I was being a wally and trying to find the files in /dev, when they were in /etc. There were three files - mtab~, mtab~1234 (some numbers) and mtab.fuselock, which I removed. And bam! Working fine now. smile

Cheers guys

Offline

Board footer

Powered by FluxBB