Partition misaligned - Linux

Table of Contents

我成功了,調整過程如下:

用 LiveCD or LiveUSB 開機,備份 /home 下的東東

( 我的 /home 是獨立的 partition )

sudo cp -Rp /mnt/home/* /mnt2/backup/

然後用 fdisk 調整 partition table

除了 /dev/sda1 不動,刪掉其他的partition,

在重設 partition 時以 sector 為單位,小心的將 partition 分在正確的地方,

設定好了以後,再重新格式化新的分區。並 resize /dev/sda1 把多出來的空間

分割進去。最後把剛剛備份的放回去。

sudo cp -Rp /mnt2/backup/* /mnt/home/

現在的分割:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x423e2fd4

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 97675199 48836576 83 Linux
/dev/sda2 97675200 625142447 263733624 5 Extended
/dev/sda5 97675264 614656624 258490680+ 83 Linux
/dev/sda6 614656688 625142447 5242880 82 Linux swap / Solaris

現在就沒問題了,沒有 misalignment 的警告了。

謝謝大家的幫忙! bow

--

All Comments

Lauren avatarLauren2010-04-29
你如果用fdisk的話 要跑一次fsck 檔案系統才會延伸出去喔
Lily avatarLily2010-04-30
延伸的部份我是用 gPart 做的
Mary avatarMary2010-05-04
我的解決方法是"不要使用延伸分割區"切成四個主分割就好了
Genevieve avatarGenevieve2010-05-05
只知道distro安裝下去,先以spfdisk分割好的表就亂了(經驗談)