PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 08:48:34 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to remove a primary and create an extended partition  (Read 1352 times)
doctore
Sr. Member
****
Offline Offline

Posts: 372


« on: July 23, 2010, 09:12:05 PM »

I have a new computer with Windows. Using their disk management program I shrunk one partition to free up 40 Gigs to put PCLOS on. From the Live CD I have tried to put the PCLOS partitions on the free space. I understand that I cannot have over 4 primary partitions and that I need to remove one and/or create an expanded one. Four of the partitions are needed for Windows. What can I do to get PCLOS on it? Here's what I've got:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x79120785

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      203776    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              26       23470   188314624    7  HPFS/NTFS
/dev/sda3           28569       30389    14612480    7  HPFS/NTFS
/dev/sda4           30389       30402      105656    c  W95 FAT32 (LBA)

BTW, this computer is a birthday present for my son who is going off to college. He uses PLCOS at home and I'd like him to get along without Windows, hence the dual boot I'm trying.
Logged

Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #1 on: July 23, 2010, 10:12:42 PM »

I have a new computer with Windows. Using their disk management program I shrunk one partition to free up 40 Gigs to put PCLOS on. From the Live CD I have tried to put the PCLOS partitions on the free space. I understand that I cannot have over 4 primary partitions and that I need to remove one and/or create an expanded one. Four of the partitions are needed for Windows. What can I do to get PCLOS on it? Here's what I've got:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x79120785

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      203776    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              26       23470   188314624    7  HPFS/NTFS
/dev/sda3           28569       30389    14612480    7  HPFS/NTFS
/dev/sda4           30389       30402      105656    c  W95 FAT32 (LBA)

BTW, this computer is a birthday present for my son who is going off to college. He uses PLCOS at home and I'd like him to get along without Windows, hence the dual boot I'm trying.

To start with, your partition sda2 overlaps sda1, and your sda4 partition overlaps your sda3, and the space you created lies between sda2 and sda3. Were it me, being as all your partitions have problems, I'd be backing up everything on the drive, then repartitioning from scratch, to get it right.
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
doctore
Sr. Member
****
Offline Offline

Posts: 372


« Reply #2 on: July 24, 2010, 11:59:44 AM »

So, once I redo all the partitions the question still remains on where to put PCLOS since you can only have 4 primary partitions.
Logged

kjpetrie
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 3133


« Reply #3 on: August 01, 2010, 12:19:03 PM »

Why does Windows need 4 partitions? Normally it only uses one, though others can be used if wanted. Is the FAT partition one you created yourself for data?.

In order to use the space you have created you need to delete at least partitions 3 and 4, and then recreate them with 3 starting in the cylinder after 2 ends. 3 can be primary, but 4 needs to be extended with the FAT partition as 5 (the first logical partition). You can then create further partitions for pclos.
Logged

-----------
KJP
-----------------------------------------------------------
PClos 2010 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, Hitachi CDR-7930, ‎HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG and Asus eeePC 2G surf
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #4 on: August 02, 2010, 04:30:07 AM »

I would backup everything ......  and then wipe the whole lot and start again.

Then create the partitions of the size you need, numbers 1,2 and 3.
Create partition 4 as an extended partition covering ALL the remaining space.

An extended partition is a wrapper for Logical partitions ........  so in the extended space you can create as many Logical partitions as you wish.

There are just too many problems on that disk to be worth the effort trying to correct them.
Logged
doctore
Sr. Member
****
Offline Offline

Posts: 372


« Reply #5 on: August 02, 2010, 04:21:10 PM »

Yes, Windows has 4 partitions on the disk. I hoped that there would be a way to do this without wiping everything.
Logged

CaptainSarcastic
Full Member
***
Offline Offline

Posts: 167



« Reply #6 on: August 02, 2010, 04:58:35 PM »

I am guessing that one of those partitions is a "Recovery" partition, and another is a "Data" partition.  You could get rid of the former if you have optical disks for Windows to reinstall with if necessary, and the latter as long as the main Windows partition has adequate space.  I've seen a few companies ship Windows with the OS in one partition and a separate partition for data - ACER laptops come to mind.
Logged
kjpetrie
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 3133


« Reply #7 on: August 03, 2010, 04:35:24 AM »

You will have to back up the contents of any partitions you delete so you can restore them. You should do that anyway, because computers can be stolen or destroyed and your data is more important than the machine on which it's stored.

My method would need only two partitions to be deleted. Johnboy's needs to delete all four, so why not try mine first and if it doesn't work do his?
Logged

-----------
KJP
-----------------------------------------------------------
PClos 2010 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, Hitachi CDR-7930, ‎HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG and Asus eeePC 2G surf
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #8 on: August 03, 2010, 06:08:22 AM »

You will have to back up the contents of any partitions you delete so you can restore them. You should do that anyway, because computers can be stolen or destroyed and your data is more important than the machine on which it's stored.

My method would need only two partitions to be deleted. Johnboy's needs to delete all four, so why not try mine first and if it doesn't work do his?


Because the first partition is incorrectly created ......  it is not ending on a cylinder boundary .....  it could be retained and MAYBE corrected by resizing.
One way or another it does need to be corrected.  Wink

So it might work to delete three partitions and correct the first one ...  but I would not attempt it without backing up what is on the first partition .......  in which case I would probably delete it  and restore the backup to a new partition.   Grin Grin

not a lot of difference methinks ....
Logged
kjpetrie
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 3133


« Reply #9 on: August 03, 2010, 08:00:32 AM »

My understanding is that the only OS that requires partitions to start and end on cylinder boundaries is OS/2, and other OSes don't care, so unless he's using OS/2, which is unlikely, we can ignore that.
Logged

-----------
KJP
-----------------------------------------------------------
PClos 2010 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, Hitachi CDR-7930, ‎HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG and Asus eeePC 2G surf
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #10 on: August 03, 2010, 08:47:31 AM »

My understanding is that the only OS that requires partitions to start and end on cylinder boundaries is OS/2, and other OSes don't care, so unless he's using OS/2, which is unlikely, we can ignore that.


You may well be correct .....  I have not kept up with such things TBH ...... it was necessary some time ago (don't ask how long  Grin ) to not have this error to install (I think) Red Hat, so I have always erred on the side of caution ......  but again the older disk geometries may have had something to do with this too.
I don't see a danger of loss of data due to this warning ....  not like the overlapping partitions error ..... but I guess old habits die hard with some of us.  Grin
Logged
Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4632


MLUs Forever!


« Reply #11 on: July 24, 2011, 05:29:56 AM »

Quote
(note: I don't have exact specs on capacity, so I used percentages instead)

If the HDD was 3TB then 30% for PCLOS, or any other OS, would be rather excessive.

Hence % is rather meaningless without the disk size being known.

Wink
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #12 on: July 24, 2011, 06:15:15 AM »

Quote
(note: I don't have exact specs on capacity, so I used percentages instead)

If the HDD was 3TB then 30% for PCLOS, or any other OS, would be rather excessive.

Hence % is rather meaningless without the disk size being known.

Wink

Precisely my thought as I read that post..
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4632


MLUs Forever!


« Reply #13 on: July 24, 2011, 04:40:02 PM »

I have root of 20GB and Home of 30GB and put lots of extra apps on there and am rather untidy with files  Grin

So, based on that, 50GB should be plenty.

Yes install Win first, then PCLOS ....  you should need do nothing special except untick the formatting of the selected single partition for the install ......  just ensure there is only one partition chosen for the install (/).

Yes Win will be added to the boot list automatically.

Your only real decision will be which OS will boot by default  Grin  ...  and how much time to allow for a change in the default  Wink

regards
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #14 on: July 24, 2011, 05:31:01 PM »

% is rather meaningless without the disk size being known.
Just19 and Old-Polack, Thank you for your attention. 
I agree with both of you  Smiley Smiley, here is the output from fdisk -l (including two other commands), run as root from KDE 2011.06 LiveCD.
Code:
[root@localhost ~]# uname -a
Linux localhost 2.6.38.8-pclos1.bfs #1 SMP PREEMPT Sat Jun 4 04:13:21 CDT 2011 i686 i686 i386 GNU/Linux
[root@localhost ~]# blkid
/dev/loop0: TYPE="squashfs"
[root@localhost ~]# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
[root@localhost ~]#

The partitions (calculated per my previous post) would be:
Device          Boot      GB        System
/dev/sda1       *         96       HPFS/NTFS
/dev/sda2                   6       Swap (per memory)
/dev/sda3                  96       PCLOS (/ and /home)
/dev/sda4                 122      Extended (for future use) <-rounded up

Correct me if I am wrong, but I think 96GB is still "excessive" for an OS.  Shocked
I also think 6GB is excessive for swap, as that machine has 2GB of RAM, expandable to 4GB, if I recall correctly (IIRC?).  Huh
More detailed specs will be available as soon as I boot the machine again with the LiveCD (probably tonight or tomorrow morning).

In the meantime, I suggest:
Device          Boot      GB        System
/dev/sda1       *         50        HPFS/NTFS                       <-entire HDD on their previous machine was 40GB   Embarrassed
/dev/sda2                   4        Swap (per memory - as currently configured)
/dev/sda3                  50       PCLOS (/ and /home)
/dev/sda4                 216       Extended
/dev/sda5                  50       HPFS/NTFS (backup document storage)

I intend to format and label the partitions prior to installing any OS.
From reading other posts on dual booting with various versions of Windows, I believe I should install XP first on sda1.
When I install PCLOS KDE on sda3, I will remove the check marks for formatting, so that the files are copied from the LiveCD without reformatting the partition.
One of the last steps during installation of PCLOS should automatically detect the XP installation and add it to the boot menu, if I understand the process correctly.  Huh

Beyond the remaining facts concerning the machine itself, what am I missing so far?  Huh
Again, thank you for your attention and knowledge.   Smiley
More info will be made available as I have it.
Ideally the next post will be from the machine as I am working on it.   Cool

Regards,

Darryl


Personally, I would go with this;

/dev/sda1       *         50        HPFS/NTFS     Windows installation
/dev/sda2                  50       HPFS/NTFS     (backup document storage)
/dev/sda3                   4        Swap (per memory - as currently configured)
/dev/sda4                 216      Extended
/dev/sda5                   20      ext4  PCLOS /          
/dev/sda6                 100      ext4  PCLOS /home      <-- Assumes two users with separate login desktops.

The rest unpartitioned for the moment, to be partitioned when there is need and sized to fit the need.

or better, this;

/dev/sda1       *         50        HPFS/NTFS      Windows installation
/dev/sda2                  50       HPFS/NTFS      (backup document storage)
/dev/sda3                   4        Swap (per memory - as currently configured)
/dev/sda4                 216      Extended
/dev/sda5                   30      ext4  PCLOS / with /home included
/dev/sda6                   50      ext4  PCLOS data partition mounted as /home/<user>/Documents.
/dev/sda7                   50      ext4  PCLOS data partition for 2nd user mounted as /home/<user2>/Documents.

The rest unpartitioned for the moment, to be partitioned when there is need and sized to fit the need.
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM