Top Ubuntu 9.10 でのディスク障害

問題なさそうな HDD

基本的に SATA 2.5in 9.5mm の HDD ならいいはずですが...

  • Western Digital
    • WD6400BEVT 640GB 5400rpm 8MB \9,480
    • WD3200BEVT 320GB 5400rpm 8MB \4,950
  • 日立GST
    • HTS725050A9A364 500GB 7200rpm 16MB \9,376
    • HTS725032A9A364 320GB 7200rpm 16MB \6,329
    • HTS545050B9A300 500GB 5400rpm 8MB \6,750
    • HTS545032B9A300 320GB 5400rpm 8MB \4,450

参考URL

2010/03/17 HDD の交換

Clonezilla CD で起動し、HDD 全体のイメージを USB HDD にバックアップします。

参考URL

上記を参考に、内臓HDD (FUJITSU MHY2160BH 160GB 5400rpm 8MB) を HTS545032B9A300 320GB 5400rpm 8MB に交換します。

Clonezilla CD で起動し、バックアップしたイメージを新しい HDD にリストアします。

未使用領域の設定

Ubuntu を起動します。

「システム」メニューから「システム管理」→「ディスク・ユーティリティ」を起動します。

未使用領域 160GB にパーティションを作成しようとすると、以下のエラーでできませんでした。

Error creating partition: helper exited with exit code 1: In part_add_partition: device_file=/dev/sda, start=160041868800, size=160031064576, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
Entering MS-DOS parser (offset=0, size=320072933376)
MSDOS_MAGIC found
found partition type 0xee => protective MBR for GPT
Exiting MS-DOS parser
Entering EFI GPT parser
GPT magic found
partition_entry_lba=2
num_entries=128
size_of_entry=128
Leaving EFI GPT parser
EFI GPT partition table detected
containing partition table scheme = 3
got it
Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)?
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 312560640 blocks) or continue with the current setting? 
got disk
new partition
Error: Unable to satisfy all constraints on the partition.
ped_disk_add_partition() failed

gparted-live-0.5.2-1 CD で起動し、ターミナルを起動し、GPT を修正します。

# parted /dev/sda
(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 312560640 blocks) or continue with the current setting? 
Fix/Ignore? F

そして、GParted で /dev/sda3 を増やします。/dev/sd4 の swap を一度削除し、/dev/sda3 の容量を増やし、/dev/sd4 に再度 swap を作成します。

MacBook を再起動し、rEFIt メニューから Partitioning Tool を選択し、MBR を update します。

しかし、これだけでは、rEFIt メニューから Ubuntu を選択しても、起動できませんでした。

gparted-live-0.5.2-1 CD で起動し、「Local operating system in harddrive」を選択し、HDD の Ubuntu を起動します。

$ sudo grub-install /dev/sda3

これで、やっと Ubuntu を起動できるようになりました。

スワップ領域の再設定

swap パーティションを作り直しているので、UUID が変わってしまっています。 UUID を調べ、

$ sudo blkid /dev/sda4
/dev/sda4: UUID="a8322b93-9c7d-4c28-be08-fcf77743b021" TYPE="swap" 

fstab の設定を変更します。

$ sudo vi /etc/fstab



トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-12-06 (月) 08:26:38 (4912d)