Probably broken initrd, how to create one anew under Arch

Hi again,
I managed to install Arch on my USB flash drive which I partitioned /dev/sdb1 to be /boot,
/dev/sdb2 = PV of vgarch with one lv_root and one lv_var, and swap as /dev/sdb5 (first  partition in extended part.)
The FTP install went fine after I had mounted /boot and the LVs / and /var.
I also successfully ran the setup afterwards, editing each config file, even those where I didn't apply any modifications.
Finally, I installed grub in the MBR of the USB drive, viz. /dev/sdb.
When asked during the configuration what modules I would require during boot
I confirmed LVM, RAID and included dm-mod manually in the MODULES array.
Nevertheless, the initial RAM disk must have been created incorrectly.
Because when I boot from the stick
the grub menu appears and when the default entry gets started I get the error message:
Booting 'Arch Linux'
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz26 root=/dev/mapper/vgarch-lv_root ro
Error 15: File not found
Press any key to continue...
I know that something must have gone wrong while createing the initrd file.
Sorry, right now I cannot even mount my USB stick in the running Xubuntu from where I write this posting.
The reason is pretty daft, as I was too unwary.
Being used to the RHEL/CentOS initrd image files (where absolute path names are stripped)
I instantly did the following mess and buggered up my running Linux.
# mkdir /tmp/arch
# cd /tmp/arch
# gzip -dc /media/disk/kernel26.img | cpio -di
Ouch, this overrode many important binaries
I should have first piped it into
... | cpio -ti | less
or at least
... | cpio -di --no-absolute-filenames
Did I mention that I haven't made a backup
Never mind, this is a surf only installation anyway which I quickly can replace.
After having extracted the cpio image with stripped absolute paths I looked at the init script.
On RHEL/CentOS there is the mkinitrd script to recreate the initial RAM disk more easily
than from scratch.
Exists something similar under Arch?
Last edited by archIbald (2008-08-31 22:20:09)

MKINITCPIO(5)                             MKINITCPIO(5)
NAME
       mkinitcpio - Create an initial ramdisk environment
SYNOPSIS
       mkinitcpio [OPTIONS]
DESCRIPTION
       Creates an initial ramdisk environment for booting the linux kernel.
       The initial ramdisk is in essence a very small environment (early
       userspace) which loads various kernel modules and sets up necessary
       things before handing over control to init. This makes it possible to
       have, for example, encrypted root filesystems and root filesystems on a
       software RAID array. mkinitcpio allows for easy extension with custom
       hooks, has autodetection at runtime, and many other features.
OPTIONS
       -c config
       Use config file to generate the ramdisk. Default:
       /etc/mkinitcpio.conf
       -k kernelversion
       Use kernelversion. Default is the current running kernel.
       -s filelist
       Saves a list of all the files in the initial ramdisk in filelist.
       Default: no; This means the filelist will not be retained if this
       option isn´t specified. Useful for debugging purposes.
       -b basedir
       Use basedir as a starting point for gathering information about the
       currently running system. Default: /.
       -g filename
       Generate a CPIO image as filename. Default: no; this means nothing
       will be written to the filesystem unless this option is specified.
       -a filelist
       Append to an existing filelist. Default no.
       -p preset
       Build initial ramdisk according to specified preset. Presets are
       found in /etc/mkinitcpio.d
       -m message
       Print message before passing control to kinit.
       -S hooks
       Skip hooks when generating the image. Several hooks should be
       comma-separated.
       -v
       Verbose output. Outputs more information about what´s happening
       during creation of the ramdisk.
       -M
       Display modules found via autodetection. mkinitcpio will
       automatically try to determine which kernel modules are needed to
       start your computer. This option lists which modules were detected.
       -L
       List all available hooks.
       -H hookname
       Output help for hookname hookname
       -h
       Output a short overview of available command-line switches.
ABOUT HOOKS
       A hook is a script that executes in the initial ramdisk. The order and
       which scripts are executed is found in the HOOKS=() array in the
       mkinitcpio configuration file. A hook will, for example, set up the
       udev device filesystem, load IDE modules, etc...
ABOUT PRESETS
       A preset is a pre-defined definition on how to create an initial
       ramdisk. Instead of specifying the configuration file and which output
       file, every time you generate a new intial ramdisk, you define a preset
       and use the -p switch to generate an initial ramdisk according to your
       preset. Presets are located in /etc/mkinitcpio.d
FILES
       /etc/mkinitcpio.conf
       Default configuration file for mkinitcpio.
       /etc/mkinitcpio.d
       Folder containing mkinitcpio presets.
       /lib/initcpio
       Files related to creating an initial ramdisk.
EXAMPLES
       mkinitcpio
       Perform a dry-run. This will generate an initial ramdisk but will
       not write anything. Use -g to create the real image.
       mkinitcpio -p kernel26
       Create an initial ramdisk based on the kernel26 preset.
SEE ALSO
       A more thorough article on configuring mkinitcpio:
       <http://wiki.archlinux.org/index.php/Con … mkinitcpio>
       initrd(4)
BUGS
       Upon writing this manpage, there were no noticeable bugs present.
       Please visit <http://bugs.archlinux.org/> for an up to date list.
AUTHORS
       mkinitcpio created by the Arch Linux Developer community.
       Manpage written by:
       ·   Glenn RedShift Matthys <[email protected]>
       Manpage contributions by:
       ·   Jens byte Adam <[email protected]>
       ·   Geir gejr Vaagland
       ·   Joerie Thralas de Gram <[email protected]>
VERSION INFORMATION
       Manpage written for mkinitcpio 0.5.17
COPYRIGHT
       Copyright (c) Arch Linux
                  03/16/2008             MKINITCPIO(5)

Similar Messages

  • How to Create one more SOA-INFRA under the same domain in weblogic server

    Hi All,
    Can anybody can guide how to create one more soa-infra under the same domain. In order to maintain my composites to be deployed into
    different domains, I need to create one more soa-infra and deployed all the composites under that one.
    Please let me know if any demo is available for this activity to be gets completed.
    Regards,
    CH

    Hi Vijay,
    There are several composites which needs to be deployed and maintained in the server. So, we I'm trying to maintian
    by deploying composites into 3 different SOA-INFRA's so if one is not accessible, we can look into it and others can access the
    composites from another SOA-INFRA instead of creating domains.
    Let me know what will be feasible way to perform this activity.
    Regards,
    CH

  • How to create one ISO file large than 2G

    hi,
    here when I create one ISO with 3G(larger than 2G) on solaris 10 machine, I met below error:
    mkisofs: File too large. cannot fwrite 32768*1
    Anyone has suggestion for this problem? How to create one ISO files larger than 2G?
    See the detail logs information:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    mkisofs -o my.iso -A "Software DVD" -D -L -P "Study "-p CBC/XLE -r -T -V R50 -v iso
    mkisofs: The option '-L' is reserved by POSIX.1-2001.
    mkisofs: The option '-L' means 'follow all symbolic links'.
    mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'.
    mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior.
    mkisofs: The option '-P' is reserved by POSIX.1-2001.
    mkisofs: The option '-P' means 'do not follow symbolic links'.
    mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-P'.
    mkisofs: Use -publisher in future to get old mkisofs behavior.
    Warning: creating filesystem that does not conform to ISO-9660.
    mkisofs 2.01 (sparc-sun-solaris2.10)
    Scanning iso
    Scanning iso/rac_stage3
    Using RAC_S000 for /rac_stage2 (rac_stage1)
    Using RAC_S001 for /rac_stage1 (rac_stage3)
    Using INSTA000.1;1 for ..
    Writing: The File(s) Start Block 48
    0.42% done, estimate finish Thu Feb 1 16:12:35 2007
    0.84% done, estimate finish Thu Feb 1 16:12:36 2007
    1.26% done, estimate finish Thu Feb 1 16:12:36 2007
    1.69% done, estimate finish Thu Feb 1 16:12:36 2007
    2.11% done, estimate finish Thu Feb 1 16:12:36 2007

    87.65% done, estimate finish Thu Feb 1 16:14:54 2007
    88.07% done, estimate finish Thu Feb 1 16:14:54 2007
    mkisofs: File too large. cannot fwrite 32768*1
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Thanks!

    does it matter "copy protection" ? for the problem that i have?
    my computer is alwyes get stuck while i trying to made a dvd or image
    i made few disks wite menu in the past & i had not problems at all

  • How to create one more server node for SAP J2EE server?

    Hi,
    Can any one please suggest how to create one more server node for SAP J2EE server? I am using WAS700.
    Thanks and Regards,
    Smriti.

    Hai,
          Login into the Configtool(C:\usr\sap\SID\DVEBMGS<inst no>\j2ee\configtool) if ABAP+JAVA stack or C:\usr\sap\SID\JC<inst no>\j2ee\configtool) if JAVA stack
    click on the instance and and select the addserver button on the top to create a servernode for J2EE server.
    Thanks and Regards,

  • How to create one TO for multiple TRs

    Dear All,
    how to create one TO for multiple TRs, kindly suggest me
    Regards,
    balu

    As for your question: it is discussed in sAP online help:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
    Sorry I misunderstood your question.
    The above mentioned solution won't create one single TO from multiple TR.
    Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM

  • How to create one checksum for 264 vis

    Hi,
    How to create "one Checksum" for 264 Vis.These 264 Vis are Interlinked if i change code for any .vi the checksum Should be update.This checksum is shown on the main window.
    Regards
    Ravindranath
    Solved!
    Go to Solution.

    Here's a slightly simplified version (saved in 8.6).  There's no need for the Get/Set File Position.  The file position is already being incremented with the read.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Multiple File MD5 Checksum (Version 8.6).vi ‏23 KB

  • How to create one GR document for mutiple Purchase orders

    Can you please explain me in SAP - How to create one Goods Receipt document for reference of Multiple purchase orders.

    Dear Tanuj,
    Both Rama & Stephen are correct.
    You can take Single GR for Multiple PO either in MIGO or MB01 as long as that POs belongs to same vendor.
    In MIGO, after putting the PO press,enter,  again give the next PO of that vendor .
    If this solve your problem, close the issue.
    With Regars,
    Krishna Reddy

  • How do I create both endnotes and footnotes in same doc in Pages? I have iWork 2008. I understand how to create one or the other, but not both.

    How do I create both endnotes and footnotes in same doc in Pages? I have iWork 2008. I understand how to create one or the other, but not both.

    You have to select one or the other.
    Try making two documents and see if you can merge the .pdfs, but their will be problems with page flow, making the pages shift. Can't see it working really.
    Pages is not the only solution out there or the best for most jobs (let alone the safest). Try Word for Mac, LibreOffice (free) or any App that has the features you need.
    Peter

  • Acquired ayrport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

    Acquired airport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

    Acquired airport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • How to Create an iView under Home in Standard User Role

    Hi,
    Can anybody guide me how to create an iView under Home which access the content available from Windows Share folders on a non SAP system.
    Its not URL iView , I wanna create an iView to access the content from a windows system (
    share)
    Thanks

    You have to create a File System Repository Manager under System Admin -> KM Admin. You can access any Windows Shared drive through that File System Repository manager. The shared folder would be displayed in your portal like a KM folder. You can easily create a KM Navigation iView (from template) over that folder and achieve your goal.
    Please see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/92322ab24e11d5993800508b6b8b11/content.htm">THIS</a> for the complete documentation on how to do this step by step.
    Regards,
    Shubhadip

  • How to create one inbound delivery for multiple purchase order?

    Hi Experts,
    Please let me know how can I create one inbound delivery for multiple purchasing documents(PO or SA)? 
    Is there a configuration needed for this?  If yes, please let me know the configuration to make this happen.
    Appreciate your help on this.  Right answers will be rewarded.
    Thank you.
    with regards,
    Muthu Ganapathy.

    Hi,
    my situation is:
    - a WM managed warehouse, society A;
    - a HU managed warehouse (without WM), society B;
    - a purchasing process of HU from society A towards society B.
    Society B have a scheduling agreement; when a delivery schedule appears, in society A born a sales order and a delivery. After the registration of the delivery good issue, an idoc transfer information for inbound delivery creation.
    This process is ok without WM, but with a WM managed warehouse the idoc has the following problem:
    "V51VP - item was not found - process cancelled".
    Can you help me to transfer these HU?

  • How to create one-to-many form

    I have a database that has one-to-many relations. Could
    someone give me a good exmaple of how to create a WEB FORM (using
    php) that would allow me to for example enter the Name, and then
    below ADD as many names of children of this person (each as a
    seperate record) as I want, and then sumbit it all together. I have
    been strugling with it for a long time, it Access it was so easy,
    have no clue how to coded it here. Thank you for anyone;s
    response.

    Get Dreamweaver Developer Toolkit

  • How to create one complex project in web dynpro

    hi,
    i have 2 transations.i m going to create one project for one transaction each.but in my carse there are 20 views in each project.i want to distribute all the views  to 10 developers.i  mean how to distribute the different view or application or component for 0ne project among all the developer....this is my doubt that how  to clubbing together all the views,applications and compoents altogether in web dynpro  later.
    its very urgent,
    thanx in advance.
    regards,
    HP

    Hi ,
    One way is dividing your project into DCs.
    1. You can keep your model in one DC.
    2. Create different DCs for different functionalities and place the views under appropriate components
    3. Expose the components as public parts so that the views can reused by the developers.
    Please go though the documents on DCs for creating public parts and resuing DCs
    Regards, VIP

  • How to create one PDF consisting of Multiple one page PDFs?

    Hello,
    i created an Adobe Form for the CRM activity type task.
    Now the user is able to print his task or to save it as PDF which is fine.
    But if a user has a list of tasks the requirement is to create one big pdf document where for each entry of the table the PDF task is attached.
    The interface of my ADOBE Form has as input parameter the CRMT_OBJECT_ID, which is one single task.
    Could one of you experts please provide me the steps to create one big document for a table of CRMT_OBJECT_IDs? If possible without changing the adobe form and the interface.
    Thank you
    Kind regards
    Manfred

    Here is the blog: How to deal with SAP-standard Adobe forms
    /people/otto.gold/blog/2010/05/06/how-to-deal-with-sap-standard-adobe-forms
    but now I wonder if that is so relevant to your problem as I though before. You said it you created the form, so you can change it in any way. The blog explains where and how to change the part of the coding and form design,but since your form is not standard SAP, you don´t need mostof the explanations.
    Back to your question: In my opinion you cannot use the same form template to create a "big form". You need to embed all the data from interface into a single structure, use it as a row of a table, pass a table of the objects into the interface and enhance all the binding within the form. You also need to embed all your current form design in a subform for "table of data" and "one row", because all your form content means "we are fields of the single row of the table".
    Seems easy for me, but I am afraid it is not that easy to describe it and I don´t know anything about your prior Adobe forms experience.
    Regards Otto

Maybe you are looking for