Repartitioning a disk with preinstalled Windows 7

Anything
Awatar użytkownika
admin
Site Admin
Posty: 104
Rejestracja: ndz lip 17, 2011 8:51 am

Repartitioning a disk with preinstalled Windows 7

Post autor: admin »

  1. Create recovery media and test it
  2. Shrink the W7 partition. Turn off memory file. Turn off hibernation:

    Kod: Zaznacz cały

    powercfg -h off
  3. Use clonezilla to store the W7 partition

    Kod: Zaznacz cały

    ntfsclone -s -o - /dev/sdax | gzip -c >image.gz
  4. If you have a Windows 7 installer and want to use it:
    1. Create linux partition number 3 and extended partition number 4. Leave space at the beginning for Windows. Probably if you reserve also the 2nd partition for Linux, W7 will install both loader and system into partition 1. But to save partitions it's better to have W7 loader at 1, and Windows in the extended.
    2. Install Linux
    3. Install W7 - it will create 2 partitions. The first one is a 100MB boot partition.
    4. Restore GRUB with Linux installer disk. Later it can be done through:

      Kod: Zaznacz cały

      /etc/default/grub, grub-mkconfig, grub-install
    5. Restore cloned partition:

      Kod: Zaznacz cały

      gzip -c image.gz | ntfsclone -O /dev/sdax -
    6. Log into installed W7 and use bcdedit to make cloned W7 loggable.
    Alternatively:
    1. Install Linux
ODPOWIEDZ