Author Topic: merge partitions  (Read 1273 times)

Offline dupek

  • Full Member
  • ***
  • Posts: 72
merge partitions
« on: April 10, 2012, 08:57:59 AM »
I remove winxp and have 9.3G left. I del that winxo partition and created  linux partition. I would like to merge the former winxp partition with /home partition. Is that possible?. The kde partition manager do not give to me that option. The other way, I see, is to boot into live cd and use one of there partition tools to merge partition, but would that screw up my pclos?.
Thanks.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: merge partitions
« Reply #1 on: April 10, 2012, 09:12:44 AM »
Post details of the partitions on the HDD ......  do as root from a terminal

fdisk  -l

Copy and paste the full output (including command) into your next post.
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: merge partitions
« Reply #2 on: April 10, 2012, 09:24:23 AM »
I remove winxp and have 9.3G left. I del that winxo partition and created  linux partition. I would like to merge the former winxp partition with /home partition. Is that possible?. The kde partition manager do not give to me that option. The other way, I see, is to boot into live cd and use one of there partition tools to merge partition, but would that screw up my pclos?.
Thanks.

What you want to do is certainly possible. If your winxp partition is adjacent to your /home partition and comes after it, then it's absolutely trivial. Any partition manager should be able to handle it easily. You just have to delete the winxp partition before you can add the space to /home.

If your winxp comes before your /home partition, the operation it will take some time (and I recommend that you use GParted for the job). If the partitions are not adjacent, then you have to move around quite a lot of data. As Just18 wrote, post the output of "fdisk -l". (Run the command as root in a terminal.)
« Last Edit: April 10, 2012, 01:00:36 PM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15506
  • ┌∩┐(◕_◕)┌∩┐
Re: merge partitions
« Reply #3 on: April 10, 2012, 09:33:08 AM »
Additionally. please remember to backup your data before going ahead with the deletion/merge etc
PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline dupek

  • Full Member
  • ***
  • Posts: 72
Re: merge partitions
« Reply #4 on: April 10, 2012, 09:41:59 AM »

/dev/sda1   *          63      867509      433723+   7  HPFS/NTFS
/dev/sda2        20515005    58605119    19045057+   5  Extended
/dev/sda3          867510    20515004     9823747+  83  Linux
/dev/sda5        20515068    40387409     9936171   83  Linux
/dev/sda6        40387473    42572249     1092388+  82  Linux swap / Solaris
/dev/sda7        42572313    58605119     8016403+  83  Linux
 
I would like to merge partition /dev/sd3 with /home on /dev/sd2. Want more space on /home partition.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: merge partitions
« Reply #5 on: April 10, 2012, 10:27:38 AM »
Please also post the output of the commands

df

and

blkid -c /dev/null

so we can be sure of everything.

Thanks.

And Please  Include  the command when copying and pasting the output!
That is important.
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Re: merge partitions
« Reply #6 on: April 10, 2012, 10:39:54 AM »

/dev/sda1   *          63      867509      433723+   7  HPFS/NTFS
/dev/sda2        20515005    58605119    19045057+   5  Extended
/dev/sda3          867510    20515004     9823747+  83  Linux
/dev/sda5        20515068    40387409     9936171   83  Linux
/dev/sda6        40387473    42572249     1092388+  82  Linux swap / Solaris
/dev/sda7        42572313    58605119     8016403+  83  Linux
 
I would like to merge partition /dev/sd3 with /home on /dev/sd2. Want more space on /home partition.

/dev/sda2 is an Extended partition.  I don't think that is your /home partition.  If we exclude /dev/sda3 (as the former XP?), then /home must be on either /dev/sda5 or /dev/sda7, with the other being /.

Offline dupek

  • Full Member
  • ***
  • Posts: 72
Re: merge partitions
« Reply #7 on: April 10, 2012, 02:52:34 PM »
OK. This look like a complicated job. How can I restore grub, if I install xp on hd. To mine understanding, windows will overwrite the grub. Is that correct?. I can make one partition for xp.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: merge partitions
« Reply #8 on: April 10, 2012, 03:00:47 PM »
Quote
OK. This look like a complicated job.

The only complication is the lack of information on which to base correct advise.


If you have changed your mind then I suggest that you close this thread and open another after you have searched the forum for previous answers/threads about your grub questions, if you still have some outstanding questions.
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: merge partitions
« Reply #9 on: April 10, 2012, 04:41:07 PM »

/dev/sda1   *          63      867509      433723+   7  HPFS/NTFS
/dev/sda2        20515005    58605119    19045057+   5  Extended
/dev/sda3          867510    20515004     9823747+  83  Linux

/dev/sda5        20515068    40387409     9936171   83  Linux
/dev/sda6        40387473    42572249     1092388+  82  Linux swap / Solaris
/dev/sda7        42572313    58605119     8016403+  83  Linux
 

One more slight problem. Partition sda3 is actually a primary partition, and should be sda2. /dev/sda3 should be the extended partitions' container.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline dvhenry

  • Full Member
  • ***
  • Posts: 106
Re: merge partitions
« Reply #10 on: April 14, 2012, 08:08:12 AM »
Quote
I would like to merge partition /dev/sd3 with /home on /dev/sd2. Want more space on /home partition.
Do you mean you would like to use the free space made available through deleting windows and add that space to /home? as indicated in your first post?
Quote
I remove winxp and have 9.3G left. I del that winxo partition and created  linux partition. I would like to merge the former winxp partition with /home partition. Is that possible?.
If so, the procedure I would use is simple and reliable, but can take time.
If you indicate where /home is (answering reply #5 wouldn't hurt) we could give you some options.

EDIT: My assumption as to where windows was installed was incorrect, so I have removed the reference to that.

« Last Edit: April 14, 2012, 07:59:31 PM by dvhenry »