How to fix Grub after moving arch to new drive [SOLVED]

I moved my Arch install (/ and /home partitions) to a new drive and I was wondering how to fix Grub so that it knows /boot is on the new drive.  What I've done thus far is
create partitions on the new drive and dd my current / and /home partitions to them.  The new partitions are bigger than the current ones, so I also re-sized the filesystems to fill the new partitions.  My disk/partition setup is the following
/dev/sda1        2048 488392703 488390656 232.9G  7 HPFS/NTFS/exFAT   (Storage)
/dev/sdb1  *         2048    206847    204800  100M  7 HPFS/NTFS/exFAT   (System reserved)
/dev/sdb2          206848 102402047 102195200 48.7G  7 HPFS/NTFS/exFAT   (Windows 7)
/dev/sdb3  *    102402048 141472127  39070080 18.6G 83 Linux   (Current Arch /)
/dev/sdb4       141472128 250069679 108597552 51.8G 83 Linux   (Current Arch /home)
/dev/sdc2  *       206848 105064447 104857600   50G 83 Linux   (New Arch /)
/dev/sdc3       105064448 234441647 129377200 61.7G 83 Linux   (New Arch /home)
After I resized the filesystems, I then created a new grub.cfg file (on /dev/sdb3) that is aware of the new Arch system.  I can boot to both my current and new Arch installs and run them fine, but ultimately I want to remove the current Arch install so I can make more room for my Windows 7 install.  What do I need to do to grub, so it knows to use the new Arch system.
Last edited by tlawren (2014-08-17 21:42:46)

@Xyne - Thanks!  Installing grub on my /dev/sdc did the trick.  Because I dd'ed my old setup to a new drive, /boot/grub was already populated, so all I had to do was install and configure grub on the new drive via the following. 
grub-install --target=i386-pc --recheck --debug /dev/sdx
grub-mkconfig -o /boot/grub/grub.cfg
I used os-prober to find the other OS's (Windows 7 and my old Arch).  After some testing, I will wipe my old Arch setup and then resize Windows into the free space.

Similar Messages

  • [Solved]How to fix grub after Windows XP install?

    I installed Windows XP on top of Arch in a different partition.
    It looks something like this:
    /dev/sda1 - XP
    /dev/sda2 - Arch
    /dev/sda3 - Swap
    Grub is located on /dev/sda2/ in /boot/grub/
    Windows XP obviously overwritten the mbr like it normally does.
    I tried loading the arch live install cd, and trying grub-install /dev/sda and /dev/sda1 and /dev/sda2 but it doesn't do anything.
    I want to overwrite Windows XP's boot loader with grub and add XP as an option to boot. Can someone please give me noob friendly instructions on how to accomplish this with minimal effort? It's important I don't damage the XP or Arch partitions. Thanks for any help.
    Last edited by PrimoTurbo (2008-07-30 18:06:43)

    I fixed it! Nearly the same instructions as lucke gave but I just used the Arch Live cd. All I did was boot Arch Live cd, it presented me with grub and bunch of options. (I didn't even boot into the cd) just pressed C so it loaded the grub terminal.
    Then:
    find /boot/grub/stage1
    Which outputs:
    root (hdX,Y)
    (In my case it was hd0,1)
    Then:
    root (hdX,Y)
    [Don't forget there is space after root and (hdX,Y)]
    Finally:
    setup hd0

  • How do I import playlists after moving songs to new drive?

    I got a new mac. I've moved all my songs to a new firewire drive. My old "iTunes Music Library.xml" references all the files on a different volume name. I want to get all my playlists back (so when I plug in my iPod I don't lose everything). Should I edit the xml file and find/replace the old volume name with the new one? Or is there a better way to do it? If I just import the xml file, I will have all the playlists but they'll be pointing to files that no longer exist.
    Any ideas?
    Thanks,
    Alfredo

    See if this article helps: How to backup and restore playlists

  • Any ideas on how to fix ipad after the new iOS 7 update? My battery will not charge, my ipad is hot to the touch, the iTunes Store won't open, and my messages on Facebook aren't showing up when I chat and pintrest won't pin to my boards.

    Any ideas on how to fix ipad after the new iOS 7 update? My battery will not charge, my ipad is hot to the touch, the iTunes Store won't open, and my messages on Facebook aren't showing up when I chat and pintrest won't pin to my boards.

    If you have all your music on the cmputer then i would connect up my phone uncheck the Sync Music option and apply.
    This should take all the music off your phone .Then you can resync the music back on to it.
    If this doesn't work maybe a restore to factory settings and start from scratch is the way to go

  • SoundBlaster X-Fi Driver Installation Fails After Moving Soundcard to New Slot

    NSoundBlaster X-Fi Driver Installation Fails After Moving Soundcard to New Slot4 I recently moved my X-Fi Elite Pro soundcard to a different PCI slot to accommodate my new large PCIE graphics card.
    Prior to moving the card, my?original SoundBlaster install went fine without any trouble. When I booted up after relocating the card,?it was not detected at all. So I uninstalled my SoundBlaster driver software and?rebooted the computer?thinking that was necessary to clear any hardware configuration settings from the old install. This made no difference. I then discovered my card was not seated properly and corrected it.
    Next I installed the SoundBlaster driver software. The installation proceeded and finished with a request to restart the computer. Once I did, the computer detects my card and starts the hardware installation wizard asking if I want Windows to search online for driver software. It does not recognize the just installed SoundBlaster driver installation. I have a dual boot setup and this happens in both WinXP Pro and Vista 32 Home Premium.
    What's wrong here?

    Forget it folks...couldn't wait for any suggestions so I just cleaned off my hard dri've and reinstalled everything. Works fine.

  • HT4539 I followed the instructions given to turn my automatic download icon in my iphone 3 and still goes back to off position. Any idea how to fix this issue without getting a new one?

    I followed the instructions given to turn my automatic download icon in my iphone 3 and still goes back to off position. Any idea how to fix this issue without getting a new one?

    Something may have gone amiss on your iPhone.
    To attempt to correct this follow these steps:
    Backup your iPhone using iTunes or iCloud.
    Use iTunes to completely restore your iPhone as Factory new.
    Monitor battery usage to see if it is normal. If not, you may have a hardware problem - if so, contact Apple support.
    Restore your iPhone from your backup above.
    Check battery usage to confirm that it is still normal.

  • I've got a  MacBook Pro 1TB HD, the drive was damaged (probably dropped) after I formatted the new drive I was able to get the OSi onto the drive and it's now up and running..But prior to removing the old HD I was able to run CloneZilla to map t

             
        I've got a  MacBook Pro 1TB HD, the drive was damaged (probably dropped) after I formatted the new drive I was able to get the OSi onto the drive and it's now up and running..But prior to removing the old HD I was able to run CloneZilla to map the drive. The problem I'm having is getting the files and documents back on the new HD.
       I created a folder on the desk top and moved all the files and docs onto it, ( files / docs was originally burnt on a DVD ).  I'm not sure A) how to open the specific files B) which files to extract C) Is it as simple as drag and drop...
       Hope you're able to understand my problem and offer some suggestions, in advance thank you for your time and effort...

    Hi, Steve -
    Yes, the CD-ROM drive must be jumpered as Master in order for it to be bootable.
    Your G4 (PCI) should have two built-in IDE buses - one is usually assigned to the CD-ROM and Zip drives, and the other is used for hard drives. If you have the hard drive connected to the same bus as the one the CD-ROM is on, try switching the hard drive to the other bus.
    Set the hard drive's jumpers as Master.
    Exception - if the hard drive is a Western Digital, it may have a third position, Single, which must be used when the drive is the only device on the bus.
    Note - Cable Select jumper settings will not work on a G4 (PCI).
    Edit - -
    Startup Manager, which is what booting with Option held down invokes, is not available on a G4 (PCI).
    Article #106178 - Startup Manager: How to Select a Startup Volume
    Firewire Target Disk Mode is limited on a G4 (PCI) - it can be the Host machine, but not the Target machine.
    Article #58583 - Firewire Target Disk Mode
    Relatedly, a G4 (PCI) can not boot to firewire drives, although it can use them for storage.
    Article #58606 - FireWire Booting

  • How to fix iPhoto after installing idvd

    how do I fix iPhoto after installing idvd?

    That's because you didin't do a custom install and installed only iDVD.
    OT

  • How to fix bootcamp after partitioning

    macbookpro md102 mac osx 10.9+windows 8
    so obviously i tried splitting my windows c to two parts using default windows program via a wiki on the net.
    i shrinked it and then used allocated area to create a new disk
    after i did it i got a warning that said: this may damage bootcamp (dont exactly remember) and i passed it easy and i wish i listened to it
    after i did it i went to my computer trying to check on my new partition but i saw some other partitions that i didnt see before
    so i  passed through that too.then i restarted to see if my os x is working or not and suddenley when i restarted and pressed option i just saw windows
    not macintosh hd not recovery disk
    now when i boot into windows it says repairing windowns and stuff
    is there a way to have my windows without reinstalling?
    guys please i know you dont have too but please do something my life depends on it

    Remove the drive and put it in an external case, put a new drive in the nachine and reinstall OSX, connect the old (now external) drive and see if there is any data left for you to recover.
    Next time, backup before you start, not after you make the mistake.

  • SCSM 2012 R2: Error in DW server after moving workflows to new server

    Hi
    We have installed a new management server and moved to workflows to the new server, and all looks like it works ok. Then we have followed this to remove the old managment server:
    http://marcelzehner.ch/2012/08/01/dealing-with-multiple-management-servers-33-decommission-old-management-servers/
    tBut in the data warehouse Operations Managerlog we see: Error 33546 MP Sync failed to connect to Data Access on the machine <name of old managment server>.
    Someone know how to fix this?
    Please advice
    jon

    Hi,
    You may refer to the below links to unregister the DW by using command Unregister-SCDWSource:
    http://technet.microsoft.com/en-us/library/hh541728(v=sc.20).aspx
    In addition, here is a blog to troubleshoot data warehouse issue:
    http://blogs.msdn.com/b/scplat/archive/2010/06/07/troubleshooting-the-data-warehouse-an-overview.aspx
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Missing songs from playlists after moving to a new mac

    Bought a new imac 5k. On my old Mac (Pro) I saved the library.xml file in order to save all my playlists (about 70), rather than save each individual playlist file (which would have taken too long.)
    Moved the library.xml file to my imac, "added to playlist", and it brought over all my old playlists. Cool, right?
    Nope. Many of them are missing songs now. I wrote down how many songs wee in each playlist on the Mac Pro before cleaning it out, and the same new playlist on my imac has a wrong/smaller song count.
    Now, I have to try and figure out which ones I'm missing? Ugh. Why didn't ALL of the the sings on each playlist transfer over? Any idea how to fix this? Running Yosemite 10.10.1.

    You can't install Adobe applications by copying from a backup.
    Start by cleaning out all the CS apps using Adobe Cleaner Tool:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Then download a new installer from here:
    Other downloads

  • How can I get bookmarks moved to a new laptop when my old broken laptop can no longer launch Firefox but does still allow access to all of the Profile files such as places.sqlite

    My old laptop appears to be a victim of Bit Rot according to an IT person who was here helping me. All of the support material I've seen so far related to moving bookmarks from one computer to another seem to assume that Firefox can be launched on the old computer (which can't be done in my case). I'd like to figure out how to use the files which may hold my extensive bookmark data while the old computer is still allowing me to access those files and save to a removable thumb drive.

    Fortunately I seem to have found and still have access to the old Profile files you're mentioning but I don't know how to make use of them such that Firefox on my new computer can incorporate all the data they hold. Again, I'm not able to open Firefox on the old computer. Any ideas how to use these .sqlite files on the new computer to get myself operable how I had been w. Firefox on the old broken one?

  • Finding and installing cartridges after moving to a new country

    HP customizes some products and cartridges to meet specific local customer needs. During your initial printer setup, the printer automatically set itself to accept cartridges specific to a country or region. If you take your product from that country to another country, you might not find cartridges with the same number on the label as your original cartridges. These cartridges will not work in your product even though they appear to be compatible with it. If you purchase cartridges that you believe are compatible with your product, and then try to install them, you might see one of the following error messages:
    'Incompatible Cartridges'
    'Cartridge Not Intended for this Printer'
    'Incorrect Cartridges'
    For further details, refer to this link
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

    Resolving a cartridge-related error message after moving to another country
    If your printer or your cartridges are within warranty, HP will help you resolve this issue. Before you contact HP, make sure that you have the following items ready:
    Your HP product
    A full set of HP cartridges for your new country or region
    A computer that is connected to your product
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

  • Playlists not showing up after moving itunes to new computer

    moved itunes to new computer and used an externa;l harddrive to move "iTunes" folder over.  the most recent "setup" of itunes on old computer is not showing on new computer.  For example "music" file size on external drive is 133GB - on new computer itunes, only 33GB.  and, playlists have disapeared.  any ideas?

    See Make a split library portable for some background on moving the library successfully. You need the main iTunes library.itl file, its supporting files and the Album Artwork folder as well.
    If you can find that data it should be possible to put everything together in the right shape and make it work.
    Otherwise I have two scripts called ImportDevicePlaylists and SyncStats which may prove useful.
    tt2

  • After moving files to new iMac, an iMovie project won't play audio music tracks

    I bought new imac. Transferred files using target disk method and firewire - drag and drop.  All files appear to have moved OK to new imac.  But when I try to resume working on an imovie project that I had started on the old imac, the itunes music clips I dragged into a series of clips does not play the music, even though the green bar appears under the clips and the audio adjustments appear to be the same as in the old imac, which I still have.  The audio that is "built in" to the original clips when the videos were made on the camera are still there and play.  Help, please ?  Thanks.

    Hi
    *Not knowing the origin to Your problem - General approach when in trouble is as follows.*
    • Delete iDVD pref file - *or rather start a new user/account* - log into this and re-try
    iDVD pref file resides.
    Mac Hard Disk (start-up HD)/Users/"Your account"/Library/Preferences
    and is named. com.apple.iDVD.plist
    While iDVD is NOT RUNNING - move this file out to desk-top.
    Now restart iDVD.
    • Free space on internal (start-up) hard disk if it is less than 10Gb should rather have 25Gb
    • Hard disk is untidy. Repair Permissions, Repair Hard disk (Apple Disc Util tool)
    • Program miss-match. iDVD 5.0.2, Mac OS X.4.11 AND QuickTime 7.5.5 - is OK - DON’T work under Leopard
    • Program miss-match. iDVD 6.0.4, Mac OS X.4.11 AND QuickTime 7.5.5 - is OK (might work under Leopard)
    • Program miss-match. iDVD’08 v. 7.0.1, Mac OS X.4.11 AND QuickTime 7.5.5 - is OK (might work under Leopard)
    • iDVD (08) v7 Locate theme folder. Move out iDVD1, iDVD 2 and eventually iDVD4 folders to desktop - re-try
    • Try a Cleaning CD/DVD that cleans the laser lens on the DVD burner/player
    iDVD 6.0.4 and iDVD 7.0.1 are compatible with Mac OS X 10.5 Leopard
    Last resort. from Craig. Solved the problem!! Finally!!
    I deleted every iDVD application and folder from my boot drive,
    emptied the trash and then installed iDVD 08 using the customize option
    and I am up and running.
    If You do a re-install be sure to get rid of all iDVD old parts AND then EMPTY the Trash-basket !
    iDVD updated ?
    Apple Codec updated ?
    Start a New Clean project - or delete project assets
    No of Colors - must be set to millions
    Yours Bengt W

Maybe you are looking for

  • Process version 2010 to 2012 update differences...why?

    I am a retired computer professional and I have used LR since V3 first came out and have recently updated my photos from process version 2010 to PV2012.  I used the batch process as I have ~200 GB of photos. My batch process is as follows: In the Lib

  • Can I install Mountain Lion on Mac OS Extended Encrypted?

    How does using the encrypted file system differ in term of functionality from the non encrypted option (talking about the options in disk utility)?  Are you able to install the OS onto a Mac OS Extended Journaled, Encrypted format partition? I herd s

  • Flash builder 4 - web services error

    good day,      I'm trying out flash builder 4 beta connect to a simple web service I've created (gsoap calc example).  using the connect data/service tab, I choose the web service and enter the service name and wsdl location (on localhost).  fb4 retr

  • Downloaded 9.0.1 firefox will not open

    Downloaded Version 9.0.1 to replace 7.0.1 and when I attempted to open Firefox, the following error message came up: This application has failed to start because MOZCRT19.dll was not found. Re-installing application may fix problem. Re-installed - no

  • Eyedropper tool does not copy all attributes

    Illustrator CS2 with Windows XP (SP2) Every document I've checked says that AI CS2's eyedropper tool will copy all appearance attributes. Yet it fails to copy the Align Stroke attribute. It's not given as an option on preferences so I haven't inadver