[SOLVED] How to restore kernel image after wrong /etc/mkinitcpio.conf

I wanted to learn a bit more about the kernel and boot, and I'm afraid I cannot start up my ArchLinux anymore.
I updated the /etc/mkinitcpio.conf to make the boot faster (with this reference: http://kmandla.wordpress.com/2007/01/30 … initcpio/) and executed #mkinitcpio -p kernel26
I thought that if there was any problem, I could start up with the "fallback image". Certainly, there was a problem (probably I didn´t loaded all the modules required) and when I tried the fallback image, I experimented the same problem:
Root device '/dev/disk/by-uuid/...' doesn´t exist
ramfs$
In fact, both images are the same (or at least they have the same size)
I tried the ArchLinux liveCD to recover my system. There's no recovery service, so I started up the CD-ROM, mounted my ArchLinux partitions, generated the images and copied into the /boot of my Archlinux partitions. But the same problem is still there.
What could I do to fix it?
Thank you in advance
Last edited by jjjaime (2009-05-10 15:45:45)

Thank you. I follow your instructions and it worked (perhaps it would be simpler with a "#pacman -Sy kernel26"). I didn't know the command chroot and it's really interesting.
red_erik wrote:
I have a similar problem, (read more in this thread), and I solve it by booting off the Live CD, and doing the following:
(replace sda1 with your / partition)
cd /
mount -t ext3 /dev/sda1 /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
chroot /mnt /bin/bash
mkinitcpio -p kernel26
after that, I exit chroot, unmount all of my partitions and reboot...:
cd /
umount -a
exit
cd /
umount -a
reboot
hope this helps...

Similar Messages

  • How to restore iTunes library after operating system changed?

    How to restore iTune library after operating system changed on the laptop? The syn is not working because it doesn't recognize the computer.

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    Sync Your iOS Device with a New Computer Without Losing Data - How-To Geek

  • HT4061 How to restore my ipad after downloading itunes?

    How to restore my ipad after downloading itunes?

    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring:
    Verify that you are using the latest version of iTunes.
    Back up your device.
    Transfer and sync content to your computer.
    Restoring your iOS device
    Connect your device to your computer.
    Select your iPhone, iPad, or iPod touch when it appears in iTunes. Select the Summary tab, and click the Restore button.
    Click Restore.
    After a restore, the iOS device restarts. You should then see "Slide to set up". Follow the steps in the iOS Setup Assistant.
    If needed, restore your device from a previous backup.
    If restoring does not finish successfully or if a restore error appears, see iOS: Resolving update and restore alert messages.
    Additional Information
    If your device is continually restarting, not responding, or showing the Apple logo with no progress bar or a stopped progress bar, place the device into recovery mode and try restoring again.
    Devices with cellular service should activate after a restore. If activation is not successfu, see the options below.
    Symptoms
    Your iPhone may display one of the following messages when you attempt to activate it:
    "Your iPhone could not be activated because the activation server is temporarily unavailable."
    "The iPhone is not recognized and cannot be activated for service."
    "iTunes was unable to verify your device."
    Resolution
    Perform the following steps if you receive one of the messages above:
    Restart the iPhone.
    Try another means of reaching the activation server and attempt to activate.
    Try connecting to Wi-Fi if you're unable to activate using a cellular data connection.
    Try connecting to iTunes if you're unable to activate using Wi-Fi.
    Restore the iPhone.
    If you receive an alert message when you attempt to activate your iPhone, try to place the iPhone in recovery mode and perform a restore. If you're still unable to complete the setup assistant due to an activation error, contact Applefor assistance.

  • How to restore safari bookmarks after osi update

    how to restore safari bookmarks after ios. update

    The only way is to restore from a useful backup, if you have one.
    If you sync the iPad to iTunes and use Time Machine regularly, you would likely have the appropriate backup to restore from. In that case:
    Restore the iPad backup set from Time Machine from a date before you overwrote the bookmarks. The location of the backup is ~/Library/Application Support/MobileSync/Backup/ (you can get to it by pressing Cmd+Shift+G in the Finder and entering this path).
    Connect the iPad, run iTunes and restore from the backup.
    If you use iCloud Backup, then you can restore from iCloud and choose which date's backup you'd like to restore from. You can check if you're using iCloud Backup by opening the Settings app on the iPad, then going to the iCloud submenu and looking at the status right below "Storage & Backup", where it would say "iCloud Backup is off." (or "iCloud Backup is on.", as the case may be).
    In any case, keep in mind that restoring from a backup means you lose all application data changes after the date of the backup.
    Also see Restoring from a previous iCloud backup.

  • [SOLVED-in-PART] recompiling kernel images, boot diferent from chroot

    Hi, I got into an dead end. Two days ago I was trying to solve some small annoying problems (ethernet driver, dkms not compiling automatically and difference in time hwclock and software clock) with my recent arch installation. I started with the time difference problem, for which I followed some solutions which I found in the internet, but all for no avail. So I postponed this for later and started to tackle the ethernet driver problem (Atheros AR8161) [https://wiki.archlinux.org/index.php/Ne … ros_AR8161]. I followed all described steps, I also did  the mentioned hack. After all, I turned my note at work off and at home on and surprise it found the GRUB menu, I started the option for the system, the disk was checked but, no system came up. It even messed up my window8 system as well. But that is now up and working. After windows came back GRUB was loading and I can start it from GRUB, but not Arch.
    I looked at the grub menu and as far as I could see and understand everything was pointing and the right direction. So I supposed that during the network driver compilation and module load, something went wrong with the images or images source (if they are important for booting). So reading around I got pointed to how to rebuild the kernel images (http://riskofruin.markmccracken.net/201 … image.html). I know the blog title is kreepy... but the procedure sounds very logic, correct and quite strait forward. So I got the latest Arch image, put it on an usb stick and chroot into my installed system.
    When I started the /sbin/depmod I immediately got an error saying that two files where missing for the kernels 3.7.9-2-ARCH. Well as far as I remember my installed system has the latest kernel (3.7.10-1-ARCH). So I though to update my pendrive system and so restart an both kernels would be equal. After restarting, I repeated al chroot protocol and then I saw that I still had the wrong kernel images. I suspect why, but I am not sure, may be the system is all memory loaded when it is booted up? Also, if I saw right, even the images are quite different (pendrive and harddrive). I surfed around to see how can I, in an chroot environment, where the hardrive installed system has an different kernel from the booted system, generate new kernel images for the hardrive system, soin a hope that  I can initialize my hardrive installed system? Is there someone that could guide me through this?
    PS.: Remember I suppose the problem is in the kernel, I do not not how to check for sure.
    Last edited by camarao (2013-03-10 03:10:56)

    Hi Trilby,
    No, just the initramfs. Because I think when I tryed to install my Atheros AR8161 drive I guess that something went wrong with the image or it could be something else.
    Do you think the vmlinuz-linux should also be reconstructed?
    Yesterday at night I found in the internet, someone using the "-k" option, of mkinitcpio, and pointing to the /boot/vmlinuz.linux directory. So if I understood well mkinitcpio using the options "-k", "-c" and "-g" you can point where to put the reconstructed images, vmlinuz and the initramfs, according to the "-c" pointed mkinitcpio.conf. This would allow me to reconstruct both images for the broken system which are from a different kernel version, than the one used to boot up and repair the broken system.
    Two last questions:
    1. Is it necessary to run /sbin/depmod before reconstructiong the images, as mentioned in the link (http://riskofruin.markmccracken.net/201 … image.html)?
    2. Will the two new images be automatically replaced in /boot?
    Sorry for asking this, but IT is just an hobby for me, and my IT knowledge is limited to what I read and understand. I like adventures and sometime dangerous one as well, I learn a lot. But if sometimes I can get a small help I like.
    Well thanks for everything

  • How to restore DMG image (advanced)

    Hi guys,
    I made a backup of USB key, which comes with my Xtreamer Ultra, I needed that key for another purpose. Now I need to make a restore of this DMG. Problem is, I dont know why, I tried Disk Utility, after the scan of image, anyway I can not restore it.
    So I tried:
    2ge@[macbookpro /dev]> sudo hdiutil attach ~/Desktop/Storage\ Xtreamer\ Media.dmg -nomount
    Checksumming Master Boot Record (MBR : 0)…
            Master Boot Record (MBR : 0): verified   CRC32 $50087C4E
    Checksumming  (Apple_Free : 1)…
                        (Apple_Free : 1): verified   CRC32 $00000000
    Checksumming  (Windows_FAT_32 : 2)…
                    (Windows_FAT_32 : 2): verified   CRC32 $DAE7396C
    Checksumming  (Linux_Ext2FS : 3)…
                      (Linux_Ext2FS : 3): verified   CRC32 $B40BA82C
    Checksumming  (Apple_Free : 4)…
                        (Apple_Free : 4): verified   CRC32 $00000000
    verified   CRC32 $2D4890D1
    /dev/disk5                    FDisk_partition_scheme       
    /dev/disk5s1                  Windows_FAT_32               
    /dev/disk5s2                  Linux                         
    please help me how to restore this DMG.
    Thanks!

    Hi,
    It may be that you have inadvertantly wiped the Recovery Partition D when sanitising the drive, or it may have become corrupt.  Either way, you best option is to reinstall the OS using recovery discs as these will also re-create the Recovery Partition on the HDD.
    You can order a replacement set of Recovery Discs using the link below.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00810334&cc=us&lc=en&dlc=en
    If you have any problem with this link, order them directly from HP.
    If you live in the US, contact HP Here.
    If you are in another part of the world, start Here.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • How to restore purchased ringtones after IOS 8 update

    I have iPhone 5c.    After I did the IOS 8 update and then the ios 8.0.2 update, I no longer have my purchased iTunes ringtones (I only have three that I purchased).    It shows I purchased them in my iTunes store and my music icons on my phone.   But when I go to settings and sounds and tones, they are not there.   Trying to figure out HOW to restore them to my iPhone. 
    Help?    I am an idiot, so I would appreciate step by step directions.   Thanks!

    Hi suebeehoney0508,
    If you are having issues syncing your ringtones back to your iPhone after a recent update, you may find the following User Tip helpful:
    How to sync ringtones to your iPhone | Apple Support Communities
    Regards,
    - Brenden

  • How to restore illustrator file after crash?

    how to restore adobe illustrator files after crash OS win 8, and I could backup

    To enable us to help you better, you need to provide as many details as you can about the problem you are experiencing.
    If you design your question effectively, you can get good information from people who are knowledgeable about the topic and who are happy to help you.
    Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all.
    What troubleshooting have you done so far?
    Asking an effective question will get you help faster read how here
    Suggestions for asking for help on a site.
    http://www.catb.org/~esr/faqs/smart-questions.html
    Wanikiya and Dyami--Team Zigzag

  • HT4113 how to restore aa ipod after its been disabled

    i have old ipod that i am tring to restore but its been disable due to to many wrong passwords. how can u restore  the ipod to the origianl state if you cant get into it to restore it.

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • How to load a image after getting it with a file chooser?

    I'm still starting with JavaFX, and I simply would like to know how to load the image (e.g. png or jpg) that I selected using a FileChooser in the user interface. I can access the file normally within the code, but I'm still lost about how to load it appropriately. Every time I select a new image using the FileChooser, I should discard the previous one and consider the new one. My code is shown below:
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.paint.Color;
    import javafx.scene.layout.HBox;
    import javafx.scene.control.Button;
    import javax.swing.JFileChooser;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    var chooser: JFileChooser = new JFileChooser();
    var image;
    Stage {
        title: "Image"
        scene: Scene {
            width: 950
            height: 500
            content: [
                HBox {
                    layoutX: 670
                    layoutY: 18
                    spacing: 10
                    content: [
                        Button {
                            text: "Open"
                            action: function() {
                                if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(null)) {
                                    var imageFile = chooser.getSelectedFile();
                                    println("{imageFile.getCanonicalFile()}");
                                    image = Image{
                                        width: 640
                                        url:imageFile.getAbsolutePath()
                // Image area
                Rectangle {
                    x: 10
                    y: 10
                    width: 640
                    height: 480
                    fill: Color.WHITE
                ImageView {
                    x: 10
                    y: 10
                    image: bind image
    }Thank you in advance for any suggestion to make it work. :)

    As its name implies, the url param expect... an URL, not a file path!
    So, use {color:#8000FF}url: imageFile.toURI().toURL(){color} instead.

  • How to restore photo file after empty trash

    photos file have been deleted and trash is empty.  please advise how to restore. many thx! cheers

    Hey there TizJacky,
    If I understand correctly there were pictures in your Mac OS trash which has been emptied, and want to restore them. In order to do this, you would need to have had Time Machine setup and backing up your computer before this occurred. This article will help you out if you did:
    Mac Basics: Time Machine backs up your Mac
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • [solved]Delay mySQL startup by 30 secs in /etc/rc.conf

    Basically I use wpa_supplicant and it takes a a bit to connect, by the time /etc/rc.conf gets to the mysql startup service, mySQL cannot bind to my servers address,
    This is because wpa_supplicant probably hasn't got an IP address yet, so mySQL fails to start at bootup every time, however right after the boot I can log in and manually boot it just fine.
    Any Ideas?  Maybe delay the mysql by 30-40 seconds at boot? Anyone know how?
    Last edited by kr1zmo (2010-07-05 23:57:10)

    itsbrad212 wrote:
    You could put:
    /etc/rc.d/mysqld start
    in /etc/rc.local
    Thanks for the reply but I solved this by removing the @ before netprofiles, so that wpa_supplicant doesnt startup in the background, therefor everything else waits until wpa_supplicant is connected before it boots.
    Last edited by kr1zmo (2010-07-05 23:59:58)

  • How to convert wired network config from /etc/rc.conf to netcfg?

    Hi,
    I am trying to migrate my wired network configuration from /etc/rc.conf to a netcfg profile.
    from /etc/rc.conf
    interface=eth0
    address=192.168.0.1
    netmask=255.255.255.0
    gateway=192.168.2.1
    /etc/network.d/wired
    CONNECTION='ethernet'
    DESCRIPTION='A basic static ethernet connection using iproute'
    INTERFACE='eth0'
    IP='static'
    ADDR='192.168.0.1'
    GATEWAY='192.168.2.1'
    DNS=('192.168.2.1')
    NETMASK='255.255.255.0'
    The problem is, it does not work: executing "netcfg wired" only gives
    :: wired up                 [BUSY] 
    > No connection        [FAIL]
    EDIT:
    NETCFG_DEBUG="yes" netcfg wired
    DEBUG: Loading profile wired
    DEBUG: Configuring interface eth0
    :: wired up                                                                                                                                                                                             [BUSY]
    DEBUG: status reported to profile_up as:
    DEBUG: Loading profile wired
    DEBUG: Configuring interface eth0
    DEBUG: ethernet_up bring_interface up eth0
    > No connection
    DEBUG: profile_up connect failed
                                                                                                                                                                                                            [FAIL]
    Any idea how to make it work?
    Last edited by Phate666 (2012-10-26 16:09:36)

    The rc.conf is correct because there are two diffrent subnets.
    My PS3 is connected to my computer via ethernet.
    The computer is connected via wifi to the router (ip 192.168.2.1).
    When using /etc/rc.d/network to start ethernet everything works perfect, the PS3 can stream video from the computer and access internet.
    Last edited by Phate666 (2012-10-26 16:34:47)

  • How to activite ipad locked after wrong password

    I have a many  passwords that I use for my Ipads, Iphones and Macbook Pro. I have just forgotten the one I was used to enter in order to use my Ipad 64. Now the Ipad is locked and keeps on asking me to try again again after 15 minutes, 60 minutes etc..

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • How to launch factory image after format of hard drive

    I have an HP TouchSmart600 PC that had a nasty rootkit.  I've backed up the Factory Image partition, and then deleted all partitions and formatted the entire drive.  I will restore the Factory Image partition from backup.  NOW....  how do I access it and use it to restore the PC to it's factory state?

    You don't really perform a HP Recovery in that manner. It is very unlikely to work as the system links pointing to the recovery partition will be missing. You should have created a set of HP Recovery Discs when you first setup your computer. Please locate the complete model and/or product of your computer and enter it HERE.
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

Maybe you are looking for

  • Is there an App to Manually, Fully Pin-Lock Screen?

    I always carry my phone in my pocket and the default drag-to-unlock screen isn't cutting it (answering calls in my pocket, unlocking itself). However, I don't want to always have to enter a pin to unlock my phone, only when I'm going to be biking wit

  • Offline Address Book and GAL corrupted.

    I have and Exchange 2013 cluster with 3 servers all performing both CAS and MB roles. This environment was originally a 2003 server, then 2007, then 2010, and now 2013 so it has been migrated many times in the past. It seems at some point something w

  • Read PO attachments

    Hi, I have a requirement to read Purchase Order attachments and e-mail them. Is there a FM to read the attachemnts with the document number as input? or is there any other way to do it? Thanks, K.

  • My iPhone 4S only plays default alert

    When I first got the 4S I made a custom laert for a tweet and it played just fine.  Then I got another twitter client and got rid of the default one.  I realized it wouldn't play after that, so I got the default one back (the other one wasn't very go

  • OSX Mavericks Crashing Several times a day

    Since installing Mavericks a few days ago, I am crashing regurarly. Most of the crashes apparently had to do with Creative Cloud, so I threw the application in the trash. Do I need to do more to get rid of this app completely? The most recent crash r