naveen_dhankhar wrote:
>Hi,
> We r having a Redhat 6.0 linux box and want to upgrade it but during
>upgradation it says "may be out of space" .
> How to increase the partion size ?
>
There are several options,
1. Do you have more enough free disk space?
2. Do you have a extra harddrive with more capacity?
read at the bottom
If your position is 1:
then well repartition your hard disk and add the extra space. You have
to be very careful anyway. (Make back up!!! make backup!!!)
For this procedure to work you need a working copy of **resize2fs** or
**resize_reiserfs** on a rescue disk. and make sure that will work.
[root@linux include]# fdisk -l /dev/hda
Here is an example of my harddrive
Disk /dev/hda: 255 heads, 63 sectors, 4866 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2433 19543041 83 Linux
I have not used rest of the 18GB, So Now I am going to give you the guidance
now
go to fdisk /dev/hda
press d to delete the partition 1
press n to add a new parition
make it primary
Command (m for help): d
Partition number (1-4): 1
Command (m for help): d
Partition number (1-4): 2
then allocate the whole disk space for that parition
---------------------------
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-4866, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-4866, default 4866):
Using default value 4866
Command (m for help): p
Disk /dev/hda: 255 heads, 63 sectors, 4866 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 4866 39086113+ 83 Linux
Command (m for help): w
--------------------
Then reboot from your rescue disk with the resize file system command
then run resize.
Once it is done, you have a bigger file system, this procedure is only
meant if you want to preserve the data and you have no spare hard disk.
2. Do you have a extra harddrive with more capacity?
------------------------------------------------------
Then first of all make a bigger partition. then make a file system which
is compatible with your existinbg file system
For exampe (ext2 and reiserfs are compatible but they have little
differences like attribute support)
[root@linux include]# fdisk /dev/hdb
The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hdb: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-4865, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-4865, default 4865):
Using default value 4865
Command (m for help): p
Disk /dev/hdb: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 4865 39078081 83 Linux
Command (m for help): w
Create the file system
[root@linux include]# mkfs.ext3 -j /dev/hdb
then mount these to hard disks in different locations.
/dev/hda1 - /mnt/hd1
/dev/hdb1 - /mnt/hd2
then shadow the filesystem
(cd /mnt/hd1; tar cf - * ) | (cd /mnt/hd2; tar xf -)
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help