LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-22-2010, 12:37 PM   #1
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Rep: Reputation: 0
Parition - Want to make use of "unallocated" partition


Happy Holidays, all!

A year ago, when I had first installed Ubuntu (yet, I'm still a Newb) on a dual-boot 250GB box, I ended up with an "unallocated" 46GB partition and another at 2.5GB. Back then, I had wanted to add them to my Linux partition but, I wasn't sure how to do it. Today, I have a scant 1.9 GB left on the latter; I need the extra hard drive space! How do would I do this? Here is my present configuration:

  • dev/sda 232 GB
    • /dev/sda1 ntfs 12 GB "PQ Service"
    • /dev/sda2 ntfs 102 GB "System Reserved"
    • /dev/sda3 ntfs 110 GB "Windoze"
    • unallocated 46 GB
    • /dev/sda4 extended 64.15 GB
      • /dev/sda6 ext3 61.5 GB
      • /dev/sda5 linux-swap 2.66 GB
    • unallocated 2.5GB

Would anybody be able to guide me along, please?
 
Old 12-22-2010, 03:38 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,061

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
Given that map is correct ("sudo fdisk -l" will tell us for sure), the easiest way is a gparted liveCD. Simply expand the extended partition in both directions, then move/expand sda6 as required. The swap can be moved out of the way or deleted until finished then add a new swap at the end say. Be aware that if you delete/reallocate you will have trouble with UUID on Ubuntu - in fact you probably won't be able to boot.

Gparted is a GUI (think Partition Magic) that uses "handles" to drag the partition boundaries - (usually) works well. Make sure you use the "Apply" button to effect any changes.
 
1 members found this post helpful.
Old 12-22-2010, 05:12 PM   #3
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Original Poster
Rep: Reputation: 0
G'day Syg,

Thanks for your help! Here's what was spat out when I ran sudo fdisk -l :

Code:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf544f4ce

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1567    12586896   27  Unknown
/dev/sda2   *        1568        1580      104422+   7  HPFS/NTFS
/dev/sda3            1581       15997   115804463    7  HPFS/NTFS
/dev/sda4           22027       30401    67271361+   5  Extended
/dev/sda5           30055       30401     2787246   82  Linux swap / Solaris
/dev/sda6           22027       30054    64483328   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x24aeca80

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       60802   488384512    7  HPFS/NTFS

Disk /dev/sdc: 8092 MB, 8092909568 bytes
249 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 15438 * 512 = 7904256 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x04dd5721

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        1023     7896506    c  W95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
     phys=(1023, 248, 62) logical=(1022, 248, 62)
Do you see anything worrisome in this or, does all seem to be well?

Quote:
Be aware that if you delete/reallocate you will have trouble with UUID on Ubuntu - in fact you probably won't be able to boot.
Whoa there! I had no intention of deleting anything. The fact that you provided this warning suggests that this might be possible. How do I prevent it from happening? By not entering a certain command (or pushing a certain button), I suppose. I just don't know what I'm not supposed to hit...
 
Old 12-22-2010, 05:31 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,061

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
Nothing gets done (in gparted) till you confirm it. That warning of mine was just if you chose to delete then reallocate the swap. No need to worry about any of that with your config.
Simply grow the expanded (toward the left), apply that, then do similar to the main partition. Apply that, and reboot.
All done from a liveCD remember.
 
1 members found this post helpful.
Old 12-22-2010, 05:45 PM   #5
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the reassurance!

gparted live is being downloaded as I type this. I'll throw it onto my FAT 32 4GB usb stick.

Seems to me that I had tried this last year. I couldn't drag the handles of the extended partion toward the left because, apparently, the unallocated partition (to the left of the former) was in the way. Does this make sense? In any event, we shall soon see...
 
Old 12-23-2010, 08:25 AM   #6
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Original Poster
Rep: Reputation: 0
Success - Unallocated partition now allocated!

Thanks for your help, Syg. All is now well!
 
  


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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 03:33 PM
formating a partition (sda5 - NTFS filesystem) to make it "linuxable" (fedora 8) xcorsary Linux - Newbie 6 04-16-2008 06:52 PM
window maker "make" / "make install" problem xiekke Fedora 2 08-08-2007 11:55 AM
31 GB unallocated partition and SuSE 10.1 says "not enough space" G0NZ0 Linux - Hardware 8 10-16-2006 01:16 PM
Constant errors during "make" or "make install" with SUSE 10.1 Alpha 4 TehFlyingDutchman Linux - Software 3 12-30-2005 07:25 PM


All times are GMT -5. The time now is 04:23 AM.

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