Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Died :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Akuma
n00b
n00b


Joined: 24 Feb 2003
Posts: 19
Location: Bristol, UK

PostPosted: Thu Mar 13, 2003 8:41 pm    Post subject: Gentoo Died :( Reply with quote

Awww man, just when I thought I had this thing sorted :roll: lol

Booted Gentoo up today to do some emerging, boot stopped saying
"For Gentoo to work properly it needs /mnt/.init.d
Log in for maintence"

So I use my root password to login at this point and take a look at my mnt
dir. When I did an ls -l it was like this

?r-Srwsr-x (load of numbers) /mnt and I cant cd into it cos it says its
not a directory. i cant delete it nad remake it cos the filesys is in
read-only mode :(

also when I checked "mount" it said
tmpfs on /mnt/.init.d

Any ideas on what went wrong?

Cheers
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Mar 13, 2003 9:06 pm    Post subject: Reply with quote

Seems like you may have filesystem corruption. Try running fsck when booted in single-user mode.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Akuma
n00b
n00b


Joined: 24 Feb 2003
Posts: 19
Location: Bristol, UK

PostPosted: Thu Mar 13, 2003 9:27 pm    Post subject: Reply with quote

Ok did a fsck, said that /dev/hda2 (/boot) was not cleanly unmounted, and said forcing checks.
Seems ok

The two files that are shafted are the /mnt dir and a text file called hello.txt I had sat on /. When I try and touch hello.txt I get
cannot read hello.txt I/O error and
attempted to read beyond device

I still cant touch em as the FS is in read only mode.

I have a horrible feeling this things knackered.
Back to top
View user's profile Send private message
dpryden
n00b
n00b


Joined: 12 Sep 2002
Posts: 43

PostPosted: Fri Mar 14, 2003 6:05 am    Post subject: Reply with quote

To repair your filesystem, you can try mount -o rw,remount to remount your / partition as writable, or you can just boot from your installation media and mount your / partition from there. If you need to emerge things, chroot into whatever directory you mounted / in.

Of course, if you have a hardware failure (which is not impossible, given the errors you're getting here), then there's not much you can do from a software point of view except work around it. Maybe try running badblocks?
_________________
"Anything is better than IE, and you can quote me on that." -- Wil Wheaton
Back to top
View user's profile Send private message
Akuma
n00b
n00b


Joined: 24 Feb 2003
Posts: 19
Location: Bristol, UK

PostPosted: Sat Mar 15, 2003 2:52 pm    Post subject: Reply with quote

mmmmm
Tried mounting with mount -o rw, says I need XFS in my kernel even though as far as I know im not using it. Dont think there is a command called remount .

Tried using the live cd to get at my system, but I keep getting operation not permited, cos It doesnt think im root

Any idea, I just need to kill this txt file and /mnt and remake it to hopefully sort this out.

I dont fancy spending 22 hours compiling KDE 3.1 again lol

Cheers
Back to top
View user's profile Send private message
Akuma
n00b
n00b


Joined: 24 Feb 2003
Posts: 19
Location: Bristol, UK

PostPosted: Sat Mar 15, 2003 3:34 pm    Post subject: Reply with quote

Just had another check, I can delete and mess with all other files when booting from the live CD.
But with the two knackered ones, says
"Cannot Unlink "hello.txt" Operation not permitted"

had alook though the rm help to no avail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum