2010/12/06 HDD の交換 †参考 †バックアップ †Clonezilla 1.2.3-27 CD で起動し、USB HDD にイメージバックアップを取得します。 HDD の交換 †参考URL 上記を参考に、内臓HDD (WDC WD3200BEVT 320GB 5400rpm 8MB) を Seagate ST9500420AS 500GB 7200rpm 16MB に交換します。 リストア †Clonezilla 1.2.3-27 CD で起動し、USB HDD に取得したバックアップイメージを新しい HDD にリストアします リストアは、イメージが 78GB で 2時間ほどかかりました。 リストアが完了したら再起動します。 未使用領域の設定 †Ubuntu を起動します。 「システム」メニューから「システム管理」→「ディスク・ユーティリティ」を起動します。 未使用領域 180GB にパーティションを作成しようとすると、小さなパーティションしか作成できず、未使用領域が残ってしまいました。 gparted-live-0.5.2-1 CD で起動し、ターミナルを起動し、GPT を修正します。 # parted /dev/sda GNU Parted 2.2 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 351630720 blocks) or continue with the current setting? Fix/Ignore? F Model: ATA ST9500420AS (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 20.5kB 210MB 210MB fat32 EFI system partition boot 2 210MB 51.6GB 51.4GB hfs+ Customer 3 51.6GB 316GB 264GB ext4 4 316GB 320GB 4458MB linux-swap(v1) そして、GParted で /dev/sda3 を増やします。/dev/sd4 の swap を一度削除し、/dev/sda3 の容量を増やし、/dev/sd4 に再度 swap を作成します。 MacBook を再起動し、rEFIt メニューから Partitioning Tool を選択し、MBR を update します。 しかし、これだけでは、rEFIt メニューから Linux を選択しても、Ubuntu を起動できませんでした。 gparted-live-0.5.2-1 CD で起動し、「Local operating system in harddrive」を選択し、HDD の Ubuntu を起動します。 $ sudo grub-install /dev/sda3 [sudo] password for kenji: /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.. /usr/sbin/grub-setup: error: if you really want blocklists, use --force. error になったので --force オプションを付けてみます。 $ sudo grub-install --force /dev/sda3 /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.. Installation finished. No error reported. しかし、これを実行したら、rEFIt メニューで Linux のアイコンが 2つになり、gparted-live CD からも Ubuntu を起動できなくなりました。 rEFIt をアップデートしてみましたが、やはり起動できません。 しかたがないので、Clonzilla で sda3 のみを再度リストアしたら、rEFIt から Ubuntu を起動でるようになりました。 その後、 $ sudo grub-install /dev/sda3 を再度実行したため?か、また起動できなくなりました。Clonzilla で sda3 のみを再度リストアしたら、rEFIt から Ubuntu を起動でるようになりました。 スワップ領域の再設定 †swap パーティションを作り直しているので、UUID が変わってしまっています。 UUID を調べ、 $ sudo blkid /dev/sda4 /dev/sda4: UUID="2af2f053-4e7d-48dc-962f-c0c0cb7ed7b5" TYPE="swap" fstab の設定を変更します。 $ sudo vi /etc/fstab スワップを有効にします。 $ sudo swapon -a $ free total used free shared buffers cached Mem: 4082904 682484 3400420 0 11500 348008 -/+ buffers/cache: 322976 3759928 Swap: 4353604 0 4353604 ※ ハイバネートから復帰するためには、/etc/initramfs-tools/conf.d/resume の修正も必要なようです。 $ sudo vi /etc/initramfs-tools/conf.d/resume $ sudo update-initramfs -u
|