2
1
I had the following configuration of partitions on old 160GB disk:
/sda
/sda1 - 100MB - NTFS - System Recovery (hidden Windows partition)
/sda2 - 75GB - NTFS - Windows
/sda3 - extended partition
/sda5 - 75GB - EXT4 - Debian
/sda6 - 8GB - swap - swap partition
I used GPart to prepare new 500GB disk with identical order of corresponding partitions but different size (and 1 additional partition at the and) - I intended to clone them one by one with Clonezilla:
/sda
/sda1 - 100MB - NTFS - System Recovery (hidden Windows partition)
/sda2 - 160GB - NTFS - Windows
/sda3 - extended partition
/sda5 - 160GB - EXT4 - Debian
/sda6 - 32GB - swap - swap partition
/sda7 - 110GB - NTFS - additional partition
Up till now everything worked as expected. I cloned old sda1
into new sda1
, old sda2
into new sda2
and old sda5
into new sda5
. It didn't cloned bootloaded and I had to restore it manually with some live CD:
mount /devsda5 /mnt
--bind /dev /mnt/dev
--bind /proc /mnt/proc
--bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda5
update-grub
It correctly detected kernels I had installed as well as Windows partition.
Problem manifested when I tried to boot into Debian. Booting with newest kernel got stuck at Loading please wait...
screen. Booting in problem resolving mode got stuck at Running /script/local-premount
. Similarly attempt to boot Windows ends with message about corrupted installation.
Surprisingly I am able to boot into Debian using older kernel (currently on Jessie previous kernel from Wheezy). However, in this case no other partition can be mounted, even those which are stored on another physical drive, which couldn't be affected by the process since it was removed from the computer at a time.
What could be the source of the problem? What information could I provide to help figuring it out?
EDIT:
I managed to learn that boot of newest kernel without quiet
option shows the same results as recovery mode. After waiting some time (several minutes) I've got another message:
Begin: Running /scripts/local-premount ... resume: Could not stat the resume device file: '/dev/disk/by-uuid/[uuid]'
Please type in the full path name to try again
or press ENTER to boot the system:
After I pressed enter system finally booted. However it turns out the partition it is missing is the swap partition:
$cat /proc/meminfo | grep Mem # I have 8GBs of RAM
MemTotal: 8154632 kB
MemFree: 1367032 kB
MemAvailable: 4750344 kB
$ cat /proc/swaps
Filename Type Size Used Priority
/dev/sda6 partition 33554428 0 -1
Where can I make sure that partition is actually used?
Thanks for sharing this, +1. You should specify the windows version though. – Dmitry Grigoryev – 2015-07-09T18:59:32.837
I use Windows 7 Professional N, but problem with Windows would most likely occur on all NT descendants. Only solution is 7-specific though I believe solution for other versions would be almost identical. – Mateusz Kubuszok – 2015-07-09T22:08:55.523