LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-18-2008, 04:07 PM   #1
broadbanded
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
2 many partitions - merging ideas welcomed!


Hi everyone:

thanks in advance for your kind assistance and 4 bearing with me. while installing ubuntu 8.04 lts, somehow selected the wrong choices with GParted 0.3.5. from two original partitions on 'c' /dev/sda1 [ntfs, where WinXP MCE resides from factory] and /dev/sda2 [fat32, a repository to reinstall WinXP if something does go wrong] i got what i think are 2 many partitions. this situation has me scratching for a solution!

GParted now shows:

[Partition|Filesystem|Mountpoint|Size|Flags] - Used|Unused not shown

/dev/sda1--|ntfs-------|-|-57.77GiB|boot
/dev/sda4--|extended---|-|-39.14GiB|
/dev/sda5--|ext3-------|-|729.48MiB|
/dev/sda7--|ext3-------|/|-32.22GiB|
/dev/sda8--|linux-swap-|-|--1.56GiB|
/dev/sda6--|linux-swap-|-|--1.65GiB|
/dev/sda2--|fat32------|-|-13.87GiB|lba
unallocated|unallocated|-|--1.00GiB|

the intentions are: 1- to merge partitions, 2- put the unallocated "slice" to work, 3- have the bare minimum of partitions required!

thanks again to all!

Last edited by broadbanded; 06-18-2008 at 04:15 PM.
 
Old 06-18-2008, 04:26 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You should only need one swap partition for a start. Is Ubuntu the only distro you are using? I haven't deleted one before that may have been in use, so do some googling on the matter. i'd suggest that a look at /etc/fstab will tell you which is in use. Delete the other.

I assume that /dev/sda4, as an extended partition simply encapsulates logical the partitions below it (as opposed to primary) (or at least sda5-8, perhaps 6).

From there, you should be able to move partitions to get the unalocated space where you want it an enlarge whichever you want.

This means that you'd be left with 2 partitions for Ubuntu - sda5 and 7 (short of reinstalling I think you're stuck with 2, but so what?), your ntfs partition, a fat32 (you use this for sharing?), your extended partition, one swap plus some free space to be incorporated.
 
Old 06-18-2008, 06:02 PM   #3
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
This is where being on LVM pays off. But anyway:

- Disable swapping first

1. Use swapoff -a to turn all swap devices off.
2. fdisk and delete those partitions

- Delete /dev/sda5
- Create new swap device and edit /etc/fstab accordingly
- swapon the new device
 
Old 06-18-2008, 06:26 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How exactly would LVM help? That would require a separate root partition, and why delete the existing swap and create a new one? Use the one that's there and move it if necessary.
 
Old 06-18-2008, 06:42 PM   #5
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
LVM would help in terms of management with an additional layer of abstraction...he wouldn't care how many physical partitions there are, simply merge the PVs into VGs and deal out volumes accordingly, his /etc/fstab would be cleaner for it. There's no need to put root on LVM.

As far as recreating swap, its optional...but he IS asking how to merge, so why not merge and recreate swap?
 
Old 06-18-2008, 06:55 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You can't put root on LVM IIRC. Abstraction isn't what LVM is about, it's about seemless management but usually of multiple physical volumes, note partitions.

What do you want him to merge? We don't know what's on /dev/sda5, so deleting that may be dangerous.

OP - can you post /etc/fstab please
 
  


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
please help: Merging partitions elsheepo Linux - Software 3 03-08-2008 08:39 AM
merging partitions kreon28 Linux - Newbie 9 05-27-2007 12:26 PM
Merging partitions? Jorophose Linux - Newbie 3 04-05-2007 06:23 PM
Finger-tip Fix Package [thoughts and ideas welcomed!] piete Slackware 3 11-06-2005 08:06 PM
Merging partitions Chrissi Linux - General 7 06-08-2003 08:36 PM


All times are GMT -5. The time now is 12:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration