-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 instead of following such a long, lengthy and risky procedure, why not use GNU Parted. It works perfect. I've used it multiple times with 100% success on live systems.
rrs On Mon, 05 Apr 2004 12:38:40 -0400 (EDT) [EMAIL PROTECTED] wrote: > > Hi, > > ********************************************** > > I will not be responsible for consequences because of any mistakes that > you make. I have warned you. If you don't know what you are doing then > don't do it. > > ********************************************** > If you give me your harddrive partition layout. I will give you the list > of commands. > > > Read each and every line in the email carefully. One mistake will screw up > your entire file system. > > > YOU WILL NEED YOUR ORIGINAL LINUX CD(Redhat/SUSE/Debian/Fedora) Does not > matter they all have rescue mode. I mean it. > > Boot from the your Distro CD by selecting the RESCUE mode. > > Note You will be entering the rescue mode. not the installation mode. and > do not mount any of your filesystem. Skip it. > > It is not trivial but here is the list of steps you would follow. > > Make a full backup. > > Here is the step you would follow. > > To shadow your file system > > 1. acquire another harddrive, (if you don't have one then allocated > another partion on the same harddrive at a safe distance will will not > overlap with your resizing process) > > Make a partion, format and mount it > I am assuming you will mount thet at /backup > and your root will be mounted at /rootdisk > > 2. then > (cd /; tar cf - rootdisk ) | (cd /backup; tar xf - ) > > > This will shadow your entire hard drive this can be later on used to boot > your system even if you screw your original system. > > So it is your only rescue. > > Now umount both file systems. > > Here is the brief info for resizing. > > fsck -f /dev/hda1 make sure your file system is intact. > > 1. fdisk -l /dev/hda > > print this info ( I mean it) > Disk /dev/hda: 163.9 GB, 163928604672 bytes > 255 heads, 63 sectors/track, 19929 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/hda1 1 249 2000061 82 Linux swap > /dev/hda2 * 250 2740 20008957+ 83 Linux > /dev/hda3 2741 19929 138070642+ 83 Linux > > Above is my harddrive, for me the first if the swap, yours may be different. > here make sure you are having the info for Start/End cylinder info. This > is very important. Otherwise you will screw the entire system. > > I am going to assume that your going to merge hda2 and hda3 > > 2. Now delete hda3 and hda2 > 3. create a new partition of desired size. you cannot shrink it(even > though it is doable, you may lose your data, Since I already see your > first partiion is close to full). Let me say you have 40GB hard drive > first one is the root and the second is the swap. remove the swap also. > basically you will be deleting all the partitions on the harddrive and you > will have to move your swap to another area. You cannot move your root > partition you can only resize it. > Let us say you want to make it 20GB, Then from within fdisk delete all the > partition. > > The new partition should start from where your old root partition started > Like in my case it is 250 then let the end be at +20480M > Now create your swap may at the end of the harddrive at 19650 to the end > of of the harddrive like 19929. > > now set the partition type for the root and the swap. > then do mkswap on /dev/hda2 ( assuming this will be your swap) > > Then Now > > resize2fs /dev/hda1 (this will take a while) > > That is it. > > No your root partition has 20GB allocated. > > > > hi, > > > > I have RedHat Linux 9 installed on my machine, with the present > > configuration. > > > > Filesystem Size Used Avail Use% Mounted on > > /dev/hda1 5.2GB 4.2GB 707MB 86% > > /none 528MB 0 528MB 0% /dev/shm > > > > Actually the total disk size is 40GB, out of which i allocated only 5GB > > for Linux with 2GB for swap. And the remaining 33GB partition is > > unallocated. Now i want to increase the partition which is running, so > > that in future i dont run out of disk space. Any ideas on how to do this > > without disturbing the present setup ? > > > > regards, > > sandeep > > -- > > ___________________________________________________________ > > Sign-up for Ads Free at Mail.com > > http://promo.mail.com/adsfreejump.htm > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > linux-india-help mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/linux-india-help > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > linux-india-help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/linux-india-help - -- Ritesh Raj Sarraf RESEARCHUT (www.researchut.com) Happy GNU/Linux user since 1998 GPG Key ID: 0x04F130BC - ------ FORTUNE ! <JHM> Being overloaded is the sign of a true Debian maintainer. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAcjvd4Rhi6gTxMLwRApBpAJ0ZmfoPZdOMX3lBGUfUH1SewmAOqACgrrIh nXtQ9fVe2tO5ofSS9KpD118= =Wdu0 -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
