[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Moving system from current old MBR HDD to new GPT HDD
From: |
Andrey Borzenkov |
Subject: |
Re: Moving system from current old MBR HDD to new GPT HDD |
Date: |
Sun, 19 May 2013 13:41:11 +0400 |
В Sun, 19 May 2013 11:26:42 +0200
Warpme <address@hidden> пишет:
> Hi *
> I'm trying to understand where I do mistake...
> I want to migrate my ArchLinux (3.3.8 kernel) running on MBR partitioned
> HDD to new GPT HDD.
> I'm using grub 2.00
>
> What I do:
> 1.using gdisk I create GTP partitions on my new HDD like following:
>
> gdisk /dev/sdb
>
> GPT fdisk (gdisk) version 0.8.4
>
> Partition table scan:
> MBR: protective
> BSD: not present
> APM: not present
> GPT: present
>
> Found valid GPT with protective MBR; using GPT.
>
> Command (? for help): p
> Disk /dev/sdb: 20971520 sectors, 10.0 GiB
> Logical sector size: 512 bytes
> Disk identifier (GUID): B76025A4-B90F-4781-8754-0B0EBF699230
> Partition table holds up to 128 entries
> First usable sector is 34, last usable sector is 20971486
> Partitions will be aligned on 8-sector boundaries
> Total free space is 6 sectors (3.0 KiB)
>
> Number Start (sector) End (sector) Size Code Name
> 1 40 409639 200.0 MiB EF02 BIOS boot
> partition
> 2 409640 9625639 4.4 GiB 8300 Linux filesystem
> 3 9625640 18841639 4.4 GiB 8300 Linux filesystem
> 4 18841640 20971486 1.0 GiB 8300 Linux filesystem
>
> 2. Make ext3 volume on 2nd partition on new HDD
>
> 3. Mount 2nd part and rsync current OS to this new volume
>
On which mount point?
> 4. Install grub on new HDD
> grub-install /dev/sdb
>
> 5. Adjust /etc/default/grub for suitable kernel boot parameters, etc.
> -changed "GRUB_CMDLINE_LINUX="vga=0x305 console=tty1 init=/bin/systemd"
> -uncomment "GRUB_DISABLE_LINUX_UUID=true"
>
> 6. Make grub.cfg
> grub-mkconfig -o /boot/grub/grub.cfg
>
> 7. Inspect new grub.cfg for any UUID references. There is no any
> reference to UUID.
>
> New, when I'm trying to boot OS from new HDD I'm receiving following error:
>
> Welcome to GRUB!
> error: no such device <UUID of old HDD boot partition>
> Entering rescue mode
>
> I make sure new grub.cfg hasn't any entries with old boot part UUID
> (ff6d81f8-e6ab-4d80-92b5-df70748629e1).
> Only place on new HDD where I see it is /boot/grub/i386-pc/load.cfg
>
> search.fs_uuid ff6d81f8-e6ab-4d80-92b5-df70748629e1 root hd0,msdos1
> set prefix=($root)/boot/grub
>
> Where is error in above procedure ?
>
GRUB needs to know where /boot/grub is located. So it either takes it
from mount point or you need to explicitly tell where it is using
grub-install --boot-directory=/boot_alt ...
In your case you need to mount /boot filesystem from the second HDD
somewhere and tell grub it should look there.
> BTW: I also tried to use grub install cmd line form Arch wiki
> grub-install --target=i386-pc --recheck --debug /dev/sdb
>
> Issue is the same :-(