LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-11-2006, 08:02 AM   #1
kel_en
Member
 
Registered: Jun 2005
Location: Virginia, USA
Distribution: Slackware, Debian, MX
Posts: 125

Rep: Reputation: 17
chroot: effect of makedev on /dev


I have Sarge and Etch installed on separate partitions on this machine. My intention was to move to Etch but my wife objected to a couple of differences from Sarge so we are stuck in Sarge for a while. I'm keeping Etch up to date but have been booting into the Etch partition to do so. Recently, I have been exploring chroot as a means to avoid rebooting. The Debian documentation explains how to do this, assuming that Etch is installed via debootstrap, not from CD and netinstall. The Debian documentation instructs the user to enter the chroot environment issue the command

chroot # cd /dev; /sbin/MAKEDEV generic ; cd -

I don't know if this command will make permanent changes to my Etch /dev, rendering it unusable when I boot into that partition. I know that omitting this command and setting up tty8 as the chroot Etch console, I have USB que issues within a minute of logging into Etch via ALT-CTRL-F8.

If I execute the "/sbin/MAKEDEV generic" command in the chroot environment, will /dev be correctly populated for the Etch kernel when I later boot into Etch?

Thanks.
 
Old 06-12-2006, 06:40 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
What will happen is that /dev will be mounted as tmpfs, thus hiding your hardcoded /dev.
Well, that's the theory as I see it...

edit: actually you might have some problems with different naming (ex sda1<->sda2) so maybe a very little tweaking would be necessary

Last edited by nx5000; 06-12-2006 at 06:43 AM.
 
Old 06-12-2006, 12:41 PM   #3
kel_en
Member
 
Registered: Jun 2005
Location: Virginia, USA
Distribution: Slackware, Debian, MX
Posts: 125

Original Poster
Rep: Reputation: 17
Thanks. I issued the "/sbin/MAKEDEV generic" command and chroot using tty8 works very nicely. Haven't tried to boot back into Etch. When I do, little tweaking, if needed, is a small price to pay for the convenience, now.
 
  


Reply



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
Morphix remastering: chroot /dev/null errors evanw Linux - Software 6 01-02-2006 02:42 PM
Create /dev in chroot jail - mknod question The_JinJ Linux - General 1 12-14-2005 03:49 PM
MAKEDEV error rahul_jain_9684 Linux From Scratch 3 09-20-2003 06:13 PM
makedev watashiwaotaku7 Linux - Software 6 12-30-2002 12:00 AM
Help me sleep: MAKEDEV /dev/scd0- BBehemoth Linux - General 1 10-20-2002 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:05 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