LinuxQuestions.org
Help answer threads with 0 replies.
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 11-03-2010, 10:59 AM   #1
dins
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
How to change a primary partition into secondary in ubuntu 10.04


hi, i'm a linux newbie and i made a mistake while installing windows and linux

I made 4 primary partitions for my HD as i didnt know that only maximum 4 primary partitions are allowed.
Now 25 GB of my HD is wasted. It is shown as unusable.

CAN ANYONE PLEASE TELL ME IF I CAN CONVERT MY WASTED 25GB INTO SECONDARY AND USE IT WITHOUT FORMATTING AND RE PARTITIONING MY ENTIRE HD ???
 
Old 11-03-2010, 11:02 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
The only thing you can do without destroying the 4th partition is add the empty space to that partition (or move some partitions to the end so you can add the space to another partition).

Otherwise, you have to delete the last partition (or copy it to another drive) and then create a logical partition containing the rest of the disk space. Then you can recreate the deleted partition inside the new logical partition.
 
Old 11-03-2010, 11:03 AM   #3
module0000
Member
 
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
You don't have to reformat your entire HD.

You can remove the last primary partition and re-create it as an extended partition. This will allow you to make several more partitions to utilize the rest of your hard-drive.

Also, you may consider LVM, which is another approach to how you segregate the data in your hard disk.
 
Old 11-03-2010, 11:04 AM   #4
fbobraga
Member
 
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41
you can use GParted (it's on the Ubuntu liveCD) to do it:

http://ubuntued.info/wp-content/uplo...lucid_lynx.jpg

Last edited by fbobraga; 11-03-2010 at 11:08 AM.
 
Old 11-04-2010, 01:25 AM   #5
dins
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Guys this is my HD. the last partition i have linux installed. How can i add the unusable 25Gb ? plz help...





Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 4093 32768000 7 HPFS/NTFS
/dev/sda3 4093 33414 235520000 7 HPFS/NTFS
/dev/sda4 33414 35845 19531250 83 Linux
 
Old 11-04-2010, 11:10 AM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by dins View Post
Guys this is my HD. the last partition i have linux installed. How can i add the unusable 25Gb ? plz help...





Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 4093 32768000 7 HPFS/NTFS
/dev/sda3 4093 33414 235520000 7 HPFS/NTFS
/dev/sda4 33414 35845 19531250 83 Linux
As has been told above, you can do one of two things:
1) boot a LiveCD and use GParted to "grow" your linux partition at the end by the last 25GB.
2) copy the last partition (sda4) to another drive temporarily, delete sda4 and recreate it as an extended partition taking up the rest of the drive, then copy sda4 back.
 
  


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
primary ip address works, but secondary does not on ubuntu on vmare esxi coal-fire-ice Linux - Networking 0 08-11-2010 06:00 AM
[SOLVED] How can I change an extended partition with 3 logical partitions to 3 primary bubuntu Linux - General 18 06-03-2010 07:37 AM
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 04:57 PM
Change linux distrabution on first primary partition from opensuse to ubuntu? Gutsy_Iain_08 Linux - Newbie 5 12-07-2009 04:36 AM
openSolaris hosed the partition table. Why? Changing primary to secondary partition? JZL240I-U Solaris / OpenSolaris 9 10-16-2008 10:48 AM


All times are GMT -5. The time now is 02:12 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