Gentoo Archives: gentoo-user

From: ralfconn <mentadent47@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] where is 'mke2fs' ?
Date: Thu, 17 Nov 2022 20:40:57
Message-Id: 3bff549f-cf66-9baf-60ba-01107f3c74fa@yahoo.com
In Reply to: [gentoo-user] where is 'mke2fs' ? by Philip Webb
1 On 11/17/22 21:30, Philip Webb wrote:
2
3 > I need to rewrite the filesystem on a USB stick after it got damaged.
4 > My notes tell me to use 'mke2fs', but 'which' doesn't find it :
5 > has it been replaced by something else ?
6 > I have 'e2fsprogs' installed, but there's no 'man' file for it
7 > & it doesn't seem to create filesystems.
8 > There is a utility 'sys-fs/genext2fs', which I emerged & looked at,
9 > but it's not clear whether it does the simple job I need.
10 >
11 > Can anyone advise ?
12 >
13 You have the right package, mke2fs is inside it:
14
15 $ equery f sys-fs/e2fsprogs ... /sbin/mke2fs /sbin/mkfs.ext2 -> mke2fs
16 /sbin/mkfs.ext3 -> mke2fs /sbin/mkfs.ext4 -> mke2fs
17
18 Here man page is installed
19 $ man mke2fs
20
21 And which/whereis also:
22
23 $ which mke2fs
24 /sbin/mke2fs
25
26 $ whereis mke2fs
27 mke2fs: /sbin/mke2fs /usr/share/man/man8/mke2fs.8.bz2