|
本人原创,保证绝对可用,欢迎转载,请注明出处!
http://hi.baidu.com/geyangshun/b ... 0934cd0b46e0a1.html
GParted Live on harddisk
Besides GParted Live CD and Live USB, we can put GParted Live on harddisk. This is howto:
Here we use grub boot loader as an example. You have to put the GParted live files in a FAT, ext2/3, reiserfs or any grub supported partition.
If you do not have such a partition, you can use gparted to resize your partition and create another partition to put GParted live. Here we assume you already have a FAT partition /dev/hda4 to put GParted live. This is how to do that:
1. Boot the OS in the harddrive, saying it's GNU/Linux.
2. Mount /dev/hda4 as /mnt, you can make it by: "mount /dev/hda4 /mnt"
3. Download GParted live zip file, and unzip all the files in /mnt, make sure you put all the files in /mnt, say, COPYING is in /mnt/, not in any subdir. You can make it by something like: "unzip gparted-live-*.zip -d /mnt" (Replace gparted-live-*.zip with the file name you just downloaded).
4. It is recommended to remove /mnt/makeboot.bat to avoid some mistake.
5. Edit your grub config file /boot/grub/menu.lst, and append the following:
-----------
title GParted live
root (hd0,3)
kernel /live/vmlinuz1 toram boot=live union=aufs noswap noprompt vga=788 ip=frommedia
initrd /live/initrd1.img
boot
-----------
//NOTE// Here we put an extra param "toram" so that the partition /dev/hda4 won't be locked. In grub syntax, here /dev/hda4 is (hd0,3).
Remember to check parameters in syslinux/syslinux.cfg from the zip file, copy them to here. It might be different from here, say vmlinuz1 path maybe different.
For more info about grub, you can refere to here.
下载下live CD安装即可。
这里重点讲的是硬盘安装GParted 。
下载live CD的Zip版本。这个很重要。
比如我找到的一个下载地址:
http://transact.dl.sourceforge.n ... ed-live-0.3.8-1.zip
第二:解压到一个fat或fat32分区。比如d:下,确保根目录下有live目录和syslinux目录。
修改menu.lst加上一下语句即可。
title GParted live
root (hd0,3)
kernel /live/vmlinuz1 toram boot=live union=aufs noswap noprompt vga=788 ip=frommedia
initrd /live/initrd1.img
boot |
|