General :: When Try To Boot Stick It Gets As Far As Executing The Initramfs Init Script Then Restarts?

May 12, 2011

I'm booting Gentoo off of a usb-stick. This has been working previously but now when I try to boot my stick it gets as far as executing the initramfs init script then restarts.The last two lines of my initramfs/init are:

Code:
echo "finished initramfs."
exec switch_root /new-root /sbin/init

[code]...

View 1 Replies


ADVERTISEMENT

General :: Initramfs - Attempted To Kill Init ?

Nov 10, 2010

For a special purpose I needed a initramfs - that didn't work. So I reduced the initramfs setup to the simplest.

Mount the root and switch_root into it. But that didn't work either.

If I go with the init-script for the initramfs I posted below the system prints out the switch_root usage-text from busybox. But the syntax is right, ain't it?

When I use chroot instead of switch_root then it prints the usage-text of init before the kernel panic.

If I try with "/sbin/init 5" then, after a while the system reports "init: timeout opening/writing control channel /dev/initctl".

In the other cases I get the following error messages before the system hangs: "Kernel Panic", "Attempted to kill init", "init not tainted"

(With the init script below there is a error saying:"sh: can't access tty; job control turned off". I know why it's there - but don't know if it is connected to this problem.)

This information may be important:
- The machine boots from a usb-harddisk
- /sbin/init on the new root is available
- the system on newroot is sane and runs perfect standalone (without initramfs)
- the system on newroot uses baselayout-2 with openrc
- busybox is built as static binary
- busybox version is v1.15.3

Here is the relevant data:

My uname -a on that machine:

Code:

Content of the initramfs:

Code:

View 1 Replies View Related

General :: Accessing To A Usb Stick While Booting With Init=/bin/sh?

Mar 28, 2011

I am trying something: I would like to access to some data stored on a usb stick while I am booting to the kernel using the "init=/bin/sh" parameters.Is that possible ?My USB stick is detected when I do 'cat /var/log/messages.log | grep sdb". I had to "modprobe usb-storage".Quote:localhot kernel : sdb: sdb1localhost kernel: sd 3:0:0:0: [sdb] Attached SCSI removable diskBut I still can't get it mounted.Quote:mount: special device /dev/sdb1 does not exist"

View 2 Replies View Related

Ubuntu :: Error "occurred While Executing Syslinux. Your USB Drive Won't Be Bootable" When Installing To USB Memory Stick

Jan 18, 2011

When using the Universal USB Installer and following the instructions according to the Ubuntu web site, I get the following error: an error () "occurred while executing syslinux. Your USB drive won't be bootable" There is no number between the brackets and I has no problem with a previous version of Ubuntu netbook remix.

View 9 Replies View Related

Ubuntu :: Wont Boot - "no Init Found. Try Passing Init=bootarg"

Jan 31, 2011

While I was using my computer a few days ago, the terminal stopped working properly, so I tried to reboot, and when it started up again it wouldn't boot and said "no init found. try passing init=bootarg"

This has happened twice before, so I really need to figure out what keeps happening, otherwise I can't continue to use linux. i reinstalled both times before. i think that this is caused by a process that prevents me from using the hard drive, because when I try to check the disk in the terminal or in gparted, it says Device or resource busy while trying to open /dev/sda1. Filesystem mounted or opened exclusively by another program?

Also, in the disk utility, in the lower right corner of the filesystem it has a spinning "loading wheel".(i'm not sure if that means anything)

I am using ubuntu 10.10, but am not sure what kernel I am using, but i tried a few different kernel options(there's three of them at start up). safe mode does not work either.

View 3 Replies View Related

Ubuntu :: Dual Boot XP - 10.10 - Boot Screen Shows Up But Then Computer Restarts And Returns To The GRUB Menu

Dec 16, 2010

I followed a tutorial to install XP across my entire HDD. I installed Ubuntu 10.10 "Alongside another OS". Ubuntu loads fine, but when trying to load XP, the boot screen shows up, but then the computer restarts and returns to the GRUB menu.

I saw some threads on this site and tried to type: sudo gedit /boot/grub/menu.lst

In the terminal. It returned a blank text document so I'm not sure if that information was outdated. I then typed: sudo fdisk -l

And got this:

Not sure what any of this means, but I sure hope someone else does. I would say forget XP, but it's hard to let go of some of the games and software I use. I appreciate any responses, thank you.

I tried to format the table as it appeared, but the forum corrected the extra spaces.

View 7 Replies View Related

General :: Setting Current Directory In Init.d Boot Script

Jul 28, 2011

I have a jar file which can be executed by going to the directory and then running 'java -jar start.jar'. Start.jar is the Solr example server.I would like to create a boot script in init.d for this, but have little experience with this.Is there a way to specify the 'current' directory in a boot script?

View 1 Replies View Related

Debian Configuration :: Xen Boot Stuck At Initramfs

Dec 16, 2015

Been trying to follow this tutorial [URL] ..... and when I reboot and select the entry with Xen GRUB hangs at loading initial ramdisk ....

View 0 Replies View Related

Ubuntu Installation :: 10.10 Upgrade Won't Boot Initramfs

Dec 13, 2010

I upgrade to 10.10, and now I can't boot normally. The only way I can get X going is if I boot to the previous kernel's recovery mode and choose failsafeX.

In an attempt to fix this, I ran

Code:
dpkg-reconfigure -phigh -a

However, I get this,

Code:
update-initramfs: Generating /boot/initrd.img-2.6.35-23-generic
stop: Unknown instance:
dpkg-maintscript-helper: error: couldn't identify the package

View 1 Replies View Related

Ubuntu :: Boot Fail, Initramfs Starts?

May 1, 2011

I have been using 11.04 for about a day, I go to boot up and it goes into busybox initramfs instead of booting into Ubuntu. The options to my boot in grub, and the errors I get when booting into initramfs are in the pictures attached to this post.

View 2 Replies View Related

Ubuntu :: Restarts When Try To Boot?

Feb 8, 2011

My computer is set up as a dual boot into windows 7 and ubuntu, but since I installed the latest updates, every time hit enter to boot into ubuntu the computer just restarts. It doesn't even go into the ubuntu grub loader like it usually does

View 7 Replies View Related

Ubuntu :: Boot: Karmic Won't Start, Dropping Into Initramfs?

Jan 23, 2010

I'm running Karmic on an AMD 64 on Efficient PC (Re-badged Asus Anubis), with Nvidia Corporation MCP51 High Definition Audio card.In recent days my system has been freezing, although this has generally been solved with a reboot.Now, however, GRUB is failing to start Karmic, and is dropping me into initramfs.I have tried a systemrescue cd (see here http://www.sysresccd.org/Main_Page), which when I switch on slows down at

ATA1 port is slow to respond
forcing hard reset
comreset failed errno=-16

[code]....

View 3 Replies View Related

General :: Boot Linux System On USB-stick

Apr 20, 2011

I have installed a Debian System on a removable USB-drive just the same way I would do it for a normal harddisk drive.All was working fine until I tried to boot the system.I have set up the USB-stick as first boot device in the BIOS, and written grub in the MBR of the stick.When trying to boot it, "Grub Error 2" will always be risen (I am using grub-0.98).

The only drive I have installed except the USB-stick is a SATA-harddisk, so normally the USB-stick is called /dev/sdb.I have already tried changing root in menu.lst to (hd0,0) or the kernel root to /dev/sda1 but nothing seems to help.

View 4 Replies View Related

General :: Creating A Minimalist Boot USB Stick?

Sep 27, 2010

I'd like to create a bootable USB drive containing a Linux minimalist: In fact I want to do is boot from the USB (compatible BIOS), as a minimalist Linux starts, and runs a file Shell, then at the end of this execution, displaying a root prompt (command line) to the execution of some commands summary.

- No GUI

- Network access required

- Minimal Linux system (the minimum necessary to boot and run a file Shell), with selection of preloaded commands (grep, pico, cat, ...)

I saw on the net that is doable with DOS on Windows, but nothing on Linux. So I need help, because everything I find is related to an existing system (Ubuntu, Debian, ...), I want a gold basis the most minimalist and lightweight as possible. What I presented is feasible or not? If yes, how to achieve it?

[code]....

View 10 Replies View Related

Debian Hardware :: VPS Will Boot On Initramfs After Faulty Hard Disk

Apr 5, 2014

I am not sure if this is the correct section but it has to do with a faulty HD. So, the datacenter confirmed that the HD needs to be changed. They put it back and asked me when they should replace it. I told them to wait a bit.

Since then, one of the VPS hosted in this server is booting on "initramfs"

This is the screen. [URL] ....

fsck is not working.

View 0 Replies View Related

Ubuntu :: Hardy Boot Failed After Update Drop To Initramfs

Apr 5, 2011

just installed hardy after I removed Maverick since it doesn't support my ati graphics. I installed it inside my windows xp pro and run smoothly after installation, added couple of widgets and so on... after I restarted it the next time, a balloon showed on top saying 113 or so updates are available, so I updated it.

After update I reboot my lappy and it won't get to my ubuntu anymore but works fine with my xp. I tried several searches on the net to find the solution but can't really figure it out. I just tried running Boot info script as it might help experts figure out what's wrong with my box and here's what it shows:

[Code]....

View 7 Replies View Related

General :: PClinuxOS Hangs On Boot - Kernal Panic- Not Syncing - Attempted To Kill Init

Jun 7, 2010

I recently installed new hard drive and cloned old hard drive software onto it. The bootloader installs either linux or other operating system. Ever since the cloning, boot hangs. Words in the thread title are the last to appear before everything grinds to a halt. Just before the kernal panic message appears, "Initrd finished" is last line. Will have to try booting again to find more info before this.

View 7 Replies View Related

Ubuntu Installation :: Restarts On Boot After Upgrade?

Nov 1, 2010

I had perfectly working lucid on my laptop (64 bit) which I installed from a live CD not wubi. I tried to upgrade with update-manager and everythingooked fine until I accidentally updated compiz from the cache before everything else finished. this made compiz stop working completely, which also broke metacity. I tried to fix this with multiple things: Downgrading compiz (failed to apply changes), sudo apt-get install -f, finishing the upgrade (see the following).

during the applying changes stage of the upgrade i got an error with almost every package it tried to apply (sorry I don't know what, but it said something about 'this package failed to upgrade and may be left in a broken state'. I let the upgrade finished and at the end it said 'Upgrade Finished but not all changes were successfully applied' and I shut down the computer. when I turned it back on everything looked fine until I past to the usplash screen. Then the screen went black, a bunch of error messages scrolled by too fast to read, and my system rebooted.

I tried recovery mode and another kernel choice at grub but all did basically the same thing. Windows still works as much as it usually does but I want my ubuntu back! I am OK with doing a fresh install if I can somehow recover a small amount of my data in my home folder. If you can tell me how to get into ubuntu from windows or something that would be great but I also need to know how to decrypt my home folder (I used the encrypting option in the installer)

View 2 Replies View Related

Red Hat :: System Won't Boot - Just Says GRUB And Restarts / Sort It?

Jan 20, 2009

I updated a RHEL 4 system today using up2date and when the system rebooted it just said "GRUB" on the screen for a few seconds and then restarted (and did this over and over and over).

I booted from a rescue CD and was going to reinstall grub.

Here's the kicker: this machine has two hard drives configured with software RAID 1, and I don't want to screw up the mirroring by tinkering with grub.

/etc/fstab shows that /boot is at /dev/md0 but "/sbin/grub-install /dev/md0" doesn't work ("/dev/md0 does not have any corresponding BIOS drive").

I have a bad feeling that if I do "/sbin/grub-install /dev/hda1" that I'm going to screw up my mirroring.

View 2 Replies View Related

Hardware :: Boot - Gave Up Waiting For Root Device - Initramfs - For Ubuntu 9.10

Jun 21, 2010

ubuntu 9.10 is not booting shows Gave up waiting for root device.", (initramfs). how to boot normally from this problem. The problem is coming from installed system.

View 2 Replies View Related

General :: Kernel Panic - Not Syncing - No Init Found - Try Passing Init - Option To Kernel

Apr 19, 2011

Im am building a Linux distro. It will be very tiny and fast.

I only have a minimal linuxkernel (bzImage) who is 1,2 mb big. And then I have Busybox who is 174,6 kb big.

The commands in busybox is: cd, ls, mkdir, rmdir, wget, httpd, clear, rm, poweroff, halt, reboot, fdisk, mount, umount, free, and cp.

When I compiled the kernel i use initramfs/initrd function and point it to a folder where initrd/initramfs source is.

The kernel works OK with others initramfs/initrd files. But not with my own.

Quote:

Here is how the end of the kernelcomplie look like.

Quote:

Here is my init file who is the initrd/initramfs source.

Quote:

The initramfs folder contains "bin" (folder) and "init" a file. No more.

The problem is that the kernel cannot find/read init file.

View 4 Replies View Related

Ubuntu Installation :: Update-initramfs: Generating /boot/initrd.img-2.6.36-020636-generic Hangs?

Nov 1, 2010

I just removed a proprietary (fglrx ) driver which didnt work out well.Now all my updates hanging on: Setting up initramfs-tools (0.98.1ubuntu6) ...update-initramfs: deferring update (trigger activated)Setting up linux-image-2.6.36-020636-generic (2.6.36-020636.201010210905) ...Running depmod.update-initramfs: Generating /boot/initrd.img-2.6.36-020636-genericAnd I dont know how to solve it...besides a clean install.

View 9 Replies View Related

Ubuntu :: Initramfs Boot Error - Mount: Mounting /dev /root/sys Failed: No Such File Or Directory

Feb 19, 2011

Okay, so on occasion when I boot into ubuntu I get this error

[mount: mounting /dev /root/dev failed: no such file or directory]
[mount: mounting /dev /root/sys failed: no such file or directory]
[mount: mounting /dev /root/proc failed: no such file or directory]

[code]...

I get the error when I open any of the kernel versions or any recovery mode. Ubuntu 10.10 Desktop is the only OS installed on the computer, which is a Lenovo S10-3. I can eventually get it to go away, sometimes by repeatedly unplugging it and plugging it back in, and sometimes I will boot into GParted, do nothing, then restart and it will work.I have found some solutions online, but all of them involve the error happening as a result of dual booting with Windows.I have made no major system changes recently, so I can't see anything like that being the problem.

View 3 Replies View Related

Fedora Installation :: Grub / Try To Boot - Flashes A Quick Blue Screen & Restarts

Jun 26, 2011

I don't really have any Linux experience. But I wanted to try it out. Now I'm afraid I did not set this up properly. Grub gives me 3 options:

Fedora (2.6.38.8-32.fc15.x86_64)
Fedora (2.6.38.8-26.rc1.fc15.x86_64)
Other

When I select <Other> to boot into windows... it starts to try to boot... but then flashes a quick blue screen & restarts. I tried to boot into Window's normal mode, safe mode, and command line... all just restart fdisk -l gives the following:

[Code]....

View 4 Replies View Related

Ubuntu :: Rc.local Is Not Executing On Boot?

Jul 5, 2010

using ubuntu-10.04/gnome

i have my printer and localhost startup written in rc.local but it does not execute on boot/reboot

that is the report i could make (yet learning about how to use linux)

Code:
r@r-desktop:~$ ls /etc/rc.local -l
-rwxr-xr-x 1 root root 540 2010-07-05 14:26 /etc/rc.local
r@r-desktop:~$ cat /etc/rc.local
#!/bin/sh -e

[Code].....

View 4 Replies View Related

OpenSUSE Install :: Executing Command At Boot?

Apr 7, 2010

im searching for this answer now a pretty long time and i know that many similar questions where asked and i all looked themIm trying to run a the command "vncserver" on our opensuse11.2 server when its booted.many posts here endet in "put a sh script into your /kde4/Autostart" but that didtn help for me because the server runs without a screen and normally nobody is logged in. When i logged in that worked fine.i also tried to add the command "vncserver" to "/etc/init.d/boot.local " but that didnt work too. i think its to early executed to work.i also tried to activate the service to start up at boot with chkconfig vncserver start but the service vncserver is "unknown". when i type vncserver into the console after logging in everything is alright.you see i really tried a lot and searched a long time at google and in this forum but nothing worked

View 4 Replies View Related

Server :: Executing A Script At Boot Time?

Apr 22, 2011

Execute a script as a non-root user at boot time. The script lives in /home/sbrown/scripts and has the executable bits set. If I run the script locally in the shell it behaves as normal, but will not at boot time It's a very simple 2 line script:

#!/bin/bash
# Starts IRSSI in a screen session
sudo -u sbrown screen -S irssi irssi

Here's WHAT DOESN'T work:

I put this in /etc/rc.local: sudo -u sbrown /home/sbrown/scripts/irssi_exec I also tried just copying the script to /etc/init.d/ and chowning it to root then ran update-rc.d irssi_exec defaults and rebooted. Still not working. This is on a Debian Squeeze box... what am I missing? Surely it should be simpler than this

View 3 Replies View Related

General :: Optimize The Boot Time - Modify Some Scripts Or Init Scripts?

May 14, 2010

How can I optimize the boot time of Linux? Should I modify some scripts or init scripts? If yes, what are the scripts? Can I modify the kernel source?

View 6 Replies View Related

General :: Skip Init Scripts - Boot Freezes At "setting System Clock"?

Aug 2, 2010

I have a debian system that's freezing in the boot sequence at "Setting system clock".Several sites I looked at recommended changing the init scripts to disallow hardware access to the clock. But, I can't boot! Is there a parameter I can pass to the kernel at boot so that it will skip init scripts?

View 2 Replies View Related

General :: "/sbin/init Does Not Exist" On Boot?

Nov 24, 2010

I am having some issues about every other time y to boot into Arch linux.it is installed on my third hard drive, and my grub from Fedora is what it boots from.about every other time i try to boot into it i get this error:

Code:
Waiting 10 seconds for device /dev/sdb3...
ext4-fs (sdb3): mounted filesystem with ordered data mode Opts: (null)

[code]...

View 15 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved