Author Topic: [SOLVED] Need partitioning advice for a new dual boot install  (Read 996 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
[SOLVED] Need partitioning advice for a new dual boot install
« on: September 05, 2012, 04:04:58 AM »
I have just bought a Samsung AMD E450 based netbook with 500 GB HDD and Windows 7 64bit.
Presently it is partitioned like this:
Code: [Select]
[root@localhost guest]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x08137775

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS
/dev/sda2          206848   375597055   187695104    7  HPFS/NTFS
/dev/sda3       375597056   938424319   281413632    f  W95 Ext'd (LBA)
/dev/sda4       938424320   976773119    19174400   27  Unknown
/dev/sda5       375599104   938424319   281412608    7  HPFS/NTFS

I plan to retain Windows without disturbing its present  status. However I want to create a small GRUB boot partition (may be around 10MB?) and install GRUB to MBR.
I will have at least 3 PCLinuxOS installations (Regular/Testing/Packaging)

/dev/sda1 is what Windows calls a system partition.
/dev/sda2 is Windows installation
/dev/sda3 is Logical
/dev/sda4 is Samsung reserved (I guess)
/dev/sda5 is Windows Data (Currently empty. Which I intend to slice into 1 data partition of about 100 GB and the remaining into multitudes of various Linux.)

Where should I place this boot partition?
-SS.
« Last Edit: September 08, 2012, 08:37:48 AM by sling-shot »
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1900
  • Certified Windows Hater
Re: Need partitioning advice for a new dual boot install
« Reply #1 on: September 05, 2012, 04:17:32 AM »
I'm not an expert in partitioning but maybe I can give you some ideas :)

I also have a multi-boot setup in my hard disk with Windows and more than one linux installations. Windows has already installed its bootloader into the MBR so it needs to be edited or replaced. I think the second options is easier.

What I have done: installed Windows and then my standard PCLinuxOS system on a second partition, overwriting Windows bootloader with GRUB during installation. This gives me a boot screen where I can select between PCLinuxOS and Windows. After that, when installing the third operating system (PCLinuxOS 64bit Test05 in my case), I chose to write its bootloader in the partition where it is installed and then chainload to it from my main grub. This is done with all subsequent operating systems.
« Last Edit: September 05, 2012, 04:36:08 AM by agmg »
For the whole world, you are someone.
For someone, you are the whole world.

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15288
  • ┌∩┐(◕_◕)┌∩┐
Re: Need partitioning advice for a new dual boot install
« Reply #2 on: September 05, 2012, 04:51:27 AM »
You may also want to check to see if there's a Windows Recovery/Restore partition (/dev/sda4  ??? ) or do Samsung supply recovery/install  DVD's ?
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Need partitioning advice for a new dual boot install
« Reply #3 on: September 05, 2012, 08:09:31 AM »
You may also want to check to see if there's a Windows Recovery/Restore partition (/dev/sda4  ??? ) or do Samsung supply recovery/install  DVD's ?

Confirmed that /dev/sda4 is indeed Samsung/Windows Recovery. Also they have given a DVD too. (Very rare these days)

I have decided to setup a 25 MB boot partition just before /dev/sda5 and then shrink it and slit up the remaining space, keeping a SWAP at the fag end.
Will that be OK?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Need partitioning advice for a new dual boot install
« Reply #4 on: September 05, 2012, 11:31:35 AM »
Something has seriously gone wrong with this partitioning :
Code: [Select]
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x08137775

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS
/dev/sda2          206848   375597055   187695104    7  HPFS/NTFS
/dev/sda3       938424320   976773119    19174400   27  Unknown
/dev/sda4       375599700   938420909   281410605    f  W95 Ext'd (LBA)
Partition 4 does not start on physical sector boundary.
/dev/sda5       375599763   375631829       16033+  83  Linux
Partition 5 does not start on physical sector boundary.
/dev/sda6       375647952   585376469   104864259    7  HPFS/NTFS
/dev/sda7       585376533   688288859    51456163+  83  Linux
Partition 7 does not start on physical sector boundary.
/dev/sda8       688288923   729350999    20531038+  83  Linux
Partition 8 does not start on physical sector boundary.
/dev/sda9       729351063   770300684    20474811   83  Linux
Partition 9 does not start on physical sector boundary.
/dev/sda10      770300748   811250369    20474811   83  Linux
Partition 10 does not start on physical sector boundary.
/dev/sda11      811250433   841966649    15358108+  83  Linux
Partition 11 does not start on physical sector boundary.
/dev/sda12      841966713   872682929    15358108+  83  Linux
Partition 12 does not start on physical sector boundary.
/dev/sda13      872682993   903399209    15358108+  83  Linux
Partition 13 does not start on physical sector boundary.
/dev/sda14      903399273   927962594    12281661    7  HPFS/NTFS
Partition 14 does not start on physical sector boundary.
/dev/sda15      927962658   938420909     5229126   82  Linux swap / Solaris
Partition 15 does not start on physical sector boundary.

Partition table entries are not in disk order

Will it be possible to fix this without deleting and recreatinig all those partitions?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11545
  • ----IOFLU----
Re: Need partitioning advice for a new dual boot install
« Reply #5 on: September 05, 2012, 11:46:30 AM »
Something has seriously gone wrong with this partitioning :
Code: [Select]
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x08137775

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS
/dev/sda2          206848   375597055   187695104    7  HPFS/NTFS
/dev/sda3       938424320   976773119    19174400   27  Unknown
/dev/sda4       375599700   938420909   281410605    f  W95 Ext'd (LBA)
Partition 4 does not start on physical sector boundary.
/dev/sda5       375599763   375631829       16033+  83  Linux
Partition 5 does not start on physical sector boundary.
/dev/sda6       375647952   585376469   104864259    7  HPFS/NTFS
/dev/sda7       585376533   688288859    51456163+  83  Linux
Partition 7 does not start on physical sector boundary.
/dev/sda8       688288923   729350999    20531038+  83  Linux
Partition 8 does not start on physical sector boundary.
/dev/sda9       729351063   770300684    20474811   83  Linux
Partition 9 does not start on physical sector boundary.
/dev/sda10      770300748   811250369    20474811   83  Linux
Partition 10 does not start on physical sector boundary.
/dev/sda11      811250433   841966649    15358108+  83  Linux
Partition 11 does not start on physical sector boundary.
/dev/sda12      841966713   872682929    15358108+  83  Linux
Partition 12 does not start on physical sector boundary.
/dev/sda13      872682993   903399209    15358108+  83  Linux
Partition 13 does not start on physical sector boundary.
/dev/sda14      903399273   927962594    12281661    7  HPFS/NTFS
Partition 14 does not start on physical sector boundary.
/dev/sda15      927962658   938420909     5229126   82  Linux swap / Solaris
Partition 15 does not start on physical sector boundary.

Partition table entries are not in disk order

Will it be possible to fix this without deleting and recreatinig all those partitions?

What application did you use to create those partitions. You need to use a tool that is 4KB physical sector aware. I use command line fdisk to partition my 2 TB drive.

[root@fatman ~]# fdisk -l /dev/sdc
Code: [Select]
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x18eee7ae

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048     2099199     1048576   83  Linux
/dev/sdc2         2099200    18876415     8388608   82  Linux swap / Solaris
/dev/sdc3        18876416    81790975    31457280   83  Linux
/dev/sdc4        81790976  3907029167  1912619096    5  Extended
/dev/sdc5        81793024   176164863    47185920   83  Linux
/dev/sdc6       176166912   281024511    52428800   83  Linux
/dev/sdc7       281026560   385884159    52428800   83  Linux
/dev/sdc8       385886208   805316607   209715200   83  Linux
/dev/sdc9       805318656   857747455    26214400   83  Linux
/dev/sdc10      857749504   910178303    26214400   83  Linux
/dev/sdc11      910180352   962609151    26214400   83  Linux
/dev/sdc12      962611200  1172326399   104857600   83  Linux
Old-Polack

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



Lest we forget...

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Need partitioning advice for a new dual boot install
« Reply #6 on: September 05, 2012, 09:51:40 PM »
I used EASEUS Partition Manager on Windows.

It had served me well during my previous experience with the HP Mini netbook as detailed here :
http://www.pclinuxos.com/forum/index.php/topic,82833.0.html

I will try to understand what has gone wrong with this and try to rectify with fdisk if possible. Need some time to learn.

[Old Polack]
1. Is there any need to leave a gap between partitions?
2. That initial logical partition should extend all over the other logical partitions, right?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11545
  • ----IOFLU----
Re: Need partitioning advice for a new dual boot install
« Reply #7 on: September 06, 2012, 12:14:16 AM »
I used EASEUS Partition Manager on Windows.

It had served me well during my previous experience with the HP Mini netbook as detailed here :
http://www.pclinuxos.com/forum/index.php/topic,82833.0.html

I will try to understand what has gone wrong with this and try to rectify with fdisk if possible. Need some time to learn.

[Old Polack]
1. Is there any need to leave a gap between partitions?
2. That initial logical partition should extend all over the other logical partitions, right?


You can have 4 primary partitions, and one of those can be an extended partition that is a container for logical partitions. The extended partition should extend from its starting sector to the end of the drive, under normal conditions.

With the present 4KB physical sector aware partitioning scheme, the first partition starts on sector 2048 and ends where it ends, there is no space between the end of one primary partition and the next. The following primary partition starts at the next sector after the end of the preceding partition. Within the extended partition, the first logical partition is offset by 2048 sectors from the beginning of the extended partition. Each additional partition will be offset from the end of the preceding partition by another 2048 sectors.

With fdisk, accept the default starting sector for each new partition. Rather than dictate an ending sector, specify a partition size, ie +25G or +100G. Fdisk will round out the size to end on a proper sector boundary. For the next new partition, again accept the default starting sector offered, then continue in like manner for each additional partition.
Old-Polack

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



Lest we forget...

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Need partitioning advice for a new dual boot install
« Reply #8 on: September 06, 2012, 02:43:35 AM »
Then it looks like I may have to wipe out everything from the logical partition and recreate :(
Ultimately I might do that to start from a clean slate, but for now I am taking this as another opportunity to brush up on partition knowledge.

While I was reading up on this, I went into "man fdisk" and there it said  "parted" as the next generation or something of fdisk. I installed Gparted.
Now Gparted shows a gap of few varying megabites in between some partitions. I will have a screenshot later on.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Need partitioning advice for a new dual boot install
« Reply #9 on: September 06, 2012, 02:54:22 AM »
This is a screenshot of Easeus showing the current partitioning :
(I will edit and add a screenshot of Gparted after reboot to this post)



This is a screenshot of Gparted showing the current partitioning :



What an experience!
Situation 1 : My Desktop
I used the PCLinuxOS Control Centre to partition and there was trouble. (I do not remember what was it exactly as it was long back) It was corrected using Windows tools.

Situation 2 : My previous HP Netbook
I used Easeus on Windows. Flawless experience.

Situtation 3 : My present netbook
I used Easeus on Windows. What a mess!
« Last Edit: September 06, 2012, 03:11:03 AM by sling-shot »
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Need partitioning advice for a new dual boot install
« Reply #10 on: September 08, 2012, 08:35:04 AM »
I went ahead and deleted everything inside the logical partition, then recreated using GParted.
This is the final view :



This is the final fdisk -l output :

Code: [Select]

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x08137775

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS
/dev/sda2          206848   375597055   187695104    7  HPFS/NTFS
/dev/sda3       938424320   976773119    19174400   27  Unknown
/dev/sda4       375597056   938422271   281412608    5  Extended
/dev/sda5       375599104   375701503       51200   83  Linux
/dev/sda6       375703552   585418751   104857600    7  HPFS/NTFS
/dev/sda7       585420800   690278399    52428800   83  Linux
/dev/sda8       690280448   732223487    20971520   83  Linux
/dev/sda9       732225536   774168575    20971520   83  Linux
/dev/sda10      774170624   816113663    20971520   83  Linux
/dev/sda11      816115712   847572991    15728640   83  Linux
/dev/sda12      847575040   879032319    15728640   83  Linux
/dev/sda13      879034368   910491647    15728640   83  Linux
/dev/sda14      910493696   931465215    10485760   83  Linux
/dev/sda15      931467264   938422271     3477504   82  Linux swap / Solaris

Partition table entries are not in disk order
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6