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)
Check Out this Related 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-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
Linux June 2009 SWITCH_ROOT(8)
HI,
Suppose I have thousand files in one directory and they can keep increasing ie
/home/rooh
Then I want to create a batch of 100 files and then compress that batch file and ftp them somewhere else. And morever the files in the batch will be moved to somewhere else.
Can you please help... (21 Replies)
Hello all,
I wanted to know if any one had successfully install nis+ utils and use nis+ client on a linux (redhat) and have a Solaris nis+ server. I am able to install the client software on the linux and am able to see the nis+ tables. The passwd tables' works file but the auto_master and... (10 Replies)
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)
When I try to log on as root now all it does is load YaST. When I used to log on as root it would have a desktop and all...what has happened? Thanks in advance. (10 Replies)
Hi all,
I've just installed redhat linux 7.3 and everything is good so far except my network connection. When I use the wizard to activate it gives me an error 'cannot activate' but no reason. Using the wizard I can see the device Eth0 and under the hardware tab it seems to recognize the card... (13 Replies)
hey guys im rather new to linux, im runnin damm small linux on an old HP.
my problem is I cant mount the cd rom drive. when I try and mount I get the mount point is being used by another directory, i tried editing the fstab file. but that didnt work. any help would be greatly appreciated. (12 Replies)
I have a USB disk on a little NAS controller (NSLU2 running unslung 6.8) that I can access nicely with root with
mount -t cifs \\\\10.134.23.23\\DISK\ 2 /mnt/LKGD7F73A
However, when I run emacs from an user mode xterm prompt, emacs cannot read and write the files on /mnt/LKGD7F73A. Emacs can... (11 Replies)
Hi,
Could some please help me in configuring wireles internet on redhat linux installed on my laptop.
When I booted using windows, I saw the following, which I think is the name of my laptop's wireless card:
Intel(R) PRO/Wireless 3945ABG Network Connection
I have run the following steps... (9 Replies)
i have automated installation of my proprietory linux.. using PXE. it all goes well. but after complete installation, while using the admin interface.. i am facing display problems.
is it due to package dependencies.?
or i have to write post script in anaconda-ks.cfg file???
can some one tell... (10 Replies)
I want to buy an ereader described known among others as MDB-106 described here: ambiancetechnology . com . Because I promissed myself never to buy anything (again) that is closed I am trying to see how open it is.
It states there there is Linux 2.6 inside. Also some software updates can be... (8 Replies)
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)
My Code
Hi All,
I m getting below error in one of redhat linux server.I am new to redhat.Please let us know any issue with HDD???
Mycode
kernel: ll header: ff:ff:ff:ff:ff:ff:00:11:43:5a:20:e5:08:00
kernel: end_request: I/O error, dev sdb, sector 0
kernel: end_request: I/O error, dev... (11 Replies)
Hi,
I've been able to mount my linux box to a windows machine, but I can't seem to mount my linux box to another linux box I have. (I know I could scp, but for other reasons I need to do it this way) Samba is installed.
Here is an example where I mount to a Win machine.--> works fine
mount... (12 Replies)
Hi,
I'm a new user of this forum and I'm not an expert of linux.
I have a broken old pc with red hat linux, I clone hdd to another pc with different mainboard and it's ok but it has only one problem, the usb ports not work.
In the boot this message appears:
... (9 Replies)
Hey guys.....
Im new user for linux fedora 20.... i really need help ....... i have no idea why suddently when i turn on my laptop fedora turn to be black screen and ask me loging in , when i loging then nothing happen , it stay at the same screen... then i try to go to "with linux secure...,"... (12 Replies)