Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-12-2006, 09:16 AM   #1
LQ Newbie
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Merging Harddrive Partitions

How to i free some space from the swap partition(/dev/hda3) and allocate it to the main linux partition(/dev/hda4).
Also how do i free some space from a linux partition(/dev/hda2) that is not mounted and allocate it to the main linux partition(/dev/hda4)?
Old 05-12-2006, 01:49 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The easiest way to do that (easiest, as in, least amount of work, fewest problems to deal with) would be to make a full backup of hda2 and hda4. Store the backup somewhere else (not in hda2 or hda4), if those partitions contain an operating system you want to keep.

Then use that operating system's installation media to do a minimal installation. Delete hda2, hda3, and hda4. Then make new hda2, hda3, and hda4. Make the minimal installation. Then restore the full backups of hda2 and hda4.
Old 05-12-2006, 07:30 PM   #3
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Bigrigdriver I agree with you that this is simple. Despite of all those fancy tools it is easy what you propose.

However, why do you suggest a new install of the OS. Wouldn't it suffice if you use a live CD, and then do what you say except reinstalling the OS? After all, you are not messing with the MBR, only partitions.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing two Windows partitions under SuSE 9.2 and merging them with Linx partition. crozewski Linux - General 4 04-16-2005 11:57 AM
Merging Unalocated Partitions lramos85 Linux - Newbie 6 07-22-2004 03:29 PM
merging partitions question (RH9) LooseCanon Linux - General 2 10-02-2003 03:45 PM
Merging partitions Chrissi Linux - General 7 06-08-2003 09:36 PM
What partitions-got a lot of harddrive space CodeWarrior Linux - General 4 05-15-2003 10:36 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration