LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2004, 02:36 PM   #1
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
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?
 
Old 07-25-2004, 02:50 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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.
 
Old 07-25-2004, 05:38 PM   #3
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
Old 07-25-2004, 06:39 PM   #4
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 02:09 PM
Populating tables in Postgresql rickh Linux - Software 11 03-02-2005 10:34 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM
PERL: populating a drop down box from the DB vous Programming 3 08-27-2003 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration