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

Notices


Reply
  Search this Thread
Old 07-24-2007, 09:42 AM   #1
slacker9
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
Switching root with initramfs


I'm using Slackware 11.0 and I know you can't use pivot_root with an initramfs. BB and other distros have switchroot or switch_root utils to do the same things with an initramfs that pivot_root does, but I can not find anything like that in Slackware.

Suggestions?
 
Old 07-24-2007, 10:48 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Slackware 12.0 kernel uses initramfs and the mkinitrd tools that are used with it contain switch_root (implemented by busybox).
If you want to use that on Slackware 11.0 (I suppose you run a custom kernel since the default kernels in Slackware 11.0 don't support initramfs afaik) you can try and rebuild the mkinitrd package on your own box. Get it's sources at for instance http://slackware.osuosl.org/slackwar...ce/a/mkinitrd/

Eric
 
Old 07-24-2007, 10:59 AM   #3
slacker9
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply. Yes, it is a custom stripped-down Slackware 11 kernel from another vendor... it boots from USB flash drive and is designed to run from there. I'm trying to modify it to change root to a hard drive after the flash boots so I can install a few additional packages I need, set up a real swap, etc.
 
Old 07-24-2007, 01:35 PM   #4
slacker9
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Ok.. I installed a fresh copy of Slackware 12, and still.... no switch_root. Searched the entire FS and nothing.
 
Old 07-24-2007, 03:04 PM   #5
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
Quote:
(implemented by busybox).
0123456789
 
Old 07-24-2007, 04:15 PM   #6
slacker9
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
(slapping forehead) I thought BB was included in the Slack distro. That 'splains it.
 
  


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
Switching to root when running Linux applications Setya SUSE / openSUSE 1 04-27-2007 04:09 AM
switching between user and root without logging out redhat_marsi Linux - Newbie 7 06-13-2005 10:38 AM
Quickly switching to root artificialGekko Linux - Newbie 9 03-09-2005 06:44 AM
switching to root Stan the caddy Linux - Newbie 9 01-17-2004 02:54 AM
Switching between root and user PapaNoHair Slackware 14 07-28-2003 12:58 PM

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

All times are GMT -5. The time now is 12:12 AM.

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