[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Moving system from current old MBR HDD to new GPT HDD

From: Warpme
Subject: Moving system from current old MBR HDD to new GPT HDD
Date: Sun, 19 May 2013 11:26:42 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

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

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 ?

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 :-(

Attachment: warpme.vcf
Description: Vcard

reply via email to

[Prev in Thread] Current Thread [Next in Thread]