search for: pivot_root

Displaying 20 results from an estimated 81 matches for "pivot_root".

2011 Sep 06
2
Reg: Difference between chroot & pivot_root
Hi, What is the difference between chroot & pivot_root. They don't seem obvious based on the man pages apart from the below mentioned caveats. 1) Inherited Open file descriptors, have to be explicitly closed. 2) Does not change CWD of the process, which can be overcome by doing a chdir before & after chroot call. Any informatio...
2011 Aug 26
1
Reg: Workaround to use pivot_root while using "rootfs" for "/" ?
Hi All, I am trying to start a lxc container using libvirt and I am facing an issue due to pivot_root. The return code from the system call ?pivot_root? is EINVAL (Invalid arguments). I isolated the issue to this specific condition check within the system call. This is an code snippet from fs/namespace.c::pivot_root * error = -EINVAL; if (root.mnt->mnt_root != root.dentry)...
2004 Dec 15
1
only pivot_root supported? [signed]
Hi, I hope this is the right list for initramfs questions. First I noticed: with initrd I can use real-root-device and pivot_root mechanisms. with initramfs only pivot_root works. My init (or linuxrc) scripts end like this: mount -t xfs -n -o ro /dev/mapper/root /new-root umount -n /sys || true umount -n /dev || true umount -n /proc || true cd /new-root pivot_root . initrd exec chroot . /sbin/init < dev/console > dev...
2005 Aug 26
1
lvm initrd -> initramfs
I converted my lvm root initrd to an initramfs by putting glibc, lvm, pivot_root, my linuxrc, etc. in my initramfs source file. I use ash compiled against klibc to run my linuxrc Unfortunately - pivot_root . initrd - complains - pivot_root: Invalid argument I suspect this may be because you can't pivot_root using a cpio initramfs root? If so, what should I do in...
2005 Feb 14
6
Query regarding initramfs
...- 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) ? How should I go about it? Using pivot_root, chroot ...? Am not very clear with these. 2. At the time init(from initrmafs) is called, is there any file system mounted? Thanks Rachita.
2005 Jan 05
1
[PATCH] kinit/kinit.c
A patch for a few more hiccups and trivialities in kinit.c: * The check_path() calls check for "/root" and "/old_root" - I believe that should be "/root" and "/root/old_root". * chdir("/") is recommended after pivot_root() * init_argv[0] isn't set properly to the basename pointed to by char *s - this fix also eliminates six lines of unecessary code and improves readability by using get_arg(). --- klibc-0.194/kinit/kinit.c.orig 2005-01-05 15:40:15.468305608 -0700 +++ klibc-0.194/kinit/kinit.c 2005-01-05 15:41:...
2001 Nov 20
2
pivot_root problem on RH7.2
...-13) from RH package, the old kernel didn't boot again (I didn't change anything with the old binary). I downloaded kernel 2.4.14 and ext3 patch for this version. After the compilation and installation I rebooted the system. I got answer something similar: error: mount 6 and something with pivot_root. I would like to know what do I need to do for making ext3 filesystem working with new kernel. (initrd? - why?). I compiled ext3 into the kernel, is this OK? I can boot with an older kernel (2.4.9-13) from floppy disk (this is the SAME binary I have on the hard drive). Thank you in advance,...
2002 Apr 07
2
Kernel Panic
I have just installed Redhat 7.2 on a P3 with adaptec 2400A IDE RAID. After many attempts with the partitions, I have finally managed to install but not get the following error on boot: creatig root device mounting root filesystem error mounting ext3 pivotroot:pivot_root(/sysroot,/sysroot/initrd)failed:2 freeing unused kernel memory :220k freed kernel panic: no init found. try passing init=option to kernel as I am not a linux expert by any streatch of the imagination, any help would be greatly appreciated. Many Thanks, Grant Lyons
2006 Apr 07
1
Weird early-boot sequence, can't find a way to adapt to ramfs
This is most exceedingly weird boot/shutdown sequence that I used once, and can't find a way to adapt to initramfs. Since you guys are trying to adapt all mechanisms that use initrd to using initramfs, this should interest you. initrd has (all binaries static): /bin: init halt mount poweroff pivot_root reboot sh umount /etc: fstab haltrc /dev: null zero tty tty0 tty1 console->tty0 hda1 loop0 ram0 /proc: /host: /root: /linuxrc contents of fstab: /proc /proc proc defaults 0 0 /dev/hda1 /host ntfs umask=077 0 0 /host/linux/root.img ext2 ro 0 0 contents of /linuxrc: #!/bin/sh # This part norma...
2001 Nov 12
2
[PROBLEM] setting data=writeback in /etc/fstab for /
...r after, and this gives me an error and aborts. The only way to repair this was to reboot and give the kernel the options "rw init=/bin/bash" and repair that. To avoid this problem I see some alternatives: - Don't use another journaling mode except the default on /. - use initrd or pivot_root - change mount so that multiple options with the same name are folded into one - change ext3 so that journaling changes on mounted fs's are simple ignored. Any remarks, anybody??? Regards, Phil - This message is RSA-encrypted: n=33389, e=257
2003 May 01
3
mount: error 22 mounting ext3
...am running RH 9.0 with Grub. I just added an additional "old" drive from another system which has Win98 (fat32) and RH 7.2 (ext2) installed. However, now when I boot up, I am getting the following errors: ext3: No journal on filesystem ide3(34,7) mount: error 22 mounting ext3 pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2 umount /initrd/proc failed: 2 Freeing unused kernel memory: 132k freed Kernel panic: No init found. Try passing init= option to kernel My assumption is that ext3 doesn't recognize the partitions on the additional drive, but how do I convert the ext2 to ext3...
2005 Apr 06
4
Query on Initramfs' and Initrd's coexistence
...smod: QM_MODULES: ERROR: /bin/insmod exited abnormally! Mounting /proc filesystem Creating block devices failed to create /dev/hda failed to create /dev/hda1 failed to create /dev/hda2 Creating root device mkrootdev: mknod failed: 30 Mounting root filesystem mount: error 2 mounting ext3 pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2 umount /initrd/proc failed: 2 Kernel panic - not syscing: Attempted to kill init! 2. This issue is irrespective of issue 1. I was wondering how I would be spawning the real init after the real_root_dev has been mounted.... In the normal booting case(i.e. without...
2002 Dec 31
1
any way to use binary kernel modules + pxe booting?
So, I'm trying to boot using PXE + NFS root filesystem, to boot a kernel that can reimage machines. This has been quite successful for me, until just recently where I ran into a motherboard that had a broadcom ethernet chipset - the broadcom driver is binary only. I can boot a kernel using PXE and load the broadcom driver using a custom initrd, but don't know how to then NFS mount the root
2002 Feb 23
1
ext3 mount problem after upgrading kernel
...ersion) with kernel 2.4.9-13 (upgraded by using the Up2date program). Today i used Up2date (version 2.7.11) to upgrade to 2.4.9-21 (kernel, headers and source). I get the following error while the new kernel is booting: EXT3-fs: unable to read superblock mount: error 22 mounting ext3 pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed: 2 Of course this leads to kernel panic a few steps later since the init program cant be found. I have never had any problems mounting ext3 filesystems earlier, not with the standard kernel in the original download version of RH 7.2, or with the previous kern...
2004 Feb 21
1
[PATCH] sleep for klibc utils
...5.000000000 +0100 +++ klibc-0.111.utils/utils/Makefile 2004-02-21 22:33:08.000000000 +0100 @@ -5,7 +5,7 @@ include ../MRULES MAKEDEPS = -Wp,-MD,.$(subst /,-,$*).d CFLAGS = $(MAKEDEPS) $(OPTFLAGS) $(REQFLAGS) -W -Wall LIBS = $(KLIBC) $(LIBGCC) -PROGS = chroot dd fstype mkdir mkfifo mount pivot_root umount true false +PROGS = chroot dd fstype mkdir mkfifo mount pivot_root umount true false sleep all: $(PROGS) @@ -39,6 +39,9 @@ true: true.o $(CRT0) $(LIBS) false: false.o $(CRT0) $(LIBS) $(LD) $(LDFLAGS) -o $@ $(CRT0) false.o $(LIBS) +sleep: sleep.o $(CRT0) $(LIBS) + $(LD) $(LDFLAGS...
2004 Jul 29
2
kinit
The "kinit" program distributed with klibc 0.153 still attempts to do a pivot_root. That doesn't work. The correct way of going into the main system is to mount --bind the root and chroot there, as done in the "run-init" program. Could you please copy that logic into "kinit"? And please fix the comment at the top - there is "/init", not &quot...
2005 Nov 30
1
problem booting from USB key
...4294967295Mb (mask 0xffffffffffffffff) blk: queue c05021c0, I/O limit 4294967295Mb (mask 0xffffffffffffffff) Loading jbd.o module Journalled Block Device driver loaded Loading ext3.o module Creating block devices Creating root device Mounting root filesystem mount: error 6 mounting ext3 pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2 umount /initrd/proc failed: 2 Freeing unused kernel memory: 232k freed Kernel panic: No init found. Try passing init= option to kernel.? ############### Also, when it does the Partition Check, it sits there for about 30 seconds. Any ideas? James S. Martin...
2004 Nov 01
1
Newbie needs help with failed RAID5 disk
...0] raid5: failed to run raid set md0 md: pers->run() failed ... md :do_md_run() returned -22 md: md0 stopped. md: unbind<hdf1,0) md: ...autorun DONE. Creating block devices Creating root device Mounting rtto filesystem EXT3-fs: unable to read superblock mount: error 22 mounting ext3 pivotrot: pivot_root(/sysroot,/sysroot/initrd) failed: 2 umount /initrd/proc failed: 2 Freeing unused kernel memory: 128k freed Kernel panic: No init found. Try passing init= option to kernel.
2005 Apr 04
0
problem about initramfs
...ux-mips/klib-1.0.5/lib/klibc/mips-linux-bin/mount 0755 0 0 51 file /bin/nfsmount /root/project/linux-mips/klib-1.0.5/lib/klibc/mips-linux-bin/nfsmount 0755 0 0 52 file /bin/nuke /root/project/linux-mips/klib-1.0.5/lib/klibc/mips-linux-bin/nuke 0755 0 0 53 file /bin/pivot_root /root/project/linux-mips/klib-1.0.5/lib/klibc/mips-linux-bin/pivot_root 0755 0 0 54 file /bin/printf /root/project/linux-mips/klib-1.0.5/lib/klibc/mips-linux-bin/printf 0755 0 0 55 file /bin/run-init /root/project/linux-mips/klib-1.0.5/lib/klibc/mips-linux-bin/run-init 0755...
2005 Aug 09
6
initramfs howto
...rmal init. Once /init has performed all necessary set-up tasks and initramfs is no longer needed, the proper way to clean up is to use run_init (or do what it does manually). Run_init deletes all the files on the initramfs to free up the space and chroots into the "real" root. DO NOT use pivot_root and try to unmount the initramfs; since initramfs is rootfs you're pulling the rug out from under the kernel by doing so and bad things _will_ happen as a result. 4) Testing There is no need to reboot repeatedly to test your initramfs; you can test by building the initramfs into a UML kernel...