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 08-03-2013, 05:54 AM   #1
postmanpat65
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Cool creating extended partitions on my hard drive for linux installations.


Good morning everyone, welcome to sunny east anglia. This is my problem, will be grateful for any help. My hard drive size is 931.5 GB, it is at the moment divided into the following partitions: 101 mb unallocated. System reserved 100 mb ntfs primary partition. C. 778GB ntfs boot, page file crash dump, primary partition. 71.35 GB unallocated. 78 GB active Primary partition with Manjaro installed on it. 3.9 GB primary partition swap. Obviously I have windows 7 installed on C. Now for the difficult part. As I have so much space available I would like to install another Linux distro but to do this I am told this can only be installed on an extended partition. How do I convert (?) my 71.35 GB unallocated to a extended partition or if this is not possible, how do I create an extended partition on my present set-up.

Hope this is not too much to ask on my first visit, thanks to you all for helping a new linux user.
 
Old 08-03-2013, 06:02 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
boot into Manjaro, open up a terminal and

Code:
/sbin/fdisk -l /dev/sda
post the output
[code]
inside code tags
like this example
[/code]
 
Old 08-03-2013, 06:02 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,843

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
From Manjaro, do this (as root/sudo) and post the results - use [code] tags so we can read it
Code:
parted /dev/sda "print free"
 
1 members found this post helpful.
Old 08-03-2013, 06:06 AM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
^^^

parted is better than the fdisk I gave
 
1 members found this post helpful.
Old 08-03-2013, 02:15 PM   #5
postmanpat65
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
parted /dev/sda "print free"

Number Start End Size Type File system Flags
32.3kB 106MB 106MB Free Space
1 106MB 211MB 105MB primary ntfs
2 211MB 836GB 835GB primary ntfs
836GB 912GB 76.6GB Free Space
3 912GB 996GB 83.8GB primary ext4 boot
4 996GB 1000GB 4223MB primary linux-swap(v1)
1000GB 1000GB 745kB Free Space
 
Old 08-03-2013, 04:28 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
because you are using MBR partitions you are limited to 4 partitions, which you already have defined.

There is a "workaround" and that is the extended partition, which is a partition which can then contain logical partitions.

as a "quick fix" you could delete the swap partition, and then add the "76.6GB Free Space" as an extended partition
Which would then allow you to add further logical partitions ( within that extended partition ).
You would then need to modify Manjaro's /etc/fstab so it uses the new swap partition.

The downside to this is you will loose that swap space ( it will sit at the end of the disk, wasted ).
That is unless you use something like gparted ( on a liveCD or new distro ) to resize Your Manjaro partition ( so it uses the free space at the end of the disk )

I'll be honest here in that I'm not 100% certain that will even work, I've only ever had the extended partition as the 'last' primary.
e.g.
1-p 2-p 3-e
or
1-p 2-p 3-p 4-e
and never
1-p 2-p 3-e 4-p
But I don't see why it wouldn't work.


Ideally you should delete both
3 912GB 996GB 83.8GB primary ext4 boot
4 996GB 1000GB 4223MB primary linux-swap(v1)

Then create extended partition ( using all free space ) , and go on to add logical partitions for Manjaro and your new distro.

Obviously that is more work, as you would have to re-install Manjaro, restoring backup data and configuration.

Before you do anything, backup your important data and settings, etc.




Another option, is convert to gpt
GPT does not have this "4 partition limit"
Trouble is you are going to have a little fight on your hands to achieve that without messing up your windows7 installation, apparently it is "doable" but I think it would be more trouble than it is worth in your case.
 
1 members found this post helpful.
Old 08-03-2013, 07:25 PM   #7
postmanpat65
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Firerat, so what you are proposing is that I delete my last 2 partitions, resize them to include the 76.6 gb of free space and then convert all the free space to an extended partition. Have I got that right. When this has been done, re-install Manjaro on the new extended partition so that I can install other o/s on the extended partition. Sounds exciting, thank you!! Please reply if I have got things right. Many thanks for all your help. (restore mbr for windows obviously?)
 
Old 08-03-2013, 09:11 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,843

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
If you choose to do that and delete the Linux partitions, the free space will amalgamate to one contiguous block. Create an extended partition to use it all.
Install Linux(s) as required. No need to worry about the mbr - Linux install will re-write grub/lilo there for you, and you will then be able to access Windows as currently. With multiple Linux install you need to be aware of which one is currently in control of the mbr.
 
1 members found this post helpful.
Old 08-04-2013, 04:27 PM   #9
postmanpat65
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you sygOO for your help. By my calculations I will then have about 165 gb to play with, could I run , sorry install say 3 Linux distros on that amount of space? Thank you very much.
 
Old 08-04-2013, 05:03 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
How much free space in windows partition 835Gig is quite large unless you have a lot of data on it.
I would keep sda1, resize sda2, delete sda3 & sda4.
If you want to resize windows, wins disk utilities only resize upto half the os size, so if you want wins shrunk to less than half it's size you will have to use something like gparted-live-cd/usb.
 
1 members found this post helpful.
Old 08-04-2013, 05:27 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Quote:
By my calculations I will then have about 165 gb to play with, could I run , sorry install say 3 Linux distros on that
Should be no problem to do that. I had 14 Linux distributions on a 120GB drive. Basic installations, no problems. If you are putting a lot of new software and data on the partitions that will obviously make a difference in time.
 
1 members found this post helpful.
  


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
Linux installers can't see partitions on Hard Drive flimes Linux - Laptop and Netbook 6 03-30-2012 12:33 AM
How do you use linux to see various partitions on your hard drive? True Colors Linux - Newbie 2 12-09-2009 03:40 PM
installing any linux distro on hard drive with 3 partitions. postmanpat16940 Linux - Laptop and Netbook 7 10-14-2009 09:10 PM
Upgrading hard drive with Linux partitions on. duffboygrim Linux - General 2 01-28-2004 02:17 AM
how many times can a hard drive take re-installations? gui10 Linux - General 17 04-27-2002 05:50 PM


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