F2FS and LILO, "Fatal: hole found in map file (zero sector)"
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,189
Original Poster
Rep:
Quote:
Originally Posted by Didier Spaier
Ugliness lies in the eye of the beholder, so I won't argue on that, even less so as the look of the greeting screen doesn't matter to me. However I have quickly found 396 grub themes in just one website. If none of them please you, feel free to create yours..........
Grub themes?! Interesting!
Is this something relatively new?
Thanks for the information.
According to the git log the Starfield theme shipped in the grub source archive have been provided eight years ago. So I would tend to answer that this is something relatively old.
Last edited by Didier Spaier; 04-27-2020 at 04:33 PM.
The information in those tables is not correct. Eg: LILO can boot DOS. I've seen it first hand. Also, eLILO supports network booting.
Quote:
Originally Posted by Didier Spaier
LVM, RAID and cryptography are supported, now including LUKS2, with fully encrypted drive (no need for a non encrypted /boot partition).
Those features are great, but this begs the question: Can an EFI partition be contained within an LVM/RAID or encrypted disk? I'm happy to be corrected but everything I've read seems to indicate that it cannot.
Quote:
Originally Posted by Didier Spaier
There is a specification, everyone is free to write a driver for the file system and GPL it. Of course GRUB did. Here is the top of the file fat.c in grub's source code:
91.7 MB for two kernels? What kind of kernels are these?
Right now I'm using a 5.1.11 kernel which is only 2.3 MB; the modules add up to 4 MB.
Sure, I compiled my kernel myself, but I've never even heard of a distribution kernel that was larger than 8 MB.
Just saying.
I have 290MB in my /boot/ right now. 23MB in the initrd-tree and the rest in various kernels and initrds. But then I also have 19 initrds and 20 kernels (I'm lazy and don't clean them out). The largest generic kernel is 6MB (a 5.4.30 built off Pat's config slightly modified) and the largest initrd is 7.3MB.
But if someone starts adding to the initrd-tree, it could bring the size up more quickly.
Yes, all of this I think, by itself, i.e. without needing UEFI DUET.
Wait a second! I talked about booting from USB 3.0 adapter cards or NVME drives mounted in PCI-express adapters, like the ones from the attached images.
I have news for you! Both of them have no BIOS boot support. They aren't even seen by BIOS other than some obscure enumerated PCI devices. So, your beloved GRUB will not know that they are in your box because that non-EFI BIOS itself doesn't.
BUT, that UEFI DUET, like any honorable EFI implementation, have drivers for them: XhciDxe.efi and NvmExpressDxe.efi
IF somehow you managed to convince the UEFI DUET to load those drivers, then you obtained a little EFI which is aware of both your NVME drive and your USB 3.0 adapter card, and be able to boot from them.
Then, you may use your favorite boot manager, be it rEFInd, GRUB or even ELILO, to use those devices and find whatever is bootable on them.
Of course, you may use a classic hard drive to host a boot partition for your favorite bootloader, be it GRUB, LILO or SYSLINUX, then leave the Linux kernel to handle its things. It does work - and I tried this myself, but I will not consider this really as "booting from a NVME drive"
Why? What IF in your NVME drive is not installed Slackware but Windows 10 or MAC OS/X? How you boot them?
Quote:
Originally Posted by Didier Spaier
As a an aside, although rEFInd be shipped in its zipped archive, when using UEFI DUET on non-EFI firmware it doesn't run rEFInd.
Did you tried yourself making an USB flash for UEFI DUET/rEFInd (using probably Windows), or you talk after just looking at archives?
While rEFInd is optional (at least on the particular build used by myself), if you chose also to add rEFInd to your flash drive, it will be certainly ran.
Last edited by LuckyCyborg; 04-27-2020 at 10:15 PM.
The information in those tables is not correct. Eg: LILO can boot DOS. I've seen it first hand. Also, eLILO supports network booting.
If you can correct this information, great. This will help future readers of these tables.
Quote:
Those features are great, but this begs the question: Can an EFI partition be contained within an LVM/RAID or encrypted disk? I'm happy to be corrected but everything I've read seems to indicate that it cannot.
As I am confident that neither me nor a Slint user risks to be sued for patent infringement speculation about intentions of Microsoft do not interest me.
Last edited by Didier Spaier; 04-28-2020 at 01:49 AM.
One thing which rEFInd does very well that GRUB really struggles with: Looking good. GRUB is ugly. Period.
Well it depends a lot on the artist doing the grub2 theme, which Slackware doesn't seem to have.
So it's kinda like a brick wall, not painted but serves a purpose nonetheless.
While we're at it, I don't think any bootloaders are visually appealing.
As long as they don't support all resolutions, there's not much point writing themes which will all get skewed on different displays.
And since you've mentioned refind is good looking, I remember PLoP boot manager it was the best looking and had a starfield background, but was proprietary.
Too bad, because the ability to run screensavers in background is a great feature.
Arguably, there are many useful features an 'ugly' bootloader could do, like ability to run MC, ability to defragment a drive, resize partitions, etc.
But for my use case, I think legacy grub or manually configured grub2 was the most functional one, so I prefer those two.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,189
Original Poster
Rep:
I've been using the bitmap below with LILO for years. It had to be converted to jpeg to be uploaded here.
Sorry I can't remember the name of the individual who was kind enough to create it.
I have LILO setup so the bitmap remains on the screen until an OS or kernel is selected. The "menu" is put into the upper right hand corner.
Last edited by cwizardone; 04-28-2020 at 07:31 AM.
Interesting article. However, I would like to add that there are more requirements for a filesystem than performance alone. Of particular importance are transactional guarantees. To me, the absolute fundamental minimum is consistency and durability at all times, including system freeze and power outage situations. In those situations where consistency cannot be guaranteed (bad blocks?), I expect the most graceful degradation possible. This is the entry hurdle for a filesystem to be even considered.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,189
Original Poster
Rep:
Quote:
Originally Posted by cwizardone
I've been using the bitmap below with LILO for years. It had to be converted to jpeg to be uploaded here.
Sorry I can't remember the name of the individual who was kind enough to create it.
I have LILO setup so the bitmap remains on the screen until an OS or kernel is selected. The "menu" is put into the upper right hand corner.
OK, just stumbled across the "Slackware64 Linux" image mentioned above in post #41,
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,189
Original Poster
Rep:
This should appear in the 5.9 kernel.
Quote:
f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctldev
Added a new ioctl to send discard commands or/and zero out
to selected data area of a regular file for security reason.
The way of handling range.len of F2FS_IOC_SEC_TRIM_FILE:
1. Added -1 value support for range.len to secure trim the whole blocks
starting from range.start regardless of i_size.
2. If the end of the range passes over the end of file, it means until
the end of file (i_size).
3. ignored the case of that range.len is zero to prevent the function
from making end_addr zero and triggering different behaviour of
the function.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.