Unable to create ext4 partition in un-allocated space during Ubuntu 16.04.1 installation
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
Unable to create ext4 partition in un-allocated space during Ubuntu 16.04.1 installation
Hello everyone,
I was trying to install Ubuntu 16.04.1 LTS on a Lenovo ThinkPad laptop (2GB RAM, 2.3 GHz processor). I already have Windows installed with an un-allocated space of 258 GB after the Windows C: drive. During installation, I just used a part of the free space (around 120 GB) and partitioned it into three halves:
- 2 GB for swap
- 100 GB for /home and
- 18 GB for /
During installation, I got notified that the swap partition could not be created and the installation aborted. I restored all the free space using gparted and tried installing Ubuntu again, this time without creating a partition for swap. Again during installation, I got an error that ext4 partition could not be created. The installer aborted again...
I am not being able to create ext4 partitions even using gparted. Any help would be appreciated...
Being msdos partition table format, you can only create 4 primary partitions. Been a while since I looked at Ubuntu, but it used to like creating one primary and then a couple of logical partitions. You can't do that.
I would create an extended partition using all that space, then either:
- see if the installer will allow you create all partitions as logical within that extended, or
- allocate all the logicals yourself prior to the install, then assign them mountpoints during the install.
The partitioning step of the install should have an "expert" or "something else" option to allow you to make the assignments you want.
Being msdos partition table format, you can only create 4 primary partitions. Been a while since I looked at Ubuntu, but it used to like creating one primary and then a couple of logical partitions. You can't do that.
I would create an extended partition using all that space, then either:
- see if the installer will allow you create all partitions as logical within that extended, or
- allocate all the logicals yourself prior to the install, then assign them mountpoints during the install.
The partitioning step of the install should have an "expert" or "something else" option to allow you to make the assignments you want.
This is the exact thing which I had done when I had tried installing Ubuntu by creating partitions manually before installation using gparted. I had allocated all the free space into an extended partition and then created those three logical partitions. Gparted had failed to create the partitions. In the Ubuntu installer, there is no option to create an extended partition. It is done automatically. The presence of an extended partition was clearly visible in gparted when the installation via the Ubuntu installer had failed...
Just a guess: I think, the presence of Windows is not allowing partitioning. May be I have to fill the free space with zeros before partitioning can be done...
Edit: When starting gparted, I am getting this message: "The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes." I had chosen to "Ignore" it.
Gparted looks like this after an installation failure. Note that I had created these partitions by choosing "Something Else" in the Ubuntu installer:
You can try not creating the swap space, but the problem may be a requirement that the /boot be on a primary partition (one reason may be due to the BIOS requiring a primary partition for booting).
Another way is to not have a separate home, AND have no swap partition (use a swap file instead). That way you can use a primary partition that has both / and /boot within a single partition.
A booger about /home though. You COULD put /home in a file, and mount it via a loopback. This works for an implied quota control, but doesn't separate /home quite as well as a separate partition (problems with the root partition would still affect the file). Can make backup more obvious - you only have to copy one file (it would be an image backup).
You can try not creating the swap space, but the problem may be a requirement that the /boot be on a primary partition (one reason may be due to the BIOS requiring a primary partition for booting).
Another way is to not have a separate home, AND have no swap partition (use a swap file instead). That way you can use a primary partition that has both / and /boot within a single partition.
A booger about /home though. You COULD put /home in a file, and mount it via a loopback. This works for an implied quota control, but doesn't separate /home quite as well as a separate partition (problems with the root partition would still affect the file). Can make backup more obvious - you only have to copy one file (it would be an image backup).
I simply tried to create a fourth primary partition (of 100 GB) in the free space using gparted. And, I am getting this error:
In gparted highlight the 100GB or 120GB unallocated space and click on New.
Now create a single Extended partition and format it as ext4.
Then within this Extended partition, proceed as before but name each of the new (root, swap and home) partitions as Logical partitions (NOT Primary).
Close gparted.
Boot from Linux Mint DVD/USB drive and at the partitioning stage, choose Something else.
Creation of an extended partition in the free space was successful. But creation of logical partitions inside the extended partition (I tried with 2GB space) was unsuccessful (just like before):
Edit: When starting gparted, I am getting this message: "The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes." I had chosen to "Ignore" it.
Don't know if it's relevant, but I see this error when I try to create some free space on a flash drive onto which I've dd'd a live Linux iso
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.