LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-12-2006, 08:16 AM   #1
josegata
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, 12:49 PM   #2
bigrigdriver
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, 06:30 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
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.

jlinkels
 
  


Reply


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 10:57 AM
Merging Unalocated Partitions lramos85 Linux - Newbie 6 07-22-2004 02:29 PM
merging partitions question (RH9) LooseCanon Linux - General 2 10-02-2003 02:45 PM
Merging partitions Chrissi Linux - General 7 06-08-2003 08:36 PM
What partitions-got a lot of harddrive space CodeWarrior Linux - General 4 05-15-2003 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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