[Novalug] merging 2 patitions

Walt Smith waltechmail@yahoo.com
Thu Aug 14 14:45:52 EDT 2014


hi,

problem:
I want to merge 2 partitions into one partition,
as 80g part 1 has run out of space.   It has OS  and
most space used is /home occupying about 66 g.

CentOS 6.4 or 5, 2 gig ram ( runs pretty good for single core )
HD = 160g drive ( serial onboard IF )
HD = (part 1 = 80 gig ext4 )+ (part 2 /swap 4 (?) gig)  + (part 3 = 80 gig) 
(fdisk data below)


***for the avid reader:

part 1 contains OS + /boot + /home ( all except swap )
part 3 empty.  Will simply remove /swap until done.

# mount
/dev/sda1 on / type ext4 (rw)


desire a little discussion, but no longer desire to be
a partitioning expert.   In particular, 

looks like I need to remove swap.  this is easy.
To extend, it looks like cylinder total is 19457, 
I'd use 10200 to ~18948 ? )
then remake swap at 18949 ( hopefully software just lets me
select num of gigs ).

1. grow part 1 into part 2 and 3? 
( probably boot from live CD, fedora 12, or 16 or something
similar most likely.   )
2. utility to use ?
3. effect of LVM being turned on ?  )
I've never "used" a LVM other than selecting ON/OFF
from install menu.
4. effect of selinux in permissive mode.
5. any other config's/options to think about ?
6. The complicated way ( for me ) would be to partition
the empty 80 gig, mkfs ext4 and use LVM to add it to
part 1.   generally, I don't want to think about this..
( but a little/short info about it may be handy )
7.  I have a 32 gig flash drive.  I suppose I could move
the whole OS except home to this first ?  I can backup 
/home to a spare 80 gig ide drive I have here..

--------------------------------------------
# fdisk /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd1ed2662

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       10199    81920000   83  Linux
/dev/sda2           10199       10709     4096000   82  Linux swap / Solaris

---xpert mode 
Disk /dev/sda: 255 heads, 63 sectors, 19457 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
 1 80  32  33    0 254  63 1023       2048  163840000 83
 2 00 254  63 1023 254  63 1023  163842048    8192000 82
 3 00   0   0    0   0   0    0          0          0 00
 4 00   0   0    0   0   0    0          0          0 00


Thanks for reading and thinking about the above...
will let suggestions swash around in brain...


Walt....

----
The government is lawless, not the people.



More information about the Novalug mailing list