You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Error when booting: Diskfilter writes not supported

Author (Read 22300 times)

0 Members and 2 Guests are viewing this topic.

Re: Error when booting: Diskfilter writes not supported
« Reply #17 on: June 18, 2018, 10:25:30 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1463
    Posts
  • Reputation: 212
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
@kpanic
 I've been following this discussion and if you come up with a solution using the LL live disk I think it should be stickied here. Your last answer is a logical suggestion but I expect that the LVM tools will just restart as soon as you try to repartition because of the sector misalignment, and even if the sector misalignment seems to resolve there is a good chance that kernel updates will rediscover it. I have experienced this behavior from Ubuntu 16.04 on an ASUS AMD box originally with a Windows 8 default OS with a 1T SATA drive. I eventually solved the issue but my solution is too ugly to recommend here. Below is some info that may or may not be worthwhile to add to the discussion. 

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799295
http://ask.xmodulo.com/mount-lvm-partition-linux.html

TC


 
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Error when booting: Diskfilter writes not supported
« Reply #16 on: June 18, 2018, 03:03:21 AM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
@whateverthing, if even Safe Mode does not allow you to create the ext4, then maybe LVM daemon is running
and does not let you do it.

Please try:
Code: [Select]
systemctl stop lvm2-lvmpolld.service
followed by:
Code: [Select]
kill -HUP $(cat /run/lvmetad.pid)
 

Re: Error when booting: Diskfilter writes not supported
« Reply #15 on: June 18, 2018, 02:31:43 AM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
This is strange. Please try to boot into Safe Mode and try again.

If it succeeds in Safe Mode, then boot back to normal mode
 

Re: Error when booting: Diskfilter writes not supported
« Reply #14 on: June 18, 2018, 01:58:25 AM »
 

whateverthing

  • Occasional Poster
  • **
  • 87
    Posts
  • Reputation: 21
  • design enthusiast
    • View Profile
    • My Tumblr: KarHutWhat

  • CPU: Core 2 Duo P8600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GMA X4500

  • Kernel: 4.x
I just tried them both. Both times it said it's not mounted, but both times it said it was in use and could not execute the commands.
Code: [Select]
linux  ~  sudo umount /dev/sda1 && mkfs.ext4 -t ext4 -m 2 -L root /dev/sda1
umount: /dev/sda1: not mounted.
 linux  ~  sudo mkfs.ext4 -t ext4 -m 2 -L root /dev/sda1
mke2fs 1.44.1 (24-Mar-2018)
/dev/sda1 contains a LVM2_member file system
Proceed anyway? (y,N) y
/dev/sda1 is apparently in use by the system; will not make a filesystem here!
 linux  ~  sudo umount /dev/sda1 && wipefs -a /dev/sda1 && mkfs.ext4 -t ext4 -m 2 -L root /dev/sda1
umount: /dev/sda1: not mounted.
 linux  ~  sudo mkfs.ext4 -t ext4 -m 2 -L root /dev/sda1
mke2fs 1.44.1 (24-Mar-2018)
/dev/sda1 contains a LVM2_member file system
Proceed anyway? (y,N) y
/dev/sda1 is apparently in use by the system; will not make a filesystem here!
=Karl=
 

Re: Error when booting: Diskfilter writes not supported
« Reply #13 on: June 18, 2018, 01:28:06 AM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
@whateverthing, ok good.

Please try those two methods, which I wrote
 

Re: Error when booting: Diskfilter writes not supported
« Reply #12 on: June 18, 2018, 01:00:35 AM »
 

whateverthing

  • Occasional Poster
  • **
  • 87
    Posts
  • Reputation: 21
  • design enthusiast
    • View Profile
    • My Tumblr: KarHutWhat

  • CPU: Core 2 Duo P8600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GMA X4500

  • Kernel: 4.x
I'm sure I did:
'Menu' -> 'Settings' -> 'Removable Drives and Media'
...and unchecked all Removable Storage boxes.

And after the error I checked to make sure, and they were still unchecked.
=Karl=
 

Re: Error when booting: Diskfilter writes not supported
« Reply #11 on: June 17, 2018, 10:23:42 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
@whateverthing, did you remember to disable the automounter?

'Menu' -> 'Settings' -> 'Removable Drives and Media'
And under "Removable Storage" make sure that every button is unchecked
and then close the settings.

Also, when you create these partitions and file systems, you may as well
do it as root: just command
Code: [Select]
sudo su
...in case you are not root already for some reason.

If this does not work, then try:
Code: [Select]
umount /dev/sda1 && mkfs.ext4 -t ext4 -m 2 -L root /dev/sda1
If even this does not work, then try:
Code: [Select]
umount /dev/sda1 && wipefs -a /dev/sda1 && mkfs.ext4 -t ext4 -m 2 -L root /dev/sda1
Hopefully this helps. Just a few steps left to  do :)
« Last Edit: June 17, 2018, 11:01:07 PM by kpanic »
 

Re: Error when booting: Diskfilter writes not supported
« Reply #10 on: June 17, 2018, 06:06:46 PM »
 

whateverthing

  • Occasional Poster
  • **
  • 87
    Posts
  • Reputation: 21
  • design enthusiast
    • View Profile
    • My Tumblr: KarHutWhat

  • CPU: Core 2 Duo P8600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GMA X4500

  • Kernel: 4.x
I got a ways through it, but it failed at the mkfs command:

Code: [Select]
linux  ~  sudo partprobe /dev/sda
 linux  ~  sudo mkfs.ext4 -t ext4 -m 2 -L root /dev/sda1
mke2fs 1.44.1 (24-Mar-2018)
/dev/sda1 contains a LVM2_member file system
Proceed anyway? (y,N) y
/dev/sda1 is apparently in use by the system; will not make a filesystem here!
 linux  ~ 
=Karl=
 

Re: Error when booting: Diskfilter writes not supported
« Reply #9 on: June 17, 2018, 02:24:29 AM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
@whateverthing, 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: [Select]
sudo su  (This should be done, so that you won't need to type 'sudo' all the time...)
Code: [Select]
gdisk /dev/sda
Create empty partition table
Code: [Select]
Command (? for help): o
Create the root partition
Code: [Select]
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: [Select]
Last sector (2048-312580095, default = 312580095) or {+-}size{KMGTP}: +145G
Then it asks the partitions type code, choose 8304 and press ENTER
Code: [Select]
Hex code or GUID (L to show codes, Enter = 8300): 8304
Then create swap (the second partition)
Code: [Select]
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: [Select]
Hex code or GUID (L to show codes, Enter = 8300): 8200
Then toggle the legacy boot flag. Press 'x'
Code: [Select]
Command (? for help): x
Then 'a'
Code: [Select]
Expert command (? for help): a
Then '1'
Code: [Select]
Partition number (1-2): 1
Then '2' followed by two ENTERs
Code: [Select]
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: [Select]
Expert command (? for help): p
You should see the two partitions.
Finally write the new layout to disk, by pressing 'w' and ENTER.

Code: [Select]
Expert command (? for help): w
(Ignore the warning)

Then make sure the kernel sees the new layout by commanding
Code: [Select]
partprobe /dev/sda
Then create the ext4 filesystem
Code: [Select]
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: [Select]
mkswap -L swap /dev/sda2
Then some fine-tuning
Code: [Select]
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 :)
« Last Edit: July 12, 2018, 09:57:52 PM by kpanic »
 

Re: Error when booting: Diskfilter writes not supported
« Reply #8 on: June 16, 2018, 06:18:04 PM »
 

whateverthing

  • Occasional Poster
  • **
  • 87
    Posts
  • Reputation: 21
  • design enthusiast
    • View Profile
    • My Tumblr: KarHutWhat

  • CPU: Core 2 Duo P8600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GMA X4500

  • Kernel: 4.x
@kpanic ... It reports End sector 312580095, Size 149.0 GiB.

But I'm seeing all the discussion about swap partition, that Ubuntu 18.04 uses a swap file instead. So is there a different partition plan we should consider? What about a boot partition? I don't have a good understanding partition planning, and I see many options recommended, like this (which also suggests using a swap partition):
https://www.linuxtechi.com/ubuntu-18-04-lts-desktop-installation-guide-screenshots/

And this discussion says the OS will use a swap partition if it finds one:
https://ubuntuforums.org/showthread.php?t=2390779

But is a swap file a more efficient use of drive space, since it can vary in size as needed? I don't really know the issue, I'm just guessing.

Thanks for continuing to help with advice here!
=Karl=
 

Re: Error when booting: Diskfilter writes not supported
« Reply #7 on: June 15, 2018, 01:27:43 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
...and yes, you can choose the default value, which is 2048.

Can you tell me how many sectors there are ( gdisk tells this when you start it ) on your hard drive?

Sorry, my mistake. When you launch 'gdisk /dev/sda', you need to press 'p' and ENTER to get
the amount of sectors in the hard drive / ssd.
 

Re: Error when booting: Diskfilter writes not supported
« Reply #6 on: June 14, 2018, 10:16:15 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
...and yes, you can choose the default value, which is 2048.

Can you tell me how many sectors there are ( gdisk tells this when you start it ) on your hard drive?
 

Re: Error when booting: Diskfilter writes not supported
« Reply #5 on: June 14, 2018, 10:06:14 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • Linux Lite Member
    • View Profile

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
Well, I got to the step where I create the first partition, and am not sure what option to choose here:

Code: [Select]
Warning! Main partition table overlaps the first partition by 34 blocks!
You will need to delete this partition or resize it in another utility.

Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): y

Command (? for help): n
Partition number (1-128, default 1):
First sector (34-30548014, default = 2048) or {+-}size{KMGTP}: 

Should I take the default value?

Also, is that warning a problem?

Hi,

That warning is quite common and you may ignore it since you are creating a new partition table anyway :)

- kpanic
 

Re: Error when booting: Diskfilter writes not supported
« Reply #4 on: June 12, 2018, 01:11:49 AM »
 

whateverthing

  • Occasional Poster
  • **
  • 87
    Posts
  • Reputation: 21
  • design enthusiast
    • View Profile
    • My Tumblr: KarHutWhat

  • CPU: Core 2 Duo P8600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GMA X4500

  • Kernel: 4.x
Well, I got to the step where I create the first partition, and am not sure what option to choose here:

Code: [Select]
Warning! Main partition table overlaps the first partition by 34 blocks!
You will need to delete this partition or resize it in another utility.

Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): y

Command (? for help): n
Partition number (1-128, default 1):
First sector (34-30548014, default = 2048) or {+-}size{KMGTP}: 

Should I take the default value?

Also, is that warning a problem?
=Karl=
 

Re: Error when booting: Diskfilter writes not supported
« Reply #3 on: June 12, 2018, 12:10:07 AM »
 

whateverthing

  • Occasional Poster
  • **
  • 87
    Posts
  • Reputation: 21
  • design enthusiast
    • View Profile
    • My Tumblr: KarHutWhat

  • CPU: Core 2 Duo P8600

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GMA X4500

  • Kernel: 4.x
Wow @kpanic thank you for the detailed instructions! I could pretty easily re-install, so I'll give this a try.
=Karl=
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section