LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when booting: Diskfilter writes not supported
#9
[member=5059]whateverthing[/member], that's the power of Linux, things can be done in many ways. Sometimes though, this power may cause
some confusion. The reason why I prefer a swap partition instead of a swap file is, that if the Linux begins to swap, it always
makes the computer a bit ( or more ) slower. When you use a swap file, then the ext4 file system driver must do extra work
since the swap file is in the ext4 formatted partition and so it makes things even slower compared to, if you use a swap
partition, which is not formatted as ext4.

The file system driver is one of the most important parts of the Linux kernel and ext4 is very sophisticated file system and
requires a decent amount of resources from the CPU too - which is not the case with swap partition, which is much easier
for the kernel to maintain. So, it's faster and - as a bonus - it does not fragment the file system at all.

You may create many partitions, including the /boot partition but you don't need a separate /boot  partition. The boot loader
can load the kernel from the root ( / ) partition as well.

Since your HD seems to be about 149 Gb, I recommend that you create a 145Gb root partition and 4Gb swap should be enough. Here is how to do it:

First boot the installation media.

Then make sure, that LL will not auto-mount your new partitions:
Go: 'Menu' -> 'Settings' -> 'Removable Drives and Media'
And under "Removable Storage" make sure that every button is unchecked
and then close the settings.

Then open the terminal, become root and run gdisk:
Code:
sudo su
  (This should be done, so that you won't need to type 'sudo' all the time...)
Code:
gdisk /dev/sda

Create empty partition table
Code:
Command (? for help): o

Create the root partition
Code:
Command (? for help): n

Accept the default partition number 1 and the default first sector 2048 by
pressing ENTER two times.

Then it asks the last sector, type '+145G' and press ENTER
Code:
Last sector (2048-312580095, default = 312580095) or {+-}size{KMGTP}: +145G

Then it asks the partitions type code, choose 8304 and press ENTER
Code:
Hex code or GUID (L to show codes, Enter = 8300): 8304

Then create swap (the second partition)
Code:
Command (? for help): n

Then it asks again the first sector and the size. This time you may choose
the defaults by pressing ENTER three times until it asks again the partitions
type code. Choose 8200 and press ENTER.

Code:
Hex code or GUID (L to show codes, Enter = 8300): 8200

Then toggle the legacy boot flag. Press 'x'
Code:
Command (? for help): x

Then 'a'
Code:
Expert command (? for help): a

Then '1'
Code:
Partition number (1-2): 1

Then '2' followed by two ENTERs
Code:
Toggle which attribute field (0-63, 64 or <Enter> to exit): 2

Now you can check how your partition layout looks like, press 'p'
Code:
Expert command (? for help): p

You should see the two partitions.
Finally write the new layout to disk, by pressing 'w' and ENTER.

Code:
Expert command (? for help): w

(Ignore the warning)

Then make sure the kernel sees the new layout by commanding
Code:
partprobe /dev/sda

Then create the ext4 filesystem
Code:
mkfs.ext4 -t ext4 -m 2 -L root /dev/sda1
(Sometimes it takes some time, so please don't interrupt...)

Then create the swap
Code:
mkswap -L swap /dev/sda2

Then some fine-tuning
Code:
tune2fs -c 10 -e remount-ro -O ^dir_nlink,^huge_file /dev/sda1

Now you are ready and may exit the terminal and begin the installation.
And again, when the installer comes to the partitioning, just edit the two partition
entries. Set the /dev/sda1 partition to be ext4 and mount it to /

And set the /dev/sda2 to be the swap partition.

Do NOT check the 'format' option, since it's done already.
Then just finish the installation.

And finally as I said. Things can be done in many different ways. You may ignore these instructions
if you don't feel comfortable using the terminal - then the graphical installer does everything for you.
However, with the graphical installer you are not able to be so precise.

I hope this helps Smile
Reply


Messages In This Thread
Re: Error when booting: Diskfilter writes not supported - by kpanic - 06-17-2018, 06:24 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)