Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Filesystem couldn't be fixed" [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Jazzed
n00b
n00b


Joined: 21 Mar 2005
Posts: 13
Location: Canada

PostPosted: Tue Mar 22, 2005 8:09 pm    Post subject: "Filesystem couldn't be fixed" [solved] Reply with quote

Bit of background...installed from the 2005 P4 stage2 snapshot. I'm using a Pentium 4 ("mobile", but not the actualy Pentium-M) on a three or four year old Dell (ugh) Inspiron 8200. I also did the installation from a Mepis LiveCD instead of a Gentoo mainly becuase I had it, but also becuase having X set up makes looking at the website and using the terminal at the same time easier. Set up is that so that I have hda1 as / formated reiserfs, hda2 as /home formated reiserfs, and hda3 as swap. No other OS currently installed (posting this from the Mepis LiveCD). I'm not a Linux n00b, but I'm no 1337 yet either...just somewhere inbetween. :p

Anyhow, emerge system went without errors, kernel compiled without errors, and I spent a while looking through the menuconfig and I'm pretty sure I didn't forget anything important (such as ReiserFS support, to be relevant here)...but I can post the .config file if necessary.

So to the problem. Upon boot, everything seems to be going fine until it begins mounting things. I get the "INIT: version 2.84 booting Gentoo Linux; http://www.gentoo.org"...

Code:
mounting proc at /proc ----------------------- ok
mounting sysfs at /sys
    can't create lock file at /etc/mtab~1067
    readonly filesystem.

Starting devfsd...
/sbin/rc: line 271: /sbin/devfsd: file not found

Failed to open device '/dev/hda1'

Filesystem couldn't be fixed :(


And then I am given the option to reboot or enter the root password. I enter it, and I'm in...I can browse /, and everything seems intact and there, and I was able to open /etc/fstab in nano and all; but I couldn't save anything. It definitely is purely read-only. I've tried editing fstab mounting options a couple various ways through Mepis, where by the way everything mounts perfectly (turning notail and noatime on and off and such)

Similar symptoms to the problem this guy had, but he fixed it by redoing the entire installation; something I'd rather not do.

Also, playing with a suggestion in the above linked thread (mount -o remount,rw /), and some additional options I actually managed to get the thing mounted and writable, but upon rebooting I couldn't repeat it and I couldn't figure out how I would integrate that into the boot so the thing would always mount pro[/url][/code]perly. I believe -n was one of the flags I used, but I couldn't duplicate what I did...I seriously should have written it down.


Sorry for the overly long post, but I didn't want to miss any important information...if I did miss something or I should post my fstab and .config files or whatnot, I'll do so. Appreciate any help whatsoever. Thanks in advance.
_________________
--> Marc

Error: Keyboard not attached. Please press F1 to continue.


Last edited by Jazzed on Wed Mar 23, 2005 5:19 pm; edited 2 times in total
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580
Location: Salt Spring Island, BC, Canada

PostPosted: Tue Mar 22, 2005 8:13 pm    Post subject: Reply with quote

Could you post your grub.conf?
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
Jazzed
n00b
n00b


Joined: 21 Mar 2005
Posts: 13
Location: Canada

PostPosted: Tue Mar 22, 2005 8:20 pm    Post subject: Reply with quote

Sure. (note...I never remove comments, and I add random ones...a strange obsession)

Code:
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 3
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux (2.6.11-r4)
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/kernel-2.6.11-gentoo-r4 root=/dev/hda1 video=vesafb:mtrr,ywrap,102$
# The next four lines are only if you dualboot with a Windows system.
#
# I'm only leaving this here just in case I go insane one day and install
# windows...

(next four lines were cut out due to irrelevancy :D)

While I'm posting this file, might as well ask, video=vesafb isn't working either...something wrong with that line probably?
_________________
--> Marc

Error: Keyboard not attached. Please press F1 to continue.
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580
Location: Salt Spring Island, BC, Canada

PostPosted: Tue Mar 22, 2005 8:58 pm    Post subject: Reply with quote

Jazzed wrote:
Code:
kernel /boot/kernel-2.6.11-gentoo-r4 root=/dev/hda1 video=vesafb:mtrr,ywrap,102$

that ends in 102$ ??
If not, is there a "ro" on that line, and can U try taking that out?

Jazzed wrote:
While I'm posting this file, might as well ask, video=vesafb isn't working either...something wrong with that line probably?

Or you have not compiled the required items into the kernel.. You might like to take a look at the Gentoo-Wiki in the HOWTO section for info in setting this up...

Jazzed wrote:
Sure. (note...I never remove comments, and I add random ones...a strange obsession)

I do something slightly different.. I cheate a <config_file>.ex file and leave my fully commented config in that... my <config_file> then is without comments...
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
Jazzed
n00b
n00b


Joined: 21 Mar 2005
Posts: 13
Location: Canada

PostPosted: Wed Mar 23, 2005 12:46 am    Post subject: Reply with quote

TheRAt wrote:
Jazzed wrote:
Code:
kernel /boot/kernel-2.6.11-gentoo-r4 root=/dev/hda1 video=vesafb:mtrr,ywrap,102$

that ends in 102$ ??
If not, is there a "ro" on that line, and can U try taking that out?


Oops. That line does continue. No 'ro' though...here's the line in full, but I don't think it matters.
Code:
kernel /boot/kernel-2.6.11-gentoo-r4 root=/dev/hda1 video=vesafb:mtrr,ywrap,1024x768-16@60



TheRat wrote:
Jazzed wrote:
While I'm posting this file, might as well ask, video=vesafb isn't working either...something wrong with that line probably?

Or you have not compiled the required items into the kernel.. You might like to take a look at the Gentoo-Wiki in the HOWTO section for info in setting this up...


Pretty sure I've compiled framebuffer and vesafb-tng...oh well. Not a priority. I'll check the howto maybe when I've got a booting system.

Thanks for your help anyway.
_________________
--> Marc

Error: Keyboard not attached. Please press F1 to continue.
Back to top
View user's profile Send private message
masonm
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2005
Posts: 78
Location: Plant City, FL

PostPosted: Wed Mar 23, 2005 2:56 am    Post subject: Reply with quote

OK, maybe I'm off base here as I always create a /boot partition. (Old habits)

Doesn't Grub assume "/boot" after the root line?
If so, the kernel line which reads:
kernel /boot/kernel-2.6.11-gentoo-r4 root=/dev/hda1 video=vesafb:mtrr,ywrap,102$

should actually read:
kernel /kernel-2.6.11-gentoo-r4 root=/dev/hda1 video=vesafb:mtrr,ywrap,102$

meaning that grub can't find the kernel.

???
_________________
MasonM


Linux: because a PC is a terrible thing to waste.

Registered Linux User # 382617
Back to top
View user's profile Send private message
Jazzed
n00b
n00b


Joined: 21 Mar 2005
Posts: 13
Location: Canada

PostPosted: Wed Mar 23, 2005 5:16 pm    Post subject: Reply with quote

Problem solved. Upon the advice of a friend (mc_03 on these forums), I recompiled the kernel WITHOUT "[*] /dev file system support (OBSOLETE)" which the handbook describes as a must. Using udev (which was put into the kernel without a choice) only instead of both solved the problem.

Thanks everyone for their help. Much appreciate it.


(oh masonm...I don't think Grub assumes it...maybe Grub temporarily mounts the boot partition no matter what it is as / so if you have a boot partition, that becomes root for about two seconds while you boot that kernel, and then whatever fstab says takes over when the kernel mounts everything? I'm not sure...maybe Grub is smart enough to check both ways...?)
_________________
--> Marc

Error: Keyboard not attached. Please press F1 to continue.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Apr 08, 2005 8:00 pm    Post subject: Reply with quote

Please see https://forums.gentoo.org/viewtopic-t-315935.html

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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