Displaying 20 results from an estimated 20 matches for "newroot".
Did you mean:
newrook
2011 Mar 11
1
run-init in tmpfs
...e the oldroot bei
the root within the tmpfs partition.
Therefore I do the following:
The PXE client boots the kernel (2.6.38-rc6) successfully and a shell
within the initrd is spawned in the "early user space".
After that I type the following:
ifconfig eth0 ip-address
mkdir /mnt
mkdir /newroot
mount -t tmpfs none /newroot
mount -t nfs ip-address_of_nfs_server:/rootfsfolder /mnt -o nolock -n
cd /newroot
cpio -i < /mnt/rootfs.cpio.archive
umount /mnt
Now the whole future rootfs lies under /newroot.
Now I prepare the root switch via run-init:
mount -n -o /sys /newroot/sys
mount -n -o...
2009 Feb 04
1
rsync differences between Fedora/Ubuntu?
...w, I use rsync to mirror the /boot partition and the
/ (without /boot) partition on to removable ATA/IDE hard drives.
(Insertion/removal of mirror drives are during power down.)
This script works perfectly on my Fedora Core 5 system... After backing
up and umount-ing, the /mnt/newboot and /mnt/newroot are empty and the
mirrored disks are exact bootable clones.
But corresponding commands in my Ubuntu Hardy (different hard disks,
same platform otherwise) seem to send the copies to the /mnt/newroot
DIRECTORY of the ORIGINAL source root partition (and probably NOT on to
the mounted partition -...
2006 Sep 28
1
ramfs to tmpfs
...HER DEALINGS IN THE SOFTWARE.
*
* ----------------------------------------------------------------------- */
/*
* rtfs.c -- ramfs to tmpfs
*
* Usage: install as /init
*
* This program should be installed as /init on an initramfs;
* it does the following:
*
* - Mounts a tmpfs on an empty /newroot*
* - Moves all files on the ramfs at / to the tmpfs
* - Remounts /newroot onto the root filesystem;
* - Chroots;
* - Opens /dev/console;
* - Spawns the init program (with arguments.)
*/
#include <alloca.h>
#include <assert.h>
#include <ctype.h>
#include <dirent.h>
#in...
2015 Feb 04
2
[LLVMdev] Question on Machine Combiner Pass
...instruction lengthens the
critical path or not.
In order to do this we compute the depth and latency for the current
instruction (MUL+ADD) and the alternate instruction (MADD).
But we call two different set of APIs for the current and new instructions:
For new instruction we use:
unsigned NewRootDepth = getDepth(InsInstrs, InstrIdxForVirtReg, BlockTrace);
unsigned NewRootLatency = getLatency(Root, NewRoot, BlockTrace);
While for the current instruction we use:
unsigned RootDepth = BlockTrace.getInstrCycles(Root).Depth;
unsigned RootLatency = TSchedModel.computeInstrLatency(Root);...
2005 Aug 09
2
Upgrading Drive, Best Practice?
Hi,
This might sound like a n00b question, but I've honestly never done this
with a Linux machine... (it is running Centos3)
We have a 1U mail server with two 36GB SCSI drives in a hardware mirror
config. There's no more room for any other drives in the case. It's
filling up, so we now have two 74GB drives ready to take their place.
Possible solutions that I've come up
2005 Feb 14
6
Query regarding initramfs
Hi
I had some doubts regarding what all the init application should do:
>> so, that should that application do?
>> - mount /dev/hda1 /new-root
>> - cd /new-root
>> - run-init
1. Of what I understand, before exitting, init should mount the realroot
and execute the init process.
Is realroot the '/' or the empty directory created (in the cpio
archive) ?
2008 Oct 26
9
vncviewer reporting connection refused (146)
...indowsts --hvm --vnc -c /dev/dsk/c0t0d0s2
The vncviewer is unable to open a connection to the xend VNC server and is failing with the Connection refused (146) error message.
xend is set up with the following properties:
config/vnc-listen=astring:"0.0.0.0"
config/vncpasswd=astring:"newroot"
config/default-nic=astring:""
The problem seems to be that the VNC server is starting at a later time than that at which the VNC viewer is attempting to connect to it. After the virt-install command fails, I run netstat -an|grep 590 and find that there really is a VNC server listen...
2011 Feb 08
4
mount the wrong device after system recovery
..., I got
the panic error:
* Mounting /dev/sdb1 on /sysroot
* Mount: mounting /dev/sdb1 on /sysroot failed: No such file or
directory
* Mount: mounting /dev on /sysroot/dev failed: No such file or
directory
* * switching / to /sysroot
* Switch_root: bad newroot /sysroot
* Kernel panic - not syncing: Attempted to kill init!
I've changed the recovery system fstab to use the correct devices. I
deleted recovery system etc/lvm/cache/.cache file. But it still doesn't
work. What am I missing?
Thanks,
- xinhuan
-------------...
2003 Nov 28
1
problems when exec()ing /sbin/init from an initramfs
...mkdir /sys
bash-2.05b# mount -t sysfs none /sys
bash-2.05b# /sbin/insmod mptbase.ko
[random messages...]
bash-2.05b# /sbin/insmod mptscsih.ko
bash-2.05b# /sbin/insmod sd_mod.ko
[boatloads of messages from /sbin/hotplug & udev]
bash-2.05b# mount /udev/xscsi/pci20.01.1-1/target2/lun0/part2 /newroot/
bash-2.05b# umount /sys
bash-2.05b# umount /proc
bash-2.05b# rm -rf /newroot/udev/*
bash-2.05b# cp -a /udev/* /newroot/udev/
bash-2.05b# cd newroot/
bash-2.05b# pivot_root . oldroot
bash-2.05b# exec /usr/sbin/chroot . /sbin/init <dev/console >dev/console 2>&1
INIT: version 2.85 booti...
2005 Jun 11
7
A questiong about replacing my failing drive
First, I am not a RedHat or linux newbie. I simply have not had to do
what I am getting ready to do, and I want to see if I am going to run into
a problems...
My HDA drive is failing (I can hear the occasional click from it and I am
seeing Smart errors, the transfer rate is slow but all my data is there).
I have 3 partitions on it, the /, /boot/ and my game servers (this is also
the drive the
2007 Aug 08
2
Clone physical into virtual
Is there a formal, or preferred, method for importing a physical
CentOS machine into a VMware instance? I know they make
software to move Windows machines, but I couldn't find one to
handle our CentOS servers. I have done something via scp/sftp
in the past, which *seemed* to work, but if there's a better way
I'm more than interested in hearing the process.
Thanks!
Scott
2012 Sep 04
0
[LLVMdev] Lowering Call Return
On 9/4/2012 11:16 AM, Khaled Mohammed wrote:
>
> Is there an option to do sret demotion via a register? if yes, do we
> have a Target to see an example implementation?
Hi Khaled,
Check out X86TargetLowering::LowerReturn, and the call to getSRetReturnReg.
The SRetReturnReg looks like a hack (each target that uses it, declares
this variable individually), but that seems to be the
2005 Nov 16
1
correct way to migrate old data on hda to new sda
I am migrating off of a 40GIG hda to a new 160GIG sda disk.
I plan on installing 4.2 from scratch. But after that what is the
correct way
do transfer all the data from hda (home partition really) to the new sda
home
partition?
I presume there is just a couple files in /etc to restore also. Like
hosts, passwd.
Anything else?
Other suggestions welcome also. this is my first time migrating to a
2012 Sep 04
2
[LLVMdev] Lowering Call Return
Hi,
it seems like SelectionDAGBuilder expects returning of vectors
(structures/arrays) to be lowered in either of the two ways:
1. Flatten the complex data types to simple data types, and return them
using registers (done by TargetLowering::LowerCallTo)
2. sret demotion: return the address of the complex data type via a stack
pointer
Is there an option to do sret demotion via a register? if yes,
2003 Oct 15
3
OpenSSH package
A non-text attachment was scrubbed...
Name: not available
Type: text
Size: 7366 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20031015/02b75f40/attachment.ksh
2012 Sep 05
2
[LLVMdev] Lowering Call Return
...float> @add(<4 x float> %a.val, <4 x float>
%b.val) nounwind {
entry:
%tmp4 = fadd <4 x float> %a.val, %b.val
ret <4 x float> %tmp4
}
a and b are flattened by SelectionDAGISel::LowerArguments(const BasicBlock
*LLVMBB) before letting the target handle it.
SDValue NewRoot = TLI.LowerFormalArguments(DAG.getRoot(),
F.getCallingConv(),
F.isVarArg(), Ins,
dl, DAG, InVals);
The "Ins" have all the parameters flattened to primitive types. I would
like the vector parameters...
2009 Aug 28
6
[Bug 1636] New: Loging after chroot
https://bugzilla.mindrot.org/show_bug.cgi?id=1636
Summary: Loging after chroot
Product: Portable OpenSSH
Version: 5.2p1
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: jchadima at redhat.com
2020 Jan 03
10
Writing loop transformations on the right representation is more productive
...;getPredicate())
return;
// Create new loop hierarchy with fused loops.
GreenFused = new GreenLoop({ Red1->getGreen(), Red2->getGreen() },
Red1->getIterationCount());
RedFused = new RedNode(GreenFused, Red1->getParent());
NewRoot = RedFused->getRoot();
// Preserve analysis.
// In this case not really necessary since the green nodes of the
// loop bodies are reused.
DependenceAnalysis->transferAnalysis(Red1->getBody(),
RedFused->getBody()[0],
ClosedExprA...
2006 Apr 09
5
Switchroot: mount failed: 22, Kernel panic - not syncing: Attempted tp kill init!
Hi, everybody!
My pxelinux.0/default file is:
LABEL linux
KERNEL vmlinuz-2.6.16
APPEND initrd=initrd-2.6.16.img
root=192.168.4.110:/clients/192.168.4.100/root
When mounting I get:
switchroot: mount failed: 22
Kernel panic - not syncing: Attempted tp kill init!
Before it I get some messages about: Can't find /dev/console.
/clients/192.168.4.100/root/dev was empty. I've copied my
2011 Jul 13
9
[PATCH 0/8] switch_root() enhancements
On a train ride to Bruxelles, brought out my axe and directly attacked
run_init(8). run_init(8) is dead, long live switch_root(8).
The next run on switch_root(8) involves fdopendir,
so another push for the upcoming stdio 1.6 branch.
The following is boot tested with initramfs-tools,
kinit(8) tests would very much be appreciated!?
Michal Suchanek (1):
[klibc] switch_root: Fix single file