Hi,
Since you installed 4.0 just a few days ago, you probably don't have much important data in there yet?
If you have, can you store it temporarely to a USB stick for example?
This is because I suggest that you make a fresh new installation of LL 4.0.
When you begin the new installation, don't start the actual installation yet, just let the live OS be in the RAM
and open a terminal. In the terminal, use gdisk to repartition your HD. If you have just one HD and LL will be
the only OS in it, then just create two partitions with gdisk:
NOTE: If you make a mistake/typo in any of the following, you may always
press CTRL+C and start again.
Now, make sure you have all of your important data backed up somewhere, in an USB stick
or external HD or such, since the data will be lost from your HD when you repartition it!
Next you see:
Press key 'o' (and ENTER), to create a new empty GPT partition table.
Finally create two new partitions: /dev/sda1 and /dev/sda2.
Press key 'n' to create a new partition.
Now, the first partition will be your root partition, so create it
almost as big as the disk is, but leave at least 16777216 sectors unallocated for swap.
And create the second partition (for swap) the same way you created the first one:
Press key 'n' to create a new partition.
Now you may allocate the rest of the disk for swap and accept the
defaults by pressing ENTER a few times.
This is a little detail but it makes sense to change the swap partition's ( /dev/sda2 )
type, so command:
(And why not change the root partition's type also (if you use 64bit kernel).
Let's also toggle the root partition's legacy boot attribute:
If you got the message: "Have disabled the 'legacy BIOS bootable' attribute",
then toggle again, by pressing '2' again.
Finally write the new partition table to disk by pressing 'w'
Ignore the warnings.
Now you are ready to create the filesystem and swap.
Command:
Then:
Then:
Then initialize the swap partition:
Now you can exit the terminal and click the Install button.
When the installer comes to the partitioning, just edit the 2 entries
and DO NOT choose the 'format' option', since you already did it.
Just mount /dev/sda1 to /
and choose /dev/sda2 to be the swap partition.
Then just finish the installation.
I prefer to do this partitioning before the actual installation, since
you can fine-tune every little detail for the filesystem(s), which is
usually not possible to do when the graphical installer lets you do it.
And it may save you from a lot of time/harm, what some hardware unfortunately
may cause.
Please ask if I may be of any help?
Have fun![Smile Smile](https://www.freecinema2022.gq/forums/images/smilies/smile.png)
Since you installed 4.0 just a few days ago, you probably don't have much important data in there yet?
If you have, can you store it temporarely to a USB stick for example?
This is because I suggest that you make a fresh new installation of LL 4.0.
When you begin the new installation, don't start the actual installation yet, just let the live OS be in the RAM
and open a terminal. In the terminal, use gdisk to repartition your HD. If you have just one HD and LL will be
the only OS in it, then just create two partitions with gdisk:
NOTE: If you make a mistake/typo in any of the following, you may always
press CTRL+C and start again.
Code:
sudo su
Code:
gdisk /dev/sda
Now, make sure you have all of your important data backed up somewhere, in an USB stick
or external HD or such, since the data will be lost from your HD when you repartition it!
Next you see:
Code:
Command (? for help):
Press key 'o' (and ENTER), to create a new empty GPT partition table.
Finally create two new partitions: /dev/sda1 and /dev/sda2.
Press key 'n' to create a new partition.
Code:
Command (? for help): n
Now, the first partition will be your root partition, so create it
almost as big as the disk is, but leave at least 16777216 sectors unallocated for swap.
And create the second partition (for swap) the same way you created the first one:
Press key 'n' to create a new partition.
Code:
Command (? for help): n
Now you may allocate the rest of the disk for swap and accept the
defaults by pressing ENTER a few times.
This is a little detail but it makes sense to change the swap partition's ( /dev/sda2 )
type, so command:
Code:
Command (? for help): t
Partition number (1-2): 2
Hex code or GUID (L to show codes, Enter = 8300): 8200
(And why not change the root partition's type also (if you use 64bit kernel).
Code:
Command (? for help): t
Partition number (1-2): 1
Hex code or GUID (L to show codes, Enter = 8300): 8304
Let's also toggle the root partition's legacy boot attribute:
Code:
Command (? for help): x
Expert command (? for help): a
Partition number (1-2): 1
Toggle which attribute field (0-63, 64 or <Enter> to exit): 2
If you got the message: "Have disabled the 'legacy BIOS bootable' attribute",
then toggle again, by pressing '2' again.
Finally write the new partition table to disk by pressing 'w'
Code:
Command (? for help): w
Ignore the warnings.
Now you are ready to create the filesystem and swap.
Command:
Code:
partprobe /dev/sda
Code:
mkfs.ext4 -t ext4 -m 3 -L root /dev/sda1
Code:
tune2fs -c 10 -e remount-ro /dev/sda1
Code:
mkswap -L swap /dev/sda2
Now you can exit the terminal and click the Install button.
When the installer comes to the partitioning, just edit the 2 entries
and DO NOT choose the 'format' option', since you already did it.
Just mount /dev/sda1 to /
and choose /dev/sda2 to be the swap partition.
Then just finish the installation.
I prefer to do this partitioning before the actual installation, since
you can fine-tune every little detail for the filesystem(s), which is
usually not possible to do when the graphical installer lets you do it.
And it may save you from a lot of time/harm, what some hardware unfortunately
may cause.
Please ask if I may be of any help?
Have fun
![Smile Smile](https://www.freecinema2022.gq/forums/images/smilies/smile.png)