Six Primary Partitions on My HP Pavilion 15 Notebook PC ?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Six Primary Partitions on My HP Pavilion 15 Notebook PC ?
Hi there!
=> Perhaps it'd be best to begin by having a look at the 3 attached screenshots... A picture says a thousand words...
It's been a while. The last I heard, you could only have 4 primary partitions on your hard drive. It LOOKS like this computer was pre-installed with 6 primary partitions!
I generally like to do partitioning before doing my linux installations. I wanted to install Lubuntu along side with Windows 10 + 2 data partitions (one encrypted, the other not) + SWAP partition.
I've googled it and found all kinds of stuff about partitions in HP Pavilion 15, but no clear answer.
Given this process is a very delicate one, if someone has an answer, could you work me through it step by step ?
I like GParted, but the new Lubuntu distro has KDE Parted...
=> More specific system info in attachments
Many thanks in advance,
RM
Last edited by rm_-rf_windows; 06-26-2019 at 10:00 AM.
If you are booting UEFI then primary and logical, secondary partition no longer apply due to GPT partition table, that does things different. With Windows 10 most, not mine, boot UEFI therefore HDD is GPT.
Many thanks, BW-userx, for your reply.
I'm not as advanced as you think, and your message is greek to me (tried wikipediaing "GPT" and "UEFI", but...)
I ran the command, here it is:
Code:
ubuntu@lubuntu:~$ sudo parted -l
Model: ATA HGST HTS541075A9 (scsi)
Disk /dev/sda: 750GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 683MB 682MB ntfs Basic data partition hidden, diag
2 683MB 955MB 273MB fat32 EFI system partition boot, esp
3 955MB 1089MB 134MB Microsoft reserved partition msftres
4 1089MB 727GB 726GB ntfs Basic data partition msftdata
5 727GB 729GB 1916MB ntfs hidden, diag
6 729GB 750GB 21.4GB ntfs Basic data partition hidden, msftdata
Model: Generic Flash Disk (scsi)
Disk /dev/sdb: 61.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 61.9GB 61.9GB primary fat32 boot, lba
Model: Unknown (unknown)
Disk /dev/zram3: 508MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 508MB 508MB linux-swap(v1)
Model: Unknown (unknown)
Disk /dev/zram1: 508MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 508MB 508MB linux-swap(v1)
Model: Unknown (unknown)
Disk /dev/zram2: 508MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 508MB 508MB linux-swap(v1)
Model: Unknown (unknown)
Disk /dev/zram0: 508MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 508MB 508MB linux-swap(v1)
lubuntu@lubuntu:~$
What next?
Thanks again.
I'm assuming you were in a live boot when you did this?
where the top part is all windows stuff, and yes it is GPT so it can have lots of partitions on it. It no longer has a MBR either to install a grub. or Windows boot loader, this is why it has in the red the UEFI boot partition. I am not verse in UEFI. So I'd suggest you make what exactly you're looking to do more evident and wait for someone that is verse in UEFI to help you.
I am not sure how Windows that uses UEFI boot splits up its partitions, other than the one in the red that I marked where the boot.uefi file is kept, its reserved partitions, looking like it has more than one for hibernation, and one for restore. Which I'd guess are the first 3 partitions,
Disable secure boot, cms in bios. Disable fast boot under advance in windows power settings, From within windows use windows disk management to shink your windows partition to make room for Linux paritiions. During installation most distros will take of care installing grub to the efi partition and adding an entry in the fstab to mount the efi partition to /boot/efi automagically, However if you select the somethingelse/manual partitioning you may have to select the mount point for the efi partition manually to /boot/efi.
On some hp's you will have to go into bios to change boot order and there has been posts about not able to change the boot order from windows to Linux at all with hp's but I think for most hp's there is some sort of work around that will work.
With gpt disk can have up to 128 partitions and don't have to worry about primary or logical. It looks like you have a windows partition and data partition possibly?
Last edited by colorpurple21859; 06-26-2019 at 01:52 PM.
Many thanks colorpurple21859 and BW-userx for your replies.
The two unhidden partitions are Windows and Recovery. This was done in factory. Nothing has been modified since.
So, to recapitulate...
1. Disable secure boot, cms in bios.
2. "Disable fast boot under advance in windows power settings" => Where? How?
3. Shrink main Windows partition with windows partition tool. => Which tool exactly?
4. ?
Not sure what to do after this...
After doing steps 1 to 3, if I use GParted or another linux-based partition tool, will the tool tell me I cannot create a new partition because the maximum number of primary partitions has been reached?
BW-userx, colorpurple21859, if you have any other suggestions, I'm all ears!
If there is anybody out there who has done this exact procedure on an HP with more or less the same partition scheme as mine, I would really appreciate your advice, or, better, perhaps step-by-step instructions. I've already lost Windows on several occasions in the past and don't want to do it again.
Many thanks again,
RM
Last edited by rm_-rf_windows; 07-08-2019 at 07:31 AM.
I believe that on GPT disks, the maximum number of partitions is 256! In other words, there is effectively no maximum. That's one reason why GPT is replacing MSDOS disks. Another reason is that the new UEFI booting firmware needs GPT. When you look at your disk, you can see that the second partition is formatted as FAT32. That is your EFI system partition where the UEFI expects to find its boot code.
You need to disable secure boot so that you can boot an installation disc/stick and you need to disable fast boot because that effectively restarts Windows from a hibernation image and can cause corruption in a Linux system. You can do both from within the UEFI setup program by pressing a special key during boot (just like you would do with a BIOS) but Colorpurple has suggested a way of disabling fast boot from within Windows using its power management tool, so you might as well use that.
you can use gparted to move / resize ntfs, but I'd still recommend going into windows and use their disk management due to it is not just ntfs but ntfs that windows is using for its system.
Just push it over and leave youself room for updates to that system, data storage, whatever you think you need for windows to grow some, and then reestablish the left over as a blank formated partition. then you can use that partition in Linux to split it up,
being that it is Most likely GPT, just slice it up how ever you want it. then install linux to which ever partiton you want it on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.