[SOLVED] My Debian 7 Installation created more than 4 Primary partitions on my MBR disk!!!
Linux - NewbieThis 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
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.
My Debian 7 Installation created more than 4 Primary partitions on my MBR disk!!!
Hi
I am very suprised! I previously had a Windows 7 desktop, dual boot with Windows Server 2012 R2. I didn't care much about 2012 R2, so I went with a Debian server on another computer.
I wanted to triple boot my computer, so I looked at my BIOS to see if my computer has UEFI support, but it doesnt, so I am not able to boot to GPT. One decision lead to another, and I decided not to install Hackintosh. As part of this process, I had converted it to GPT, and then back to MBR when installing Windows 8.1 Pro. Everything went well.
When I went to install Debian 7, it was not recognizing anything on that drive. I found out it was a backup GUID partition table left over. I used fixparts found on rodsbooks.com, and I fixed the disk partition table.
Now this is where things get weird. Before installing, I created a primary partition for /, and an extended partition with 5 logical partitions inside it. I installed Debian 7 from a live install DVD, and I manually created the partitions. I created a 4GB /, 16GB /usr, 4GB /var, and 64GB /home. Then I left a bunch of free space (~145GB) and then 16GB swap space. (I have 8GB ram, and I plan to hibernate sometimes).
After a successful installation, installation of packages, reboots, and frustration with PCI card problems, I rebooted to Windows 8.1.
Upon opening diskpart gui, I was greeted with the picture attached.
WHAT IS GOING ON?
Last edited by /dev/dog; 01-11-2015 at 12:37 PM.
Reason: more detail!
I have a BIOS boot partition, so that my BIOS can boot the disk. Windows 8.1 sees this as an MBR partition table and doesn't complain that I don't have UEFI support. However, after the BIOS boot partition, I have a GPT which my bootloader uses.
I don't understand 2 things:
1) Why are those partitions showing up as primary partitions if I am using extended partitions?
2) If Windows 8.1 is using the GPT to find those partitions, how come it is not complaining it needs UEFI support?
and microsoft windows will NEVER know anything about a NON NFTS or FAT partition
the Windows os will never be able to read ext3 or 4 partitions
use Gparted to look at partitions
or the linux command
Code:
su -
fdisk -l
Are you saying Windows will never detect my Linux ext4 partitions being anything other than unformatted? I knew that, for some reason I decided to open up Diskpart gui and take a peek. I wasn't planning on re-sizing. (Are you subtly hinting I should?)
Newer releases of windows should show Linux partitions as primary or logical and sometimes refer to them as 'healthy', whatever that means. A default windows install will not be able to identify a Linux filesystem type nor will you be able to read/write to them without installing some type of third party software.
I have a BIOS boot partition, so that my BIOS can boot the disk. Windows 8.1 sees this as an MBR partition table and doesn't complain that I don't have UEFI support. However, after the BIOS boot partition, I have a GPT which my bootloader uses.
No, you have an MBR disk using extended partitions but Windows is calling them all "primary partitions" to try and "help" you (!) -- you can only have one type of partition table.
This is what happens when you rely on "friendly" GUIs -- they obfuscate the true situation.
Boot up Debian and post the output of:
Code:
# parted -l
and the truth will be revealed...
Last edited by Head_on_a_Stick; 01-12-2015 at 02:11 AM.
Reason: typo
No, you have an MBR disk using extended partitions but Windows is calling them all "primary partitions" to try and "help" you (!) -- you can only have one type of partition table.
This is what happens when you rely on "friendly" GUIs -- they obfuscate the true situation.
I see, I knew from a past experience that GUIs are not always transparent, I guess it didn't cross my mind this time.
When you say I have an MBR disk, does that mean I only have an MBR or could it also mean I have a protective MBR, and a GPT right after it? If I do, why did my Debian install create it?
I am just trying to piece together the links you posted. Or did you just post the second link just to clarify that GPT can be used on a non-UEFI machine, given that it has a BIOS Boot partition, and I only have an MBR disk?
Here is a related post in another thread. The OP had a similar problem, and I posted a link to this thread, and I posted the result there of:
Code:
$ sudo fdisk -l /dev/sda
$ sudo gdisk -l /dev/sda
gdisk returned that GPT was not present on the disk, only MBR was, so to tentatively answer my own question, I think I only have MBR on my disk.
Last edited by /dev/dog; 01-12-2015 at 07:24 AM.
Reason: last sentence
GPT can be used on non-UEFI machines or on machines which have GPT/UEFI support. If you do not use UEFI, you can still use GPT and it should create a BIOS boot partition. They are usually much smaller, 1MB. A UEFI partition is usually FAT32 and is usually several hundred MB in size.
Your parted output shows 2 ntfs primary partitions, one ext4 primary partition and the 4th primary partition is shown as 'extended' and it contains the logical partitions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.