View previous topic :: View next topic |
Author |
Message |
JonW n00b
Joined: 09 Sep 2004 Posts: 34 Location: Sydney, Australia
|
Posted: Wed Jan 26, 2005 6:09 am Post subject: [SOLVED] NFS Root: Filesystem could not be mounted... |
|
|
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 |
|
|
JonW n00b
Joined: 09 Sep 2004 Posts: 34 Location: Sydney, Australia
|
Posted: Tue Feb 01, 2005 11:11 am Post subject: Still can't get there! |
|
|
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 |
|
|
MisterGoof n00b
Joined: 15 Sep 2004 Posts: 60
|
|
Back to top |
|
|
JonW n00b
Joined: 09 Sep 2004 Posts: 34 Location: Sydney, Australia
|
Posted: Tue Feb 01, 2005 9:37 pm Post subject: |
|
|
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 |
|
|
JonW n00b
Joined: 09 Sep 2004 Posts: 34 Location: Sydney, Australia
|
Posted: Wed Feb 02, 2005 9:50 am Post subject: |
|
|
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 |
|
|
gen2doggy Tux's lil' helper
Joined: 31 Jul 2004 Posts: 75
|
Posted: Wed Feb 02, 2005 1:24 pm Post subject: |
|
|
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 |
|
|
JonW n00b
Joined: 09 Sep 2004 Posts: 34 Location: Sydney, Australia
|
Posted: Wed Feb 02, 2005 9:30 pm Post subject: |
|
|
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 |
|
|
gen2doggy Tux's lil' helper
Joined: 31 Jul 2004 Posts: 75
|
Posted: Wed Feb 02, 2005 11:03 pm Post subject: |
|
|
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 |
|
|
JonW n00b
Joined: 09 Sep 2004 Posts: 34 Location: Sydney, Australia
|
Posted: Mon Feb 07, 2005 10:06 am Post subject: |
|
|
I ended up fixing this by removing mtab, and replacing it with a link to /proc/mounts. |
|
Back to top |
|
|
|