Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] NFS Root: Filesystem could not be mounted...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
JonW
n00b
n00b


Joined: 09 Sep 2004
Posts: 34
Location: Sydney, Australia

PostPosted: Wed Jan 26, 2005 6:09 am    Post subject: [SOLVED] NFS Root: Filesystem could not be mounted... Reply with quote

I'm setting up a diskless Via EPIA to boot over NFS. I've followed the NFS boot install docs in the Alternative Installation guide. Once, I had finished, I booted my EPIA, logged in, and everything was fine.

Then I had to rebuild my kernel (to remove ALSA, so that I can use the separate ALSA drivers), and when I reboot, I get as far as mounting the filesystems, but when it gets to "Remounting root filesystem read/write...." it falls over, saying "Root filesystem could not be mounted read/write".

It sounds like an NFS problem to me, but I can't work out what it is! My grub.lst looks like this:-

Code:
default Diskless-Gentoo
timeout 30
display messages

title=Diskless-Gentoo
root (nd)
kernel /epia/bzImage ip=dhcp root=/dev/nfs nfsroot=192.168.1.100:/var/NetBoot/diskless-gentoo/epia


and my exports include this:

Code:
/var/NetBoot/diskless-gentoo/epia       epia(rw,sync,no_root_squash)


where epia is the host name of the client. I can see NFS requests in the server's log.

Any ideas?

Cheers,

Jon


Last edited by JonW on Mon Feb 07, 2005 10:07 am; edited 2 times in total
Back to top
View user's profile Send private message
JonW
n00b
n00b


Joined: 09 Sep 2004
Posts: 34
Location: Sydney, Australia

PostPosted: Tue Feb 01, 2005 11:11 am    Post subject: Still can't get there! Reply with quote

I've had another go at building my diskless EPIA. Everything works just fine, and I can boot into gentoo.

However, I can't log in, because I don't know what the root password is. So I chroot into the environment on the server, and use passwd to change root's password. When I reboot the client, I get the read/write error.

I don't see how this can be a problem - is it a red herring?

Cheers,

Jon
Back to top
View user's profile Send private message
MisterGoof
n00b
n00b


Joined: 15 Sep 2004
Posts: 60

PostPosted: Tue Feb 01, 2005 12:56 pm    Post subject: Reply with quote

JonW

to set your root password see this thread

see this thread https://forums.gentoo.org/viewtopic.php?t=285471
_________________
A Signature free zone
Back to top
View user's profile Send private message
JonW
n00b
n00b


Joined: 09 Sep 2004
Posts: 34
Location: Sydney, Australia

PostPosted: Tue Feb 01, 2005 9:37 pm    Post subject: Reply with quote

Quote:
to set your root password see this thread


Ah, yes, my post wasn't very clear. My point is that the diskless client booted just fine first time. All that I did subsequently was chroot into the environment and use passwd to change the root password. Now when I boot the client, I get the error about not being able to mount the root filesystem read/write.

If it's nothing to do with changing the root password, something else must be changing bewteen first boot and second. I just can't work out what.

Cheers,

Jon
Back to top
View user's profile Send private message
JonW
n00b
n00b


Joined: 09 Sep 2004
Posts: 34
Location: Sydney, Australia

PostPosted: Wed Feb 02, 2005 9:50 am    Post subject: Reply with quote

OK, I'm making progress.

The first time it boots OK. The second time it fails. Then I delete /etc/mtab, and I can boot OK again. mtab must be generated when I boot, and if it exists, prevents the root filesystem being mounted.

Google couldn't tell me hwo to get around theis.
Back to top
View user's profile Send private message
gen2doggy
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2004
Posts: 75

PostPosted: Wed Feb 02, 2005 1:24 pm    Post subject: Reply with quote

out of interest - is your diskless box _actually_ diskless, or does it have a disk but just doesn't use it

i have a box with no disk you see, and i want to run it up as a workhorse, but i cant b bothered forking out for a HDD at the mo

I do have a cdrom drive and im hoping my bios will support booting from cdrom - it's an old dell machine optiplex g100 i think
Back to top
View user's profile Send private message
JonW
n00b
n00b


Joined: 09 Sep 2004
Posts: 34
Location: Sydney, Australia

PostPosted: Wed Feb 02, 2005 9:30 pm    Post subject: Reply with quote

Completely diskless. I'm using the PXE boot option in my BIOS to load grub via tftp, then mount the root partition on nfs.
Back to top
View user's profile Send private message
gen2doggy
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2004
Posts: 75

PostPosted: Wed Feb 02, 2005 11:03 pm    Post subject: Reply with quote

:( dont think i have a PXE boot option... i found the gentoo diskless howto anyway - didnt know there was one - it's of a good standard as usual!
thanks
Back to top
View user's profile Send private message
JonW
n00b
n00b


Joined: 09 Sep 2004
Posts: 34
Location: Sydney, Australia

PostPosted: Mon Feb 07, 2005 10:06 am    Post subject: Reply with quote

I ended up fixing this by removing mtab, and replacing it with a link to /proc/mounts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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