Fedora :: How To Mount Initramfs
Apr 25, 2010I try to mount initramfs-kernel-ver from boot directory.mount -t ramfs initramfs-kernel-ver /mnt/testbut i can't see any files.
View 1 RepliesI try to mount initramfs-kernel-ver from boot directory.mount -t ramfs initramfs-kernel-ver /mnt/testbut i can't see any files.
View 1 RepliesUploaded with ImageShack.us
Here was I get on my screen.
I don't know why this is happened. But before I rebooted, I could not see any content on Windows like update or shut-down (if I tried to install something and it asked for confirmation, that window was blank. Or before I shut down, I had to push enter, since that windows was blank.)
I don't think I installed anything and computer was working just fine before.
I don't want to reinstall everything again.
So i insert the ubuntu 10.10 in the dvd and boot it. The menu comes up and i choose to install ubuntu. After that it shows some black screens and this error:
(initramfs)mount:mounting/dev/loop0 on//filesystem.squashfs failed: Input/output error cannot mount /dev/loop0(/cdrom/casper/filesystem.squashfs)on//filesystem.squashfs
The disc aint scratched. I tried installing from Windows but i got another error.
And for some odd reason Ic ant make a removable startup disk:
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.
I have 2 Dell Inspirons 2200, I've installed F14 on in the past. Both laptops fail to initialize, I've verified media, and I'm able to boot the DVD on another system. The install fails at: Trying to unpack rootfs image as initramfs...
View 3 Replies View Relatedafter yesterday's update to kernel 2.6.35.10-72 my grub.conf didn't get updated and ll /boot shows that neither vmlinuz or initramfs exist for that kernel. uname -r though tells me I'm running 2.6.35.10-72.
How can I do that? and on another more reallystic matter how can I generate the missing files so I can manually update grub.conf?
I've had a hell of a time with an extremely unpredictable recently built computer. I don't even know where to start with thetory, so I'll try to share some key facts.Running Fc12It is a Gigabyte GA-EP45T-UD3LR. Reviews on NewEgg havee complaints about instability and it's lack of claimed DDR3 support. I had to use setting described by another reviewer to underclock my memory to get it to work. It has since passed memtest many times.I've encountered mutliple occasions of a complete system freeze.
Booting after freeze seems to require a random amount of restarts to get it to come up. Sometimes I have to hit the reset button 30+ times until I can get the log in prompt to come up.Right now, I have one SATA HDD, in IDE compatibility mode in the system. dropped the FC12 Stable dvd in, the very DVD I installed the current system with, to install it again on another partition. I get to the same point every time, where it hangs:"trying to unpack rootfs image as initramfs"Googling that didn't help me much, since it mostly seemed to address people messing with their own kernel builds.
If I choose "boot from local drive" on the options list from the install DVD, it goes to "PRESS ANY KEY TO REBOOT" with a blinking underscore cursor. Where when I boot normally, it will either give me JUST the blinking underscore alone, or the FC loading screen with no progress. I suspect this motherboard is a pile of **** and needs to be RMA'ed, or simply returned. Anyone care to support or reject that hypothesis?
Its annoying to unmount my flash drive twice.. its not a major problem actually but its kinda annoying , its whenever i plug-in my flash drive.. everything works well except when i need to un-mount it.. I usually unmount it twice using right-click of the mouse, then it mounts itself back, so i have to unmount it again.. Is there any way to control this? How do i setup the auto-mount option for USB flash drives?
View 1 Replies View RelatedI am using Ubuntu 9.10 and am facing an issue while booting up. It goes into initfs command prompt on one of the 4 kernels that show up in the boot menu. I tried to look around for a likely solution and hence did the following:1. ran "chkdsk c: /f" in my windows partition.2. Added "rootdelay=90" in "/boot/grub/menu.lst" file.This is how my /boot/grub/menu.lst file looks and the problem is with the kernel 2.6.31-20-generic:
title Ubuntu 9.10, kernel 2.6.31-20-generic
uuid ceacd229-2b68-41bf-a967-8ee470085fd8
kernel /boot/vmlinuz-2.6.31-20-generic root=UUID=ceacd229-2b68-41bf-a967-8ee470085fd8 ro quiet
[code]....
After installing Ubuntu 8.4 on an old laptop. Double boot w/ XP. I was brought to the terminal with "initramfs". I installed it through the windows partition and assigned it to partition F: which I made sure was reformatted before installation. I tried doing some commands but it seems to bring me nowhere.
View 1 Replies View RelatedI have one hard drive and one operating system on that one drive. No dual boot, no raid, no windows, no usb boot. Just 9.10 installed on one 40 gb drive. After trying the various techniques from this forum, I'm now stuck at Grub loading, error, grub rescue prompt. No menu list to choose from or edit (e).Here is the output of 'sudo fdisk -l'
Code:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 40.0 GB, 40000000000 bytes
[code]....
I am trying to learn how to modify the initramfs in a way which is so Ubuntu-friendly as possible. I do not just want to unpack it, change it and re-pack it, as my changes won't be kept when I upgrade my kernel next time.
What I want to do is: Add curl to the binaries available in the initramfs Add a script which is run after networking is set up which calls curl In case there is no "after networking" I have to setup networking myself using DHCP. There is a tiny client inside BusyBox if I am not mistaken. I have googled a lot to get this information. As well as looked trough more than a few books.
After copying a filesystem to be used as an image on a PXE server, is it possible to update that image's initramfs on the PXE server?
On PXE server, I added several ethernet modules/drivers to the following file:
/nfsroot/etc/initramfs-tools/modules
Before the changes will take effect, I need to run:
Code:
$ sudo update-initramfs -u
I'm finding myself in a situation where I am locked out of my machine (because of a initramfs that doesn't allow me to log in). I think I know where the problem is, but I do not know how to go about rebuilding an initrd file from another machine (especially since my second machine is running on a lower kernel version).
I have tried booting from a LiveCD, but that does not allow me to make any changes to /etc/update-initramfs/. Currently do not have a USB drive handy. How would one go about this?
Can i add a c program file to initramfs such that it runs when kernel loads and before root file system getting busy...
View 3 Replies View RelatedI am having trouble accessing my computer after abruptly shutting it down because it was booting off of a live CD and I just wanted it to boot of the HDD. When I try to boot up from the normal HDD I used to get a lot of errors about /dev/sda being not found, and then it went to an (initramfs) prompt, from which I could do pretty much nothing. I booted into a live CD, and basically I didn't need any of my data so I wanted to just get rid of the problem partition and reinstall. I attempted to delete the partition, but that didn't work, saying something about /dev/sda being busy (even though I had booted from a live CD and had not mounted the partition).
Anyhow, now when I try to boot from the HDD I get:
"Error: no such partition. grub rescue>"
Basically what I'm trying to do is just get rid of this partition and reinstall, but I keep getting errors about it being busy and not being able to delete the partition. Is there someone with a way to allow me to just blast this partition and reinstall? I've got a windows 7 partition on the same HDD and I'd really like to leave that one alone, but the ext4 and swap partition can just go.
I just did a simple debootstrap lenny /opt/lenny-chroot http://fpt.de.debian.org/debian There is no vmlinuz or initramfs under /opt/lenny-chroot/boot. What would be the next minimalistic necessary step to get it there?
View 1 Replies View RelatedI'm working on a custom Ubuntu 10.04 live cd, and I've found updating the Plymouth splash uses up a lot more disk space. The culprit seems to be the command update-initramfs -u, which is needed to apply the new splash image. I'm guessing it's making a new intrd image or something.
View 3 Replies View RelatedI'm trying to "repair" two Debian Lenny servers a friend of mine had installed and working fine, all of a sudden he calls and tells me the servers don't boot. He's getting this error messege on both, weird:
/bin/sh: can't access tty; job control turned off (initramfs)
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 RelatedWhy use nash instead of busybox in initrd and initramfs? I'm just looking for pros and cons of both really (and any other applications with similar functionality). I'm currently leaning towards busybox being the better option, why redhat and fedora use nash in their initrd.
View 2 Replies View RelatedI 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
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 RelatedI either installed Hardy heron or its predecessor by accident, but began running it exclusively. I did it way back when while trying to create a test drive disk, and I did not repartition the drive, because all my windoze NT stuff survived. I'm now 8.04. Yesterday I had a bunch of updates to do, did them, closed a ton of windows and then pulled up 3 open office files and each, when it came up said there wasn't enough space to save all needed information as they opened. I then closed them and one hung and froze the whole machine, leading me to do a reset. This is BEFORE rebooting from the updates.
Now when I boot into Ubuntu (I'm dual boot) I start to get the opening Ubuntu GUI screen but then get :
BusyBox V1.1.3 (Debian 1.1.1.3-5ubuntu12)built in shell (ash) line followed by:
initramfs)
I'm essentially a total noob, I've rarely used command line and not for a long time. I made a version 11.04 live disk, and it says that the file system is clean, but will not show me any of my old files, only the NT files and directories. I have a ton of unbacked up important data in Hardy Heron so I don't want to do an install from the 11.04 CD.
I've read several threads so far, and can't seem to find anything addressing this that I understand. The drive is a 160GB drive on an HP Pavilion dual core that has a 154GB NTFS boot partition, which is where I'm sure the Hardy Heron files are, and a 6GB FAT32 HP_RECOVERY partition that windoze lists ad drive D (the NTFS is C) The live disk says the FAT32 partition is /dev/sda1 and the NTFS is /dev/sda2
Where should I start? I've seen stuff about booting into recovery mode, but that isn't an option when I boot from the hard drive, and the only older ubuntu disk I have is for 7.something and generates "defective CD" type error messages.
I keep getting this error message when installing anything using the terminal or synaptic manager in ubuntu 10. I was installing pidgin when this message happened. The funny thing is pidgin did get installed and works fine. I am booting from a USB stick. I am using the perdition version which saves any changes i make to ubuntu on the USB stick.E: initramfs-tools: subprocess installed post-installation script returned error exit status 1E: bcmwl-kernel-source: subprocess installed post-installation script returned error exit status 1
View 4 Replies View RelatedFor 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:
When booting I am being dropped to initramfs/busy box heres the error: Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/mapper/dev-root does not exist. Dropping to a shell!
BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)
I have Debian Squeeze with linux-2.6.32-5-amd64Ok, so what I did is first changed fstab ext3 to ext4, rebooted, everything looked good. Then I enabled extents and other ext4 features on my root and home partitions using commands
tune2fs -O extents,uninit_bg,dir_index /dev/sda3
tune2fs -O extents,uninit_bg,dir_index /dev/sda4
then I ran e2fsck -fDC0 /dev/sda3
[code]....
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]....
I'm writing here because it's mainly a security issue even though it's rather kernel related.
I'm compiling my own vanilla kernel with an initramfs included in the bzImage. That image contains encryption keys for the rest of the system. Even though it's not for everybody the initramfs image can be extracted from the kernel, decompressed and the keys extracted.
I'm looking on a way to prevent this.