LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   populating /dev (https://www.linuxquestions.org/questions/linux-newbie-8/populating-dev-209517/)

class_struggle 07-25-2004 02:36 PM

populating /dev
 
I have a certain live CD distro - which will remain nameless - which has a dodgy HD install script, so I want to manually install to HD.
MOst of tghe directories are farily much down to copying over, but I'm stuck on how to populate the /dev directory properly. Anybody got any pointers?

bulliver 07-25-2004 02:50 PM

Assuming you are not going to use udev or devfs then really all you need is to run the MAKEDEV script. Typically it is located in /dev but if not you can get it here:
http://www.oldlinux.org/Linux.old/bin-src/

MAKEDEV is just a bash script which creates all the devices by repeatedly running the mknod command with the correct majo/minor inode numbers described by ./Documentation/devices.txt in your kernel source.

class_struggle 07-25-2004 05:38 PM

Many thanks bulliver. I'd actually forgotten about MAKEDEV (no, seriously). Good to know it works that way.

What's the deal with devfs? It's a file system type, is it? Is it for when you set up your /dev on a separate partition? (didn't think that was so common).

I always assumed you could only have one FS type per partition.

PS. Visited your site ... good stuff. I'm not a Gentoo-ite quite yet, I hasten to add .. but, I'm getting there.

class_struggle 07-25-2004 06:39 PM

drat
 
drat, it didn't work. somethign sily going on. I copied over a MAKEDEV to the new and empty /dev and ran it with -/MAKEDEV.
Nothing happened, no errors, nor any result either. Hang on ... maybe it needs chrooting .. hang on.


All times are GMT -5. The time now is 04:32 PM.