Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-24-2007, 10:42 AM   #1
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.

Old 07-24-2007, 11:48 AM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,850

Rep: Reputation: Disabled
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

Old 07-24-2007, 11:59 AM   #3
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, 02:35 PM   #4
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, 04:04 PM   #5
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
(implemented by busybox).
Old 07-24-2007, 05:15 PM   #6
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.


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

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

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