LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-14-2023, 11:08 AM   #1
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 465

Rep: Reputation: 114Reputation: 114
mke2fs -text4 -- grub: unknown filesystem


Current64 -- e2fsprogs 1.46.6 => 1.47.0 -- grub 2.06;4

For "ages" my backup/restore procedure is:
Code:
# clean & tar czf ...
-----
# mke2fs -text4 -O 64bit ...
# tune2fs -c 0 -i 0 ...
# tar xpf ...
I use grub to boot such a partition -- e.g.:
Code:
menuentry 'Slackware 15.0 Current' {
   set root=($hdX,7)
   linux /boot/vmlinuz root=/dev/nvme0n1p7 ro pci=noaer
   initrd /boot/initrd.gz
}
Since e2fsprogs was upgraded to 1.47.0 grub complains about an unknown filesystem.
The filesystem can be normally read and written to by linux.
Falling back to e2fsprogs 1.46.6 "resolves" the problem.
Pinning e2fsprogs to 1.46.6 for the time being ...

Last edited by burdi01; 02-14-2023 at 11:43 AM.
 
Old 02-14-2023, 11:14 AM   #2
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 904

Rep: Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693
Release notes (emphasis added):

Quote:
E2fsprogs 1.47.0 (February 5, 2023)
UI and Features

Add support for the orphan_file feature, which speeds up workloads that are deleting or truncating a large number files in parallel. This compat feature was first supported in the v5.15 Linux kernel.

The mke2fs program (via the mke2fs.conf file) now enables the metadata_csum_seed and orphan_file features by default. The metadata_csum_seed feature is an incompat feature which is first supported in the Linux kernel starting in the 4.4 kernel and e2fsprogs 1.43.

Mke2fs now supports the extended option "assume_storage_prezeroed" which causes mke2fs to skip zeroing the journal and inode tables and to mark the inode tables as zeroed.

Add support to tune2fs and e2label to set the label and UUID for a mounted file system using a ioctl, which is more reliable than modifying the superblock via writing to the block device. The kernel support for setting the label landed in v5.17, while the support for adding the UUID landed in v6.0. If the ioctls are not supported, tune2fs and e2label will fall back old strategy of directly modifying the superblock.

Allow tune2fs to disable the casefold feature after scanning all of the directories do not have the Casefold flag set.
Fixes

Fix a potential unbalanced mutex unlock when there is a short read while using the bounce buffer when using direct I/O.
Performance, Internal Implementation, Development Support etc.

Fix various Coverity and compiler warnings.

Add the new function ext2fs_xattrs_read_inode() which takes an in-memory inode to avoid needing to reread an inode that was already read into memory.

Teach debugfs logdump command the -n option which forces printing a specified number of transactions, even when a block missing a magic number would have stopped the logdump. (This is for debugging journalling problems.)
Maybe grub can't understand the metadata_csum_seed and/or orphan_file features? Maybe try disabling them when you create the file system?
 
Old 02-14-2023, 12:01 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I use
Code:
mkfs.ext4 -O 64bit
unless the partition is tiny. It saves having to get clever with the options and remember stuff.
 
Old 02-14-2023, 07:49 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
Maybe grub can't understand the metadata_csum_seed
That's the problem. Until grub catches up, removing metadata_csum_seed from /etc/mke2fs.conf works. Ran into a similar problem with grub when Slackware 12.1 increased inode size from 128 to 256 bytes for ext2 and ext3 filesystems.

Last edited by colorpurple21859; 02-14-2023 at 07:55 PM.
 
Old 02-14-2023, 07:57 PM   #5
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,354

Rep: Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066
Reported by gentoo:
https://bugs.gentoo.org/894200

Patch:
https://git.savannah.gnu.org/cgit/gr...7aca0c64e7c763
 
2 members found this post helpful.
Old 02-15-2023, 04:15 AM   #6
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 465

Original Poster
Rep: Reputation: 114Reputation: 114
Thks guys.
 
Old 02-17-2023, 03:44 PM   #7
paolo27957
LQ Newbie
 
Registered: Aug 2010
Location: Roma, Italy
Distribution: slackware
Posts: 27

Rep: Reputation: 10
Hi all, I also had the same problem when I reformatted one of the partitions where a linux installation was being launched from Slackware grub. I also thought it might be some incompatibility. Reading this forum I decided to follow Monsieur Marav's suggestion, so I added the patch file to the official source directory, slightly modified the SlackBuild and finally recompiled. Then I removed the official grub and installed the newly compiled one, ran grub-install and grub-mkconfig. Now grub also correctly sees partitions formatted with the recent mke2fs. While waiting for Mister Volkerding to make this grub patch official, I attach my version to this post.

Last edited by paolo27957; 03-22-2024 at 07:22 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub rescue> errors unknown filesystem, unknown commands, no live boot lazymonk Linux - Software 14 04-19-2016 01:51 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] mke2fs -jv /dev/<xxx> ; will not make a filesystem here Forget-Me-Not Slackware 3 10-30-2012 03:35 PM
how to create ext3 filesystem using 'mke2fs -j' shankara Linux From Scratch 2 03-31-2006 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration