Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

switch_root(8) [linux man page]

SWITCH_ROOT(8)						      System Manager's Manual						    SWITCH_ROOT(8)

NAME
switch_root - switch to another filesystem as the root of the mount tree. SYNOPSIS
switch_root [-hV] switch_root newroot init [arg...] DESCRIPTION
switch_root moves already mounted /proc, /dev and /sys to newroot and makes newroot the new root filesystem and starts init process. WARNING: switch_root removes recursively all files and directories on the current root filesystem. OPTIONS
-h, --help show help and exit -V, --version show version number and exit RETURN VALUE
switch_root returns 0 on success and 1 on failure. NOTES
switch_root will fail to function if newroot is not the root of a mount. If you want to switch root into a directory that does not meet this requirement then you can first use a bind-mounting trick to turn any directory into a mount point: mount --bind $DIR $DIR SEE ALSO
mount(8) chroot(2) init(8) mkinitrd(8) AUTHORS
Peter Jones <pjones@redhat.com> Jeremy Katz <katzj@redhat.com> Karel Zak <kzak@redhat.com> AVAILABILITY
The switch_root command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. Linux June 2009 SWITCH_ROOT(8)

Check Out this Related Man Page

SWITCH_ROOT(8)						       System Administration						    SWITCH_ROOT(8)

NAME
switch_root - switch to another filesystem as the root of the mount tree SYNOPSIS
switch_root [-hV] switch_root newroot init [arg...] DESCRIPTION
switch_root moves already mounted /proc, /dev and /sys to newroot and makes newroot the new root filesystem and starts init process. WARNING: switch_root removes recursively all files and directories on the current root filesystem. OPTIONS
-h, --help show help and exit -V, --version show version number and exit RETURN VALUE
switch_root returns 0 on success and 1 on failure. NOTES
switch_root will fail to function if newroot is not the root of a mount. If you want to switch root into a directory that does not meet this requirement then you can first use a bind-mounting trick to turn any directory into a mount point: mount --bind $DIR $DIR SEE ALSO
mount(8) chroot(2) init(8) mkinitrd(8) AUTHORS
Peter Jones <pjones@redhat.com> Jeremy Katz <katzj@redhat.com> Karel Zak <kzak@redhat.com> AVAILABILITY
The switch_root command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux June 2009 SWITCH_ROOT(8)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

oracle installation on redhat 7.0/7.1

can anybody tell me that whether oracle 8i is installable on redhat 7.0/7.1. for me it is only working successfully on redhat 6.1 but not later versions cheers (3 Replies)
Discussion started by: balu
3 Replies

2. UNIX for Dummies Questions & Answers

Is Linux 7.2 Redhat a good start for a newbie

Never used UNIX before. Is Linux redhat 7.2 a good start? (6 Replies)
Discussion started by: derek
6 Replies

3. Filesystems, Disks and Memory

mounting vfat...

Hi, I have a little and very annoying problem. I want to mount a partition so that most of the files would be owned by a user, then an ftp dir with special previliges set up, and some of the files having write access for all users. I can't do it anyhow. Right now i have this line in... (3 Replies)
Discussion started by: dimanise
3 Replies

4. UNIX for Dummies Questions & Answers

Downloading RedHat 7.3 Install

I want to download redhat 7.3 and came to this download mirror: ftp://carroll.cac.psu.edu/pub/linux/distributions/redhat/redhat/redhat-7.3-en/iso/i386/ I was hoping thats the right dir, cuz i already downloaded all the iso's in there, but could someone tell me what the difference between... (7 Replies)
Discussion started by: stealthdestroyr
7 Replies

5. UNIX Desktop Questions & Answers

RedHat Linux Cd

I am wondering if anyone has copies (or can burn me a copy) of RedHat Linux. I will pay shipping charges... I don't have a CD burner and i dont want to run it off of my hard drive... please email me at: empireinfo623@yahoo.com or baldwitm@muc.edu (5 Replies)
Discussion started by: thedude623
5 Replies

6. UNIX for Dummies Questions & Answers

Interested, but lost.

Alright, so I'm interested in using Unix, but I have a couple of pretty basic questions: 1) What's the relationship between Linux and Unix? Are they one and the same, or completely different? 2) Can you use Unix on a laptop? and 3) Where can you get Unix? Thanks for listening. (9 Replies)
Discussion started by: Ned
9 Replies

7. Slackware

how to activate USB mouse

:confused: I am using Linux for a while and now changed to slackware for my study and it is not as good as redhat everytime when you add this or that it needs either configure modules or recompile kernel Now I changed from PS/2 mouse to USB trouble starts it refuse to work I know I can... (3 Replies)
Discussion started by: slackware
3 Replies

8. Linux

Where Can You dwonload Redhat

Where do you download redhat free edition and how do you use some of it's tools. This confuses me when I am working on a customers computer. I know how to use Linux and everything else. I know how to use redhat but I need to know if anyone knows how to use the tool on redhat pro zzknetmonitor.exe?... (6 Replies)
Discussion started by: computek
6 Replies

9. Red Hat

telnet & ftp in linux AS4 with root account

hi, i installed linux as4, i need telnet and ftp with root account. anybody show me how to configure. TIA, Bong (3 Replies)
Discussion started by: bong02
3 Replies

10. UNIX for Dummies Questions & Answers

mount directory on Linux problem

folks; I have 3 similar Linux SUSE 10 servers A, B & C I log as root and when i'm on B server & try to mount a directory on A server it works fine, but when i try to mount the same directory when i'm on C it doesn't and i get this error: Server C# mount 172.32.5.2:/var/local/export/... (4 Replies)
Discussion started by: Katkota
4 Replies

11. Red Hat

increase root partition

i am using redhat 5.4 and my root size shows 98 %, how can i increase root size # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 77G 16G 75G 98% / /dev/sda1 2.4G 82M 2.2G 4% /boot tmpfs 3.8G 0 3.8G 0%... (8 Replies)
Discussion started by: reply.ravi
8 Replies

12. Linux

Please| many Protections

hey all, i', new and i'm need many protections: Protections for VpS Server linux Centos. protection DDoS protection CronJobs protection FireWall protection Brute Force protection for directadmin Thanks For Give.. and how i save config in root? All thanks helpers. (9 Replies)
Discussion started by: LinuxHelpp
9 Replies

13. Red Hat

Need to mount LUN on two linux boxs (one rw the other ro) caveat details inside

Calling all Linux GURU's. The purpose of this thread is to try an recreate what we already have stood up in my environment, however the steps i am having to produce my own. I have got multiple applications that dump the data to various LUNs, the LUNs are managed by an Enterprise SAN... (11 Replies)
Discussion started by: jcejka
11 Replies

14. Cybersecurity

Freeze system

hello is there any freeze software for Linux-redhat system to prevent any changes on /root (wish open topic on right forum) (3 Replies)
Discussion started by: nimafire
3 Replies

15. UNIX for Advanced & Expert Users

Grep -p in Linux redhat.

Hello colleagues, In AIX there is the option -p in grep command , what is the equivalent in linux RedHat? regards (4 Replies)
Discussion started by: systemoper
4 Replies