Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-19-2010, 07:52 PM   #1
LQ Newbie
Registered: May 2009
Posts: 6

Rep: Reputation: 0
Need to merge partitions

I have many partitions on my harddrive:

/dev/sda1 * 1 14779 118707168 7 HPFS/NTFS
/dev/sda2 14780 30401 125483715 5 Extended
/dev/sda5 14780 14846 538146 82 Linux swap / Solaris
/dev/sda6 14847 15812 7759363+ 83 Linux
/dev/sda7 15813 30075 114567516 83 Linux
/dev/sda8 30076 30401 2618563+ 83 Linux

Its a little messy i did a bunch of stuff .... i need to merge sda7 and sda 8 together ... sda7 is my /home and 8 is just free. i have looked around online and they all seem flaky or i dont get them.

plz help
Old 08-19-2010, 08:10 PM   #2
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Considering the last partition is empty, you can just delete it and resize 7 to the end of the disk with cfdisk, then use resize2fs, which will automatically take up all of the free space.

Alternatively you can just use gparted which I think will do all of this for you with a gui.

This is actually a pretty simple operation. But I still recommend you backup your important info *just in case*

Last edited by Meson; 08-19-2010 at 08:13 PM.
Old 08-19-2010, 08:29 PM   #3
Senior Member
Registered: Jun 2008
Posts: 1,809

Rep: Reputation: 216Reputation: 216Reputation: 216
Just delete and expand...

GpartedLive or PartedMagic, both live-cd partitioning tools with a graphic presentation, would make the job easier.
Old 08-19-2010, 10:56 PM   #4
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
What is the file system? Why bother going through the trouble of making a boot disk if his filesystem supports online resizing? My guess is we're talking about an ext3 or ext4 fs here, so he can just do it in place. Even if it's a different filesystem, being that sda7 is only /home, his system can run just fine without it.
Old 08-20-2010, 06:40 AM   #5
LQ Newbie
Registered: May 2009
Posts: 6

Original Poster
Rep: Reputation: 0
oh my

i have been looking at the commands well i dont know why i didnt think of this earlier, but i am gonna just move all the files onto the windows partition, delete it all, and resize.

Old 08-20-2010, 07:00 AM   #6
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41
mruschmann, you don't have to download anything to use Gparted, if you already have the liveCD: just boot with that (the liveCD) and run Gparted from "System" > "Administration" menu (look

... and there, just delete /dev/sda8 and expand/resize /dev/sda7

Last edited by fbobraga; 08-20-2010 at 07:09 AM.


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
how to merge two partitions and how to disable KTTSD!! kiruja Linux - Newbie 3 02-19-2010 06:20 AM
LXer: KHTML Vs Webkit: To Merge or Not To Merge LXer Syndicated Linux News 0 10-27-2007 06:41 AM
merge partitions. Bonsai_XYZ Linux - Software 5 07-25-2006 03:04 AM
merge partitions? Leonig Mig Linux - General 2 06-06-2005 11:15 AM
Is it possible to merge two partitions cheetahman SUSE / openSUSE 7 04-10-2005 08:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:02 AM.

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