[分享]硬盘安装GParted Live CD,不用刻盘的!!!linux下的硬盘分区魔法师

仅仅用于软件推荐,不适合发求软件或软件使用问题方面的贴子
回复
yangzhengbao
帖子: 39
注册时间: 2007-11-27 11:43

[分享]硬盘安装GParted Live CD,不用刻盘的!!!linux下的硬盘分区魔法师

#1

帖子 yangzhengbao » 2008-08-13 20:55

本人原创,保证绝对可用,欢迎转载,请注明出处!

http://hi.baidu.com/geyangshun/blog/ite ... 6e0a1.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.
大家都知道安装linux后比如安装ubuntu后一般是3个分区,boot,根分区,swap分区。
如果根分区比较大,你想把根分区再分区怎么办?
到windows下不行,不支持。用fdisk吧,没有这个功能。
安装gparted吧,怕有危险,怎么办?

下载个live CD刻录安装即可。不过如果你没有刻录机,那可以望下看,把Live CD安装到硬盘上。
这里重点讲的是硬盘安装GParted 的 Live CD 。
下载live CD的Zip版本。这个很重要。不是iso版的,iso版的解压后没有live目录的。
比如我找到的一个下载地址:
http://transact.dl.sourceforge.net/sour ... .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
注意:toram必须有保证分区不被锁定。
(hd0,3)中的3自己根据自己的情况写,我的是(hd0,9)。
后记:当然如果你把下载的东东放到FAT分区也很好啊,可以和windows共用。这个软件的最大作用是可以改变linux下的根分区的大小。如果你的根分区20G或30G用不完的话用这个软件很好吧。
还有linux下也有分区魔方师,可以让玩过linux和即将玩linux的朋友增强信心。
就像qq for linux官方版的诞生,可能还不如lumaQQ功能强,但是,给别人介绍linux的时候可以说linux下也有QQ!当然我还遇到过lumaQQ无法登陆的问题,但是用官方的就可以登录,对于刚入门的linux爱好者来说是个不错的体验。体验很重要的。
如果安装个linux都很费劲,安装上了显卡驱动有找不到,显卡安装上了,pppoe上网连接被重置又不能解决的话,可能会是一半的爱好者离开linux。
这里我说的上网不能解决是这样一个由来。
某天我个甲安装上了ubuntu,pppoe设置上了,并且开机启动。但是当他用浏览器的时候连接被重置。结果可想而知,只能关机重启。因为他不会命令。你说尴尬不尴尬!!!
上次由 yangzhengbao 在 2008-08-13 22:05,总共编辑 4 次。
头像
luojie-dune
帖子: 22033
注册时间: 2007-07-30 18:28
系统: Linux
来自: 空气中

#2

帖子 luojie-dune » 2008-08-13 21:19

。。。感觉奇怪
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议
yangzhengbao
帖子: 39
注册时间: 2007-11-27 11:43

#3

帖子 yangzhengbao » 2008-08-13 21:24

自己下载做一下就明白了。需要的2个软件GParted 的Live CD一定要是zip文件的,和grub for dos。
回3楼的大哥,ubuntu live cd里的是zip文件的么?实践出真知啊。live cd里的只能安装到ubuntu系统里吧。
我说的这个live cd 是Gparted的live CD,不是ubuntu live cd 里的gparted软件。
上次由 yangzhengbao 在 2008-08-13 22:00,总共编辑 2 次。
xeoc
帖子: 1994
注册时间: 2007-05-06 10:12

#4

帖子 xeoc » 2008-08-13 21:49

GParted
livecd里就有,而且,这个东西硬盘版有什么用?
头像
bobo712
帖子: 63
注册时间: 2007-09-26 15:27

#5

帖子 bobo712 » 2008-08-13 21:52

学习
多谢
hitly
帖子: 391
注册时间: 2006-02-20 0:27

Re: [分享]硬盘安装GParted Live CD,不用刻盘的!!!linux下的硬盘分区魔法师

#6

帖子 hitly » 2008-11-06 20:33

不错,为了LFS找到这来了,就是这个东东有点大,能不能用USB那个来实现呢?
myz
帖子: 6
注册时间: 2008-11-07 16:31

Re: [分享]硬盘安装GParted Live CD,不用刻盘的!!!linux下的硬盘分区魔法师

#7

帖子 myz » 2008-11-13 9:01

这软件支持NTFS的分区吗?谢谢!
回复