Booting without initrd - what am I missing [solved]

Can one use the contents of the system's kernel.img to determine exactly what needs to be built into the kernel to avoid booting with the initrd image, and boot to the kernel directly?
For example, initially, I found 5 modules in the image:
bsdtar -t -f /boot/kernel26-ck.img | grep ko
/lib/modules/2.6.39-ck/kernel/drivers/scsi/scsi_mod.ko.gz
/lib/modules/2.6.39-ck/kernel/drivers/ata/libata.ko.gz
/lib/modules/2.6.39-ck/kernel/drivers/ata/libahci.ko.gz
/lib/modules/2.6.39-ck/kernel/drivers/ata/ahci.ko.gz
/lib/modules/2.6.39-ck/kernel/drivers/scsi/sd_mod.ko.gz
I have since added them to the kernel.  After recompiling, I don't see any modules in my kernel26-ck.img at all, yet when I attempt to boot commenting out the initrd line in grub2, I keep getting this damn error, "VFS: unable to mount root fs on unknown block (0,0)" followed by a kernel panic.
Advice is welcomed!
$ bsdtar -t -f /boot/kernel26-ck.img
/proc
/sys
/dev
/bin
/sbin
/lib
/usr
/usr/bin
/usr/lib
/usr/sbin
/run
/dev/null
/dev/zero
/dev/console
/dev/mem
/bin/busybox
/lib/libc.so.6
/lib/libc-2.13.so
/lib/ld-linux-x86-64.so.2
/lib/ld-2.13.so
/sbin/modprobe
/sbin/blkid
/lib/libblkid.so.1
/lib/libblkid.so.1.1.0
/lib/libuuid.so.1
/lib/libuuid.so.1.3.0
/init_functions
/init
/config
/etc
/etc/modprobe.d
/etc/modprobe.d/usb-load-ehci-first.conf
/sbin/udevd
/lib/librt.so.1
/lib/librt-2.13.so
/lib/libpthread.so.0
/lib/libpthread-2.13.so
/sbin/udevadm
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/50-firmware.rules
/lib/udev/rules.d/50-udev-default.rules
/lib/udev/rules.d/60-persistent-storage.rules
/lib/udev/rules.d/80-drivers.rules
/lib/udev/firmware
/lib/udev/ata_id
/lib/udev/path_id
/lib/udev/scsi_id
/lib/udev/usb_id
/lib/udev/load-modules.sh
/etc/udev
/etc/udev/udev.conf
/hooks
/hooks/udev
Here is my grub line:
menuentry 'Arch Linux, with Linux vmlinuz26-ck' --class archlinux --class gnu-linux --class gnu --class os {
load_video
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root 0fc7ed20-0b1e-4e26-860c-6e63dd3a35ea
echo 'Loading Linux vmlinuz26-ck ...'
linux /vmlinuz26-ck root=/dev/disk/by-uuid/6f90540d-6153-48e3-a5e7-58f09b65c5cf ro
Last edited by graysky (2011-06-11 11:12:30)

@bang - yes.
EDIT: I found out my problem: grub2 uses uuids that are different from what is listed in ls -l /dev/disk/by-uuid/  Is this a bug in upstream?  If I replace the uuid that grub2 generated for my root disk with /dev/sdb1 I boot just fine.
EDIT2: When I inspect my /boot/grub/grub.cfg the uuids listed there are correct, however, when I read the error message grub2 gives, every uuid it shows as a "correct" one is different from the output of ls -l /dev/disk/by-uuid/.
VFS: Cannot open root device "disk/by-uuid/xxx"
Please append a correct "root=" boot optionl here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
WTF?
Last edited by graysky (2011-06-11 10:50:31)

Similar Messages

  • Booting without initrd?

    So, I recently switched to systemd.
    According to the Wiki I could safely remove the /-entry in /etc/fstab, because grub2 can handle mounting the root-partition. This is correct. Further down on the same wiki-page it it mentioned that "(initramfs) takes care of recognizing your root filesystem and mounting it".
    This got me thinking - Is it possible to boot without using an initramfs?
    According to this link it is, but I can't figure out how to do it. I tried booting with the following configuration, but got errors about a missing root-partition (my root is sda5):
    menuentry 'Arch Linux - Custom initramfs' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-edfcc182-d233-431
    5-aefd-0c11f80ff4a9' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 61fc73d6-c126-44c4-bf45-98ecbe06c96d
    else
    search --no-floppy --fs-uuid --set=root 61fc73d6-c126-44c4-bf45-98ecbe06c96d
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=sda5 rootfstype=ext4 rw quiet libahci.ignore_sss=1 raid=noautodetect init=/usr/lib/systemd/systemd
    #echo 'Loading initial ramdisk ...'
    #initrd /initramfs-linux-tiny.img
    Is it possible to do what I'm trying to do, without compiling my own kernel?

    grub does not mount your root device. It has no concept of mount namespaces like the Linux kernel does. The wiki states that it's thanks to mkinitcpio's fsck hook, and totally unrelated to any work your bootloader does. The only mention of a bootloader in this text is where it mentions that you can change "ro" to "rw".
    The initramfs mounts your root device. If you have no initramfs, then your kernel must have, compiled in, support for your storage bus (SATA, PATA, SCSI, etc), support for your block device driver (very likely using the sd_mod driver), and support for your filesystem. With all these things available, you can remove the initrd line from your bootloader, and the kernel will mount your root partition, assuming it can understand the declaration. That is, it will understand /dev/sda2, but not something like /dev/disk/by-label/myroot or LABEL=myroot. Interestingly, it will understand PARTUUID=123456... thanks to some patchwork from the ChromeOS team.
    All this said, the stock ARCH kernel is incapable of running without an initramfs. You'll need to compile your own.

  • [Solved ?] Arch on Alienware 14, can't boot without nomodeset

    Hello everybody,
    I just got a new Alienware 14, installed Lubuntu and Ubuntu with which I had various problems, including not being able to boot without the "nomodeset" option.
    So I decided to migrate to Arch, followed the beginners guide word for word and everything worked fine, including uefi boot with gummiboot but
    even here (obviously maybe) I can't boot without the nomodeset option.
    What happens is that the screen goes black just after gummiboot has finished its work, and (obviously) if I use "nomodeset" I can't start X.
    The computer in question has an intel i7 4700M and nvidia gt 750M.
       ~ lspci | grep VGA
       00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
       01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [Geforce GT 750M] (rev a1)
    I followed the Intel graphics installation guide https://wiki.archlinux.org/index.php/Intel and tried the suggestions on "Troubleshooting blank screen during boot, when "loading modules" but nothing.
    So I tried installing bumblebee and the proprietary nvidia drivers https://wiki.archlinux.org/index.php/Bumblebee but again, same problem...
    Im I doing something stupid?
    Any log/command output you may need to help me?
    Thanks in advance
    jack
    Last edited by jacopo-canton (2013-10-12 12:45:24)

    so, it appears that, as @Dheart told me, this is a bug in 3.11 kernel which prevents
    the brightness settings to be correctly handled when KMS kicks in.
    for me simply adding       acpi_backlight=vendor
    to the kernel command line solved the problem.

  • HT1436 My Power Mac G5 will not fully boot without safe mode, it only comes to a blue screen where my cursor duplicates in to 2, (one is frozen, one can move by moving the mouse). What is my problem, and how do I fix it?

    My Power Mac G5 will not fully boot without safe mode, it only comes to a blue screen where my cursor duplicates in to 2, (one is frozen, one can move by moving the mouse). What is my problem, and how do I fix it?

    Great clue Lukas...
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • CSS experts, please show me what I'm missing... [SOLVED]

    I want to know how Firefox knows the difference between certain code surrounding Arch's stuff. For instance, the time and date stamp above every post here. This is an example:
    <h2><span><span class="conr">#1 </span><a href="viewtopic.php?pid=674509#p674509">2009-12-19 12:26:19</a></span></h2>
    and from the wiki:
    <a name="Getting_Started" id="Getting_Started"></a><h2> <span class="mw-headline"><a href="/index.php/Getting_Started" title="Getting Started">Getting Started</a></span></h2>
    Both of these pick up on the h2 settings I have in a CSS file that I'm putting together:
    h1,h2 {
    font-family:"DejaVu Sans" !important;
    font-weight:bold !important;
    font-size:14px !important;
    Firefox doesn't apply the bold settings to the first example but does to the second. This is exactly what I want. If I add another entry:
    h2 span {
    font-family:"DejaVu Sans" !important;
    font-weight:normal !important;
    font-size:13px !important;
    Then the bold goes off on both of them. I want a generic CSS file that has the time and date normal and the wiki entries bold. Firefox does this automatically. What am I missing?
    ... be back in 20 hours ...

    Mh, I'm sure you know about the tree structure of HTML. Please excuse if tell you things you already know, but allow me to talk about how CSS rules are applied.
    <h2>
    <span>
    <span class="conr">#1 </span>
    <a href="viewtopic.php?pid=674509#p674509">2009-12-19 12:26:19</a>
    </span>
    </h2>
    What CSS does is applying the CSS rules for each element/selector. This means first it will apply the rules for h2, then the rules for span and at last the rules for the class conr or the element a respectively. If any properties already exists, they will be overwritten when applying the rules of a more specific element. If multiple rules apply (for instance multiple classes with conflicting properties), the !important will help the browser to decide which rule to apply.
    In your case I guess that there are rules for the class conr or the span element which conflict with your desired setting. Since you only change the rules for h2, the rules of those more inner elements/attributes take precedence.

  • How to tell what fonts are missing in a Photosohp CS5 document?

    Hello!  I have received some work from a graphic designer.  I need to modify some of the text in the document.  When I open the document I get an error message:
    Some text layers might need to be updated before they can be used for vector based output.  Do you want to update these layers now?  [Update] [No]
    If I click [Update] it replaces the font with Myriad Pro.  If I click [No] the text looks the way the designer intended, but I have the exclamation mark-triangle symbol over the layer with the text.  If I try to edit the text I get another warning:
    Editing or rendering the text layer "Text Layer" will cause its layout to change.  Continue?  [Cancel]  [OK]
    The same behavior described above occurs.  If I click [Cancel] I obviously can't edit the text.  If I click [OK] it changes the font to Myriad Pro.
    I would like to determine what font the layer is using.  I could swear that previous versions of Photoshop would tell me what fonts were missing when I opened a document.  I can't use the text tool to select the text without it changing the font.  Other posts have mentioned using the text tool to look at the text drop-down to find a greyed-out font which indicates the missing font.  I do not have that.  I only have perhaps 200 fonts installed.  Can anyone tell me how to determine what fonts a .PSD document is using?  I would prefer not to bug the graphic designer if possible.  Thanks much!
    ~ Dan

    Not sure why you are getting ""Font is present on the system but requires a layout change.", usually you do not get that instead the name of the font shows.
    We use extensis Universal Type Client, so the fonts load automatically upon opening files, and never really get missing fonts in Photoshop.
    Actually fontbook has auto font loading if you want to give that a try. Fontbook >> Preferences

  • HT4818 after installing boot camp 4 on mountain lion " Missing operating system"

    Hello
    I hade a small Windows 7 partition , so after updating to mountain lion , I wanted resize win partition .
    I made an image of it , then deleted win partition from utility disk , ( wrong idea )
    I didn’t notice that boot camp  could erase win partition , anyway I have tried several times , and always after reboot boot camp
    I get the same
    Missing operating system .
    If I boot from dvd install win or if i boot from the boot win partition.
    hd and partitions looks OK to utility disk
    Any idea to fix the problem ?

    I presume that you've followed the instructions for sideloading the iMac Windows drivers into your install via USB stick? (wasn't aware the EFI recognized the SD slot as storage on boot. Now i know)
    I always found more success in just slipstreaming the drivers and install.xml file onto a custom Win7 DVD rather than the USB approach when trying with my Late 2009 27" iMac. The Win7 installer needs that enclosed .xml file in the driver package to tell it where to find the drivers so that they be loaded when the Win7 image extracts itself.
    If you're using mountain lion, then you should be receiving the proper Win7 driver set. If you wanted to create a custom image, then you can use an ISO file, the driver package and disk utility to make something you can use. Either that or you learn what edits your install.xml file needs to point the installer properly and check it manually.
    I don't know what links you have so i'll just include everything:
    Installing boot camp on a Late 2009 iMac:
    http://support.apple.com/kb/TS3173
    Direct link to Late 2009 iMac-specific Windows drivers.
    http://support.apple.com/kb/DL995
    I'd try a USB stick and the iMac-specific driver set. It should steer your insolent windows installer correctly.
    Hope this helps.

  • Intel D2700DC + Arch won't boot without display

    I've faced really wierd (to me) problem running Arch as mini webserver on the Intel D2700DC mini-ITX board with Atom D2700 integrated and NM10 Express chipset.
    I successfully installed the system, configured network and started sshd to continue setting up other services remotely via ssh console. Then I disconnected the keyboard and display from the case and put it under the table. After that I was quiet surprised that the system was not starting up anymore.
    After some investigation I've found that the system is not booting if no display is attached to the DVI port of the motherboard. If I start the system with display disconnected, I can hear one beep that notifies about successful BIOS POST, HDD led blinks 2-3 times, and then just nothing happens. System isn't booting up. If I attach the display right after that - nothing is seen on the screen, and display is immediately falling into sleep mode. Keyboard is still active though, and if I press ctrl+alt+del - the system is restarting, and, if display was just connected, it boots ok then. Also it boots fine from the cold state if the display was attached to the DVI port at the time of powering on.
    As I can assume from the timings and HDD led blinking, the boot process stops right after GRUB is loaded. There's nothing in system log, cause it seems that boot hangs just before the kernel is loaded by GRUB. I'm really stuck and don't know how to work around this situation, because if the display was disconnected when system was powered on - then there's no way to see anything on the screen until next reboot, and if the display was connected - then the system boots OK.
    One more thing to notice:
    There was an old CentOS installation on the HDD, to which I installed Arch Linux. I've tried to boot it once or twice before installing Arch, and, as I could remember, it could boot up without display connected, on the very same hardware. So I suppose it's definitely something in Arch that is preventing the system to boot without the display.
    I guess that when no display is connected at boot time, NM10 chipset completely disables onboard video, and because of this we can't see anything on the display until the system is restarted. But this somehow affects Arch, so it can't boot without any video hardware present.
    Last edited by rand256 (2012-05-10 10:23:28)

    I'm afraid there's no such option, but it looks like arch isn't booting just because no graphics card is detected in the system when display it disabled during powering up.
    There is a couple of similar topics about some other linux distros can't boot without video card inserted ([1], [2]) with some recommendations on what to do in such a case.
    I've followed them - including enabling serial console in /etc/inittab, setting nomodeset in kernel line in grub's menu.lst, checking for enabled splash-screens... but that didn't help.
    Does anyone know what options should be tuned in order to boot Arch without any active graphics card present in the system hardware?

  • Is it possible to resume from hibernate without initrd?

    I succesfully build kernel without initrd dependency. It works great. Except hibernation. It can hibernate (or suspend-to-ram) but resume is not executed. It boots normally. So is it possible to resume without initrd?

    Hi
    As far as I know you have to press the power button in order to resume from sleep mode.
    I didnt find any option or way in order to be able to wakeup the notebook pressing any keyboard button.
    Greets

  • Make OSX SD/USB bootable lock, i.e., make Mac unable to boot without SD card.

    Hello!
    I'm trying to find a way to make my Macbook unable to boot without an external media to initialize the computer. Or at least a way to remove the harddrives from the listed boot options by hitting the option/alt key on bootup. I want to remove those options and force the computer to boot off the removable media. Is this possible, or has it been attempted?

    The boot disk is specified in System Preferences>Startup Disk
    What do you see when you boot to recovery and look at the startup disk and look at the disk(s) in disk utility?
    OS X: About OS X Recovery
    Try reinstalling via Recovery as stated in the above.
    Do you have access to another Mac? If so can connect via FireWire bd access the Mini's disk via FW target disk mode
    How to use and troubleshoot FireWire target disk mode

  • HT4500 I downloaded my hard drive contents from a hard drive Holder to my lap top. I have all of those files but now I cannot find the original pictures and such from the computer before the trasnfer. Hoe do I get them back without losing what I just tran

    I down loaded my entire contents of my desk top hard drive to my lap top. Now I don't know where my original files and pictures are. How do I find them or down load just what I am missing with out losing what I just installed ?

    Hi Again, Well I found Carbon Copy Clone on my old hard drive so I didn't even need to download it. I just dragged it onto my desktop and I did as you said.  Using CCC and within the folder of users which has my folder of old hard drive there now shows a file called.autodiskmounted (whatever that means) and then it has a version of my hard drive below that called hard drive 1, which has nothing, but above both of these folders, there is a folder with an old user name which shows up empty on the hard drive when I search it, but actually shows lots of folders on the CCC. So without getting too excited, it lists some folders and amongst them are folders I cant see normally in the old hard drive, like my safari settings and favourites, and movies music and pictures. However in the movies pictures and music folders I can only see a  blackish square that looks a bit like a blank screen with the text.localised after it .
    Does this mean anything to you / Is there  apossibility they may be there? When I selected my new laptop as the destination i got this message below so I did not proceed any further as I'm not sure it will back up the files I need..
    To avoid system instability, CCC has applied a filter that will exclude system files from the backup task.
    If you would like to restore your Mac OS X system files, restart your computer from the backup volume and try the backup task again.
    If you are trying to restore a single item or folder, click the "?" button for additional suggestions.
    Is it worth giving it a try? Thanks for this btw, its further than I've got before!!

  • I am unable to access my email. I can sign in with my password, then a message comes up that says "The plug-in for this page has been disabled. Click here to manage your plug-ins." All plug-ins listed are enabled. What am I missing?

    I am unable to access my email from Charter.net. I can sign in with my password, then a message comes up which says "The plug-in for this page has been disabled. Click here to manage your plug-ins." All of my plug-ins are enabled. What am I missing?

    After a great deal of searching I ran across the suggestion to disable all plug-ins and then, one by one, enable them until finally the problem was solved. I am not sure which plug-in was causing the problem, as I am satisfied to have the problem solved. I am going to leave the rest of the plug-in disabled.

  • "What U Hear" Missing in Win7

    '"What U Hear" Missing in Win7? I have two separate Sound Blaster X-FI Extreme Audio soundcards (though of different makes) and the same issue with both? - ever since upgrading to Windows 7 neither card, after properly installed and with latest driver installed, will display "What U hear" in my audio stack.
    A point of clarrification on the cards:
    One is a PCI SB0790, the other however is manufactured by MSI, and is a PCIe MS 432, but still bears the creative labs logo, as well as the X-FI Extreme Audio product name and it also has a driver put out by Creative labs so it should still be valid to bring up here.
    I've run through a few tutorials I found online such as <a rel="nofollow" href="http://www.sevenforums.com/tutorials/20595-what-u-hear-recording-enable.html"]http://www.sevenforums.com/tutorials/20595-what-u-hear-recording-enable.html[/url] but to no avail - neither "What U Hear" or "Stero Mixer" show up in the list of available recording devices. Prior to installing Win7 I was primarily using the MSI card and "What U Hear" was indeed available in my audio stack.
    Any suggestions?

    +Re: "What U Hear" Missing in Win7G ?
    Agreed! I have an X-FI Extreme, upgraded to win 7, installed the latest audio drivers, and have just spent the last 2 hours trying to get my "what u hear" back without any luck at all.
    I'll also mention that "disabled devices" are shown in the recording options, so that is not the issue.
    I was using vista before with the exact same hardware and "what u hear" was available. The driver version was 5.2..200 dated 4/02/07 ... The current driver for windows-7 is 5.2..208 dated 3/08/2009. Maybe installing an older driver would do the trick? I don't know if that would work as I haven't been able to find the old driver I was using for download (just been bombarded with broken links). I'm also guessing that you'll be held hostage to the latest drivers in windows 7.
    Get the latest drivers to lose functionality? Sounds like something apple would pull on you!
    If anyone has a solution for this, please let us know, otherwise I'll be rolling all the way back to good old XP again.

  • Deleting Schemas:  What am I missing?

    Hi.
    I am on 11.2.0.3.0 - 64bit Production.
    I have deleted a schema using DBMS_XMLSCHEMA.DELETESSCHEMA and delete_option 3.
    I have then also deleted the resource using DBMS_XDB.DELETERESOURCE.
    I then execute the XMLTYPE schemaValidate method on a record that was based on the schema just deleted and the result is an error that could only occur if the schema as still there (being more than one occurrence of an element that must have only one occurrence).
    What am I missing?
    Context:  This is a development database and I am trying to replace an incorrect schema without having to spend a lot of time (slow performing system) migrating data using that schema.

    OK.  I have formulated a hypothesis while trying to get together a test case for this forum and Oracle support.
    Originally I replaced the XSD only as a resource using the DBMS_XDB.DELETERESOURCE method.  Life went on and eventually testing hit an error that lead me to believe I should have done something more.
    I then discovered the DBMS_XMLSCHEMA.DELETESSCHEMA method and tried to use that in conjunction with the DBMS_XDB.DELETERESOURCE method.  It was after this, when I could see the schema said one thing but the XMLTYPE schemaValidate method said something different, that I started this discussion and raised an Oracle Support call.
    Since then, I have been restoring the DB and repeating tests in order to produce a test case, but everything has then been working as expected.
    Hypothesis:  Removing the XSD originally using only the DBMS_XDB.DELETERESOURCE method left the system in some sort of inconsistent state that the subsequent use of the DBMS_XMLSCHEMA.DELETESSCHEMA method could not correct.
    Thanks to anyone who spent some time giving this some consideration.

  • Clicking on Firefox's shortcut to specific profile when it's already open doesn't work. What am I missing?

    Well, that's a hard problem to describe in one sentence.
    I'm currently using windows. I have 2 Firefox profiles, and each of them have desktop shortcuts to:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -no-remote -P "Developer"
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -no-remote -P "Lazy"
    They work just fine. The thing is: if the profile is already active and I click the shortcut, I get a "Firefox already running but not responding" error (Firefox just fails to open. The current opened window still works). The behavior I want is either maximize/focus the corresponding window, or open a new window with the same profile. Is it possible to achieve this? What am I missing?
    I don't know if I'm being clear. In other words:
    - Desktop shortcut to specific profile works fine
    - While profile is open, double click the same desktop shortcut
    - Receive a "Firefox already running" error popup
    - Press ok, current profile still working but new window is not opened as expected

    ''cor-el [[#answer-676907|said]]''
    <blockquote>
    You can't open a link if you use the -no-remote command line switch.
    You will have to start one profile without the -no-remote switch.
    Then you can open external links in that profile instance (but not in the other).
    </blockquote>
    Huh. If I didn't know better I would bet that I had tried this and hadn't worked. Thanks for the answer.

Maybe you are looking for