View previous topic :: View next topic |
Author |
Message |
Akuma n00b


Joined: 24 Feb 2003 Posts: 19 Location: Bristol, UK
|
Posted: Thu Mar 13, 2003 8:41 pm Post subject: Gentoo Died :( |
|
|
Awww man, just when I thought I had this thing sorted 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 |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Mar 13, 2003 9:06 pm Post subject: |
|
|
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 |
|
 |
Akuma n00b


Joined: 24 Feb 2003 Posts: 19 Location: Bristol, UK
|
Posted: Thu Mar 13, 2003 9:27 pm Post subject: |
|
|
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 |
|
 |
dpryden n00b


Joined: 12 Sep 2002 Posts: 43
|
Posted: Fri Mar 14, 2003 6:05 am Post subject: |
|
|
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 |
|
 |
Akuma n00b


Joined: 24 Feb 2003 Posts: 19 Location: Bristol, UK
|
Posted: Sat Mar 15, 2003 2:52 pm Post subject: |
|
|
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 |
|
 |
Akuma n00b


Joined: 24 Feb 2003 Posts: 19 Location: Bristol, UK
|
Posted: Sat Mar 15, 2003 3:34 pm Post subject: |
|
|
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 |
|
 |
|