タイトルは若干釣りだが……。
超でかいプロジェクトがあって、その ある時点での ソースコードに対して grep
とかしたい、というような状況で必要になった。
Month: November 2015
マルチブート覚書
Change the partition size
- Use
gparted
from external disk (e.g., Ubuntu Live USB disk) and adjust partition sizes as you want.- note:
gparted
has bugs around handling HFS, so it behaves as if it has hung while it is moving a partition that contains HFS. Be patient and let it work. It may take more than 2 hours.
- note:
- If Windows won’t boot after this, you have to either reconfigure legacy MBR or rebuild BCD.
Reconfigure MBR
- Use
gptsync
from external disk.
Rebuild BCD
- Use
fdisk
and mark Windows partition as active.- This activeness seems not exclusive; i.e. more than one partition can be active at the same time. I’m not sure this causes any problems.
- Boot from Windows installation disk.
- Proceed to advance startup options and launch Command Prompt.
- Run
bootrec /RebuildBcd
. (you have to typey
once, in most cases) - Reactivate appropriate partition if necessary.
Restore initial bootloader
- Copy first 446 bytes from another disk; e.g.
sudo dd if=/dev/sdc of=/dev/sda bs=446 count=1
Proudly powered by WordPress.
Theme: Flat by YoArts.