How to Restore Arch's grub after Ubuntu install to 2nd disk

I installed Ubuntu to sdb after installing Arch to sda. Ubuntu was installed with LVM, though Arch does not use LVM.
I want to wipe out ubuntu now, but it seems to be in control of my boot process, and as a newb, I'm not quite sure how that process transpires.  I have read the Grub article on Arch's Wiki site, but that doensn't help me.
After booting into Arch and running:
# grub-mkconfig -o /boot/grub/grub.cfg
and then rebooting, I still have the Ubuntu Grub menu on the next boot.  My Arch /etc/default/grub is the same one that I used before installing Ubuntu - I'm not concerned about adding Ubuntu to the menu, so that's not an issue.
What do I need to do to get Arch back in control of the boot process?
Thanks in advance!

Kilz wrote:Here is an option in case you cant figure it out. Rename the /boot directory in the ubuntu install and copy the /boot directory from Arch in its place. Reboot, if everything works fine delete everything in the Ubuntu partition but /boot. Rename the /boot directory in the Arch install then shrink the ubuntu partition and mount it in the arch install as /boot. in the end you will just have a separate boot partition that will take up little space.
Thanks again. I finally got it working, but via a different, somewhat convoluted route. 
I screwed things up and ended up with only a grub prompt at boot.  Following instructions found online, I was able to boot my arch disk (sda), then ran grub-install and grub-mkconfig.  The install ran without errors (as before) but grub-mkconfig reported errors.  I had been disregarding these errors, because I thought they were related to the custom font and background in my /etc/default/grub file, and another source explained that I could ignore errors when setting fonts and background there (not sure if that source was reliable).  But one of the errors on grub-mkinstall reported it couldn't find device.map.  There was no device.map in /boot/grub.
Also of note, I had renamed the old /boot/grub/grub.cfg and left the /boot/grub directory without a proper grub.cfg file - probably why I got a grub menu at boot!
In the end, I created a device.map in /boot/grub/ and re-ran grub-mkconfig, but still got an error.  So I commented out the font and background lines in /etc/default/grub and also renamed my old backup /boot/grub/grub.cfg-backup to the proper "grub.cfg", then re-ran grub-mkconfig.  This time there were not errors reported from grub-mkconfig and with a quick glance at the contents, I was able to figure out that the menu entries looked good. 
I was able to reboot with the appropriate arch menu at this point!  While I'm not sure which step "fixed" my problem, I wanted to at least record my steps here for future users - perhaps one of the options above will help someone else.  Worth mentioning is that the ubuntu (sdb) drive was LVM, and I think that might have played into some of my difficulties, but I'm not sure about that.
The device.map that I created looked like this, where sda is my arch disk and sdb is the ubuntu installation (still not sure if it is needed, though):
(hd0) /dev/sda
(hd1) /dev/sdb
Last edited by stringchopper (2013-02-14 08:38:52)

Similar Messages

  • How to restore iPhoto and iBooks after clean install?

    I need to do a clean erase and reinstall of Yosemite.  How do I preserve my iPhoto and iBooks content and settings after reinstalling those apps?
    Thanks,

    I am new to Yosemite and to date have not used Time Machine.  I did find another detailed web site that hopefully will answer your questions - Apple  OSX  and  Time  Machine  Tips.  There is a link on that site titled How Time Machine Works its Magic which is very detailed.  The author of the website was a respected member of this community.  He passed away I believe last year.

  • How to restore 10.3 files after clean install of 10.4

    I had Mac OS 10.3 and did a clean install to Tiger (10.4) earlier this year. I thought I backed up my Apple Mail, iPhoto and iTunes libraries but I did not do it properly. I lost my attachments, all my photos and tunes.
    Is there anything that can be done to restore my Apple Mail, iPhoto and iTunes back to what it was when I had 10.3?
    Thanks,
    Cindy

    Yes, there is a way, but are you sure you want to do that?
    You can export your mail in mbox format by selecting the messages in Mail 2.x, doing File > Save As, and choosing Raw Message Source from the Format popup menu. You'll have to import those files into Mail 1.x doing File > Import Mailboxes and choosing Other / Standard mbox as the data format.
    Alternatively, you can use an utility such as Emailchemy or emlx to mbox Converter to do the conversion.
    Be sure to make a backup copy of the current ~/Library/Mail folder first and keep it until you've successfully completed the conversion, just in case.

  • How to restore views and procedures after drop user command?

    How to restore views and procedures after drop user command?
    We have 817 EE on NT and one developer created a lot of procedures, functions and vews. DB was not backuped and archived and export has not been done - our fault and we understand it. Sorry for this.
    Ok, now the story: another developer dropped this db user and we lost everything: procedures, functions and vews. The new user with trhe same name was created and new schema was imported in this user, but all old objects are lost. We don't have export and backup and archive log files.
    Question: may we can restore this lost stuff from some other sources. We are looking for lost codes, not data. May be we can use redo logs or shared pool or any other things. Any idea will be appreciated.
    Thanks.
    Victor
    [email protected]

    The switch has occurred after user was dropped, the data has been overwritten and there is be no way to use redo log files.
    I would like to explore another opportunity. Is possible to use Shared Pool or any Data Dictionary internal information to restore texts of the lost SQL and PL/SQL scripts executed in this DB before user was dropped? Not too many scripts are executed in this DB and the lost ones may still be in stack. I remember that Shared Pool (cash) should keep last executed scripts in order to improve performance. They probably are kept in some special format. Can we restore these scripts? Of course they also might be pushed out by Import that had been done after user was dropped.
    Thanks for your help,
    Victor

  • HT1495 how to restore iphon-without backup, after it synchronization from ipod

    how to restore iphon-without backup, after it synchronization from ipod

    Thanks Eric,
    After inserting the original DVD I installed OSX and after reboot I had a working computer.
    There was no opportunity to restore the TM backup. however when I rebooted from the
    DVD again I saw that possibility from a menu of the install utility.
    I ran through the restore over night (8 hours) and when I woke up, I had my computer back!
    Thanks for helping me out.
    Cheers, Rob

  • How to restore my iPhone data after mixed with my husband iTunes

    how to restore my iPhone data after mixed with my husband iTunes

    You might what to say what data you have mixed and where.

  • N8: How to restore music store widget after hard r...

    Hi
    I lost all  nokia N8 widgets including Music store after I hard reset my N8.
    I have really been searching but have been unable to find a work around for this. I am unable to play any OVI music on my phone as it searched for a license and ends up saying that this is not my registered device.
    I really need some help.
    Nokia care has failed to solve my problewm so far.
    HELP!
    MODERATOR'S NOTE:  We have edited your post. Please refrain from posting irrelevant characters. Posting with a brief and concise concern would be enough to gather solution.

    I have been able to restore everything....except the Ovi Music Widget after a hardreset.
    This might help - 
    http://www.nokian8blog.info/2011/06/how-to-restore-ovi-music-unlimited.html

  • How to restore using increment backup after full backup restore in RMAN?

    Hi All,
    We have a files of full backup of database after turning on the Archive log.
    And after that, daily incremental backup is taken.
    Now, i want to restore the the database into a new machine using both files of full and incremental backups. Can anybody give me script for restore of full backup and after that restore of incremental backup?
    Thanks,
    Praveen.

    Praveen,
    >>
    In my case, i have 2 sets of backups. One is full backup and other is incremental backup. In order to keep the restored database upto date, i need to restore the full backup and then restore incremental backup. Now, i got any idea how to restore using full backup. My doubt is how to update the restored database with incremental backup also?
    >>
    Restore always looks for level 0 backup, not the incremental backups.
    Incremental backups comes in picture during recovery.
    During Recovery, Oracle looks for incremental backups, if exists, it will do the recovery with the incremental backups, if no incremental backups available, then, it will look for archived logs.
    Therefore, incremental backups never used during restore, they are used only during the recovery.
    Jaffar

  • How to restore playlists and ratings after hard drive format

    Several people have reported problems restoring paylists and ratings after reformating a hard drive. Here is what worked for me and what did not.
    I had to reformat my hard drive. Before doing that I exported my playlists from itunes to another hard drive as an xml file. I also copied the folder with all my songs to another drive. (Also of course had it backed up on DVDs.)Then I copied the itunes library files (see url http://docs.info.apple.com/article.html?artnum=93732) to anoher drive.
    After reformating my hard drive and installing the lastest verion of ITunes, I copied the actual songs back into a subfolder in my music folder. I then told iTunes to import the subfolder with the actual music. That resulted in a restored library that lacked playlists and ratings.
    Don't do this
    I purchased Anapod ($30.00) because its web page said (http://www.redchairsoftware.com/anapod/):
    "Anapod CopyGear is an easy-to-use, compact utility for copying music tracks, playlists, podcasts, photos, and videos from your iPod back to your PC."
    Well, I did transfer 104 playlists back to my iTunes library through the Anapod backup function. However, the transfer also put more than 20 gigs of duplicate songs into the library. All of the songs listed in the playlists were duplicated in iTunes. I could find no way in Anapod to simply copy the ratings and the playlists. Anapod documentation was outdated. For example the online help pages said that playlists could not be backed up. This was confusing because I had just done that.
    "In a future release we will be adding the ability to backup your iPod playlists. This will allow you to generate backup files of your iPod playlists on the computer. These files will not be usable on your computer though. They can only be used to restore playlists at a later time on your iPod (assuming it still carries all the audio files referred to in that playlist)." This text is from url http://www.redchairsoftware.com/anapod/support/tome/tx2pc.php#5.1.2
    I sent requests to Anapod for help today, but they have not been answered yet. Docs truly did not seem to help. Would have been good if there was a pdf file rather than just an online help html file that seemed outdated.
    This worked for me:
    I ended up having iTunes wipe out the entire library because of all the dups Anapod made. (Made sure that iTunes only wiped out library and did not delete actual songs from hard drive. Then I had iTunes import my subfolder with songs again. That brought me back to where I was before wasting money and much time on Anapod.
    After I had my iTunes library up (without ratings and playlists and after finding Anapod did not meet my needs.
    1. I imported the xml file to which I had exported playlists before reformating hard drive. That gave me the playlists back although an error message said some items not copied because the music tracks listed in playlists were not in my iTunes library. --Possibly I deleted songs after playlists were downloaded some time ago to iPod. Importing the xml file is probably not necessary because of what I did below.
    2. Quit iTunes
    3. Because my song ratings were still missing, I then moved the iTunes library files made by the new version of iTunes into a different folder.
    4. Then I put my old version 4 library files into the place where the library files should be.
    5. Then I crossed my fingers and restarted iTunes. It took awhile to start and said it was updating my library files. Now I have back most or all of my playlists and ratings.
    If problems develop, I will probably wipe out iTunes library and use Anapod to move everything from my iPod into a folder and tell iTunes to import that folder. That approach might avoid the dups that Anapod makes when restoring playlists to iTunes.
    So my message is keep your actual songs backed up somewhere (such as DVD's and anotehr hard drive) and keep a duplicate copy of your library files somewhere not on your hard drive. With these items you should be able to restore iTunes library to its former status.
    Sorry for the length of this message. Hope it helps someone.

    The simple version of above:
    iTunes Files to Backup (anytime you make additions or changes to the Music or Library that you want to retain)
    1) All music files in their current folder structure (usually located in and under the ‘iTunes Music’ folder)
    2) The Library database file: ‘iTunes Library.itl’ located in the ‘iTunes’ folder
    3) The Library XML file: ‘iTunes Music Library.xml’ located in the ‘iTunes’ folder
    4) Any XML playlist files created for Playlist retention
    5) The two iTunes.pref files (optional)
    -- C:\Documents and Settings\<your username>\Application Data\Apple Computer\iTunes\iTunes.pref
    -- C:\Documents and Settings\<your username>\Local Settings\Application Data\Apple Computer Inc\iTunes.pref
    6) The XML file of Ratings, Play Counts and Last Played attributes saved from the main Library and created by Otto’s SaveRatings script (also optional, but recommended):
    “Download this: http://ottodestruct.com/itunes/SaveRatings.zip . It's a program, just run it like any other program. Run it on the machine where you're copying the info from BEFORE you move the files to the new machine. Click the "Save Ratings" button and it'll create a ratings.xml file. Now when you move the files, move the program and this file as well. Then after you make your new iTunes library, run it again and click the "Restore Ratings" button. Voila, all your information is back in the Library. Well, most of it anyway, it's not perfect. It'll tell you what songs it couldn't figure out though, and there's usually not very many.”

  • How to restore old prefs, etc after clean reinstall of 10.3.9?

    Due to a fiasco with Drive Genius I was forced to reformat and reinstall 10.3.9. Luckly, I was bright enough to manually copy over the entire contents of the drive to a firewire drive before I started the drive genius project.
    I was able to find directions on how to restore my users which worked perfectly.
    I've copied all the apps back. But all the apps were in the main drive rather than in users, so the prefs, registrations etc are, I assume, stored in the old library.
    Is there a way to replace the new library with the original to avoid several days work digging out the original packaging to get the serial numbers for re-entering so I can get back to work right away?

    The serial #s, etc were in fact in the original main library. I was able to restore the use of all the programs by manually replacing the missing items in each folder in the library. It took over an hour, but I got it all back and saved me from having to rummage through storage boxes for the original documentation to retrieve and re-enter all the info.

  • [SOLVED] Arch not showing up in grub after ArchBang install

    I have a triple booting machine with Windows7, Arch, and ArchBang.  Windows 7's system partition is where I have the bootloader installed.  I recently installed Archbang and now my other Arch is not showing up in grub.  I tried updating the grub menu by running os-prober, installing grub to the boot partition and doing a grub-mkconfig but it will not find the other Arch on the other partition.  I'm thinking maybe this is a naming issues since they have the same grub entry name?  I don't know.  Any thoughts?
    Lenovo Z580 i5
    Arch 64
    ArchBang 64
    Windows 7 64
    Last edited by tictoerest (2013-03-14 06:18:50)

    Okay nevermind, I got it fixed.  I just copied the entry from the other Arch's grub.cfg and pasted it into the new grub.cfg

  • [Solved] Dual UEFI Booting Arch against pre-existing Ubuntu install

    Hi All,
    I'm new to Arch Linux and have just managed to install it on my T530 Lenovo laptop along side a pre-existing Ubuntu installation.
    However, although I did consult the dual boot posting and article here on the site beforehand, those articles seemed to be about installing Grub. Since I already have it up and working, I was nervous about deleting it and so potentially loosing my working Ubuntu installation.
    I tried installing mounting my pre existing /boot/efi partition but the pre-existing vmlinuz-linux file (no doubt from my Ubuntu installation) prevented it from working. My solution was to create the boot folder on the same partition as my Arch installation.
    I now have an installation that works (kind of) however, it appears each time I boot up, I have to edit the Grub entry for my Arch installation to update the UUID Grub points to to get it to load up Arch. I can't find where the actual file being loaded in Grub resides (the file that it appears generates this script, is itself built from a series of predefined variables).
    I admit I am playing at the moment - I'm keen to get to grips with this distro and am up for considering all options including deleting and starting again to learn to get it set up correctly. My questions are:
    How should I have done this so that my Arch linux distro was loaded via Grub called by the UEFI and had the same booting file structure as the already existing Ubuntu installation (using the BOOTLOADER partition and the /boot/efi folders on it)
    How do I edit the Grub file for my Arch distro so it stays edited (no more retyping all the UUIDs each time I load it up
    Is there a way to get to the installation I currently have to an the more ideal state
    Details taken thanks to the bootrepair application are here:
    http://paste.ubuntu.com/10682898/
    Thanks and regards,
    Simon
    Last edited by simon_sjw (2015-04-22 11:50:52)

    I don't think there are any Ubuntu kernel images on your EFI system partition (they are in /boot, not /boot/efi).
    If you want Arch to boot in an EFI system you should mount /boot (rather than /boot/efi) to the EFI system partition.
    To do this, copy the /boot folder over to /dev/sda1 and add it to your /etc/fstab (in Arch):
    /dev/sda1 /boot vfat rw,relatime,discard,nodev,nosuid,noexec,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    It's probably best to install & configure GRUB from Arch rather than Ubuntu because Arch mounts /boot to the ESP while all other distributions mount /boot/efi so the results may get confusing (ie, GRUB may create menu entries to boot Ubuntu with your Arch kernel and vice versa); also the Arch kernel image is booted read-write whereas most other kernel images are booted read-only.
    https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
    I find the os-prober script can fail sometimes so this is probably your problem here.
    Personally, I use gummiboot to boot my Debian system by copying the kernel image & initial ramdisk to the EFI system partition using these commands in Debian (this would also work in Ubuntu):
    # mount /dev/sda1 /mnt
    # cp /vmlinuz /initrd.img /mnt
    Then I make a gummiboot menu entry; your Ubuntu entry would look like this:
    title Ubuntu
    linux /vmlinuz
    initrd /initrd.img
    options root=/dev/sda2 ro
    Add any kernel parameters after "ro" and make an entry for Arch as well (you may also need to configure /boot/loader/loader.conf as per the ArchWiki page) & install gummiboot from Arch using:
    # gummiboot install
    You can then create a post-install script at /etc/kernel/postinst.d/zz-update-gummiboot in your Ubuntu system to copy over the kernel image & initrd to the ESP whenever the kernel is updated:
    #!/bin/sh
    mount /dev/sda1 /mnt
    cp /vmlinuz /initrd.img /mnt/
    umount -R /mnt
    Make this executable:
    # chmod +x /etc/kernel/postinst.d/zz-update-gummiboot
    This method will only work if you have /boot mounted to the EFI system partition (as outlined in the Beginner's Guide).

  • Flashing Question Mark Folder after Clean Install in Target Disk Mode

    I have an old iBook G4 with a failing optical drive and the need to reformat the hard drive and re-install OS 10.5.4. Since the optical drive is failing and unpredictable, I figured I'd do everything in target disk mode.
    So I mounted the hard drive of the iBook to my Mac Pro via Firewire in target disk mode. I was able to successfully format the hard drive of the iBook, zeroing out all the data with 7 passes, and I was also able to successfully install OS 10.5.4 from my original Install DVD, again in target disk mode.
    After the install was complete, I went through all the registration process and User Account setup and the iBook booted fine albeit still in target disk mode. So I shut down the Mac Pro, turned off the iBook and unplugged the Firewire cable. My Mac Pro booted up just fine afterward. But the iBook now gives me the flashing question mark/finder folder.
    I know this means that the iBook is having trouble located a startup volume, or that the startup volume is corrupt or missing data. How can this be, though, after a reformat and clean install? Did I do something wrong in target disk mode? Or did I neglect to do something necessary?
    Thanks for anyone's help on this.

    Thanks, Niel.
    I don't see APM as an option in Disk Utility when booting from my Mac Pro. I only have Mac OS Extended (Journaled), Mac OS Extended, Mac OS Extended (Case-sensitive, Journaled), Mac OS Extended (Case-sensitive), MS-DOS (FAT) and ExFAT.
    How do I get my Mac Pro to repartition the iBook properly in target disk mode?

  • How can I be sure Acrobat Reader will install on the disk I want it to and not on my C:\ drive?

    Hi Guys,
    I have a large desktop system running under XP Pro + SPs 1,2 and 3 that has several hard disk drives,
    I like to keep my operating system on my C:\ drive, which is a small drive and over half full and all my applications on my much larger F:\ drive.
    I now need to install either Acrobat Reader v 10 or else Reader and Air seperately.
    How can I either;
    ensure that these both install on my F:\ drive? or
    if they insist on installing on my C:\ drive, can I move them to my F:\ drive without creating problems?
    Regards,
    BroomstickPilot

    Hello,
    Once you start the Adobe Reader X installation you will get a Windows which says : Extracting Installation Files, once its sucessfully Extracted the file you will get this window :
    Just click on Change Destination Folder button and you will get this window :
    From the top click on the Drop Down Menu and you will get the other Drives (As per your computer you will get F:)
    You can select the Destination in F: drive
    Hope it helps !!
    Thanks,
    Vikram

  • How to Restore E-Business Suite after Server Crash?

    Hi Hussein Sawwan,
    I have a question that will be useful to other members of the community. How do I restore Oracle E-Business Suite R12 after physically loosing the server that hosts the ERP instance?
    I have 2 scenarios here:
    1-Existing cold backups of the DbTier and AppsTier are available
    I have been doing a full backup of the Apps and Inst folders once a week on an external drive.
    I have been copying the DB folder (Data + DBMS_ORACLE_HOME) after shutting down the database cleanly once a week on an external drive. Noting that, here the database is in NOARCHIVELOG mode.
    2-Existing Hot backups of the Database are available and I have a backup of the Apps and Inst folders (AppsTier)
    The database is in archivelog here. I have been doing a full hot backup of the database once a week, an Incremental backup everyday, and a full backup of the archivelogs once a week. All of this to an external drive. The Apps and Inst folders are backed up once a week to an external drive.
    Let say something bad happens and we completely loose the physical server. How can I do to restore and recover my Oracle E-Business Suite R12 to a new server?
    I know I will have to Install the same OS on the new server, but what happens after that?
    Thanks in advance,
    Clamarion.

    I believe the easiest approach would be:
    - Install the same OS on the new servers
    - Install OS pre-req software and packages for your EBS instance
    - Restore from cold backup (if the crash happened directly after this backup and you haven't lost any data)
    OR,
    - Restore from hot backup (if the crash happened after your cold backup and you have data that wasn't part of the cold backup)
    I assume that no changes to the hostname, domainname, IP Address, port numbers, directory structure, ..etc is taking place in this restore.
    Thanks,
    Hussein

Maybe you are looking for

  • [Solved]Black Screen! Help me :(

    Hi, my Arch installed on Toshiba Portege M100 can't start xfce 4 or slim. But from beginning: Firstly I used kdemod 3.5 for 1 year. But my Toshiba got slower and slower. So I decided to switch to xfce4 due to performance benefits. So I installed xfce

  • How do I get a PDF document signed?

    What do I have to do to create a contract in PDF, send it so it can be signed and returned to me?

  • SRM 7.0 with WEBDYNPRO PLATFORM

    Hi Experts, The following quesitions are shooted  on Product developers - SRM 7.0 Could any one clarify the follwoing : 1. Is SRM 7.0 is on webdynpro platform, if so, No ITS isavailable with SRM 7.0. 2. Is SICF is available for activating services in

  • SUNWaudd

    Hello In Solaris 10 x86 is included package SUNWaudd (Audio Drivers). My question is: what sound cards does it support? And how do I use it? On my computer is installed Creative SoundBlaster Live! card and I was unable to use the package - I stuck wi

  • HT201364 "The product distribution file could not be verified. It may be damaged or was not signed." WANTED TO UPDGRADE TO MAVERICK. PLEASE HELP. THANKS.

    Hi Guys, I wanted to upgrade to Maverick but encountered this diffcult "The product distribution file could not be verified. It may be damaged or was not signed" Need your help. Thanks CMKong