Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Diskless Node problems with console
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tinksmartbstupid
n00b
n00b


Joined: 05 Dec 2002
Posts: 68
Location: Coram NY

PostPosted: Fri Apr 15, 2005 6:40 pm    Post subject: Diskless Node problems with console Reply with quote

Hey, I'm having a problem booting a diskless node. I've got the dhcp server, tftp server, NFS, etc

I get it to download the kernel and everything, but then It gives me error when It tries to open the console?

I don't know what to do, but here's the error message:

Warning: unable to open initial console


what am I supposed to do?

*sorry, in a rush
Back to top
View user's profile Send private message
anxt
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 254
Location: Frozen Tundra, Canada

PostPosted: Sat Apr 16, 2005 6:48 am    Post subject: Reply with quote

easy. make the file in /dev
Code:
mknod /path_to_diskless_root/dev/console c 5 1

maybe you can just copy the one from your server, i am not sure, but i don't see why not.

i think i had to add another too. i don't remeber for sure.

/dev/initctl maybe. this will get you started though hopefully.

after it boots udev will make everything else you need, hopefully.
Back to top
View user's profile Send private message
Tinksmartbstupid
n00b
n00b


Joined: 05 Dec 2002
Posts: 68
Location: Coram NY

PostPosted: Sun Apr 17, 2005 2:20 am    Post subject: Reply with quote

I did:

mknod /DL/1/dev/console c 5 1
mknod /DL/1/dev/initctl c 5 1

(/DL being diskless base, /1 being filesystem one).

I got a lot further this time, I got all the way up to init, but then I got these errors:


Init: version 2.86 booting
INIT: /dev/initctl is not a fifo


* Root filesystem could not be mounted read/write :( [ !! ]
/sbin/functions.sh: line 306: rc_splash: command not found
/dev/console: No such file or directory


This makes me think I'm missing some files, or I've got an error in a config file, probably NFS
I'll play around with that, but in the mean time, anyone know something that could help me along?
Back to top
View user's profile Send private message
anxt
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 254
Location: Frozen Tundra, Canada

PostPosted: Tue Apr 19, 2005 12:38 am    Post subject: Reply with quote

from man mknod

mknod creates a FIFO (named pipe), character special file, or block
special file with the specified name.
The argument following name specifies the type of file to make:
p for a FIFO

the p in the following ls -l:
prw------- 1 root root 0 Feb 8 17:18 /usr/diskless/192.168.1.21/dev/initctl
crw------- 1 root tty 5, 1 Oct 23 18:03 /usr/diskless/192.168.1.21/dev/console

I would say try and mount the root filesystem read write form another box (or even localhost should work) make sure you export it rw and your diskless fstab looks right.

this is the contents of my diskless's /etc/runlevels/boot:

bootmisc clock keymaps net.lo rmnologin urandom
checkfs consolefont localmount netmount serial
checkroot hostname modules nfsmount syslog-ng

if you are trying to mount nfs / by hostname you will need /etc/hosts to have an entry too, i think. keep hacking at it you will get it to boot. it is so pimp once you got a diskless box but you can't tell your frineds in the real world cause they don't care or even understand.
Back to top
View user's profile Send private message
Tinksmartbstupid
n00b
n00b


Joined: 05 Dec 2002
Posts: 68
Location: Coram NY

PostPosted: Wed Apr 20, 2005 1:29 am    Post subject: Reply with quote

Well I got rid of all the errors now, (specified ip address instead of hostname)

now I have a different problem:

it hangs after doing the thing with the system clock (not infront of it now)

it also gives me some error about not having a /sys dir

I'm guess that /sys is system dependent, kind of like /proc. so how do I create it?
_________________
If it isn't broken, fix it!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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