public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] where is 'mke2fs' ?
@ 2022-11-17 20:30 Philip Webb
  2022-11-17 20:40 ` ralfconn
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Philip Webb @ 2022-11-17 20:30 UTC (permalink / raw
  To: Gentoo User

I need to rewrite the filesystem on a USB stick after it got damaged.
My notes tell me to use 'mke2fs', but 'which' doesn't find it :
has it been replaced by something else ?
I have 'e2fsprogs' installed, but there's no 'man' file for it
& it doesn't seem to create filesystems.
There is a utility 'sys-fs/genext2fs', which I emerged & looked at,
but it's not clear whether it does the simple job I need.

Can anyone advise ?

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] where is 'mke2fs' ?
  2022-11-17 20:30 [gentoo-user] where is 'mke2fs' ? Philip Webb
@ 2022-11-17 20:40 ` ralfconn
  2022-11-17 20:41 ` Arve Barsnes
  2022-11-17 21:16 ` [gentoo-user] where is 'mke2fs' ? Jack
  2 siblings, 0 replies; 8+ messages in thread
From: ralfconn @ 2022-11-17 20:40 UTC (permalink / raw
  To: gentoo-user

On 11/17/22 21:30, Philip Webb wrote:

> I need to rewrite the filesystem on a USB stick after it got damaged.
> My notes tell me to use 'mke2fs', but 'which' doesn't find it :
> has it been replaced by something else ?
> I have 'e2fsprogs' installed, but there's no 'man' file for it
> & it doesn't seem to create filesystems.
> There is a utility 'sys-fs/genext2fs', which I emerged & looked at,
> but it's not clear whether it does the simple job I need.
>
> Can anyone advise ?
>
You have the right package, mke2fs is inside it:

$ equery f sys-fs/e2fsprogs ... /sbin/mke2fs /sbin/mkfs.ext2 -> mke2fs 
/sbin/mkfs.ext3 -> mke2fs /sbin/mkfs.ext4 -> mke2fs

Here man page is installed
$ man mke2fs

And which/whereis also:

$ which mke2fs
/sbin/mke2fs

$ whereis mke2fs
mke2fs: /sbin/mke2fs /usr/share/man/man8/mke2fs.8.bz2




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] where is 'mke2fs' ?
  2022-11-17 20:30 [gentoo-user] where is 'mke2fs' ? Philip Webb
  2022-11-17 20:40 ` ralfconn
@ 2022-11-17 20:41 ` Arve Barsnes
  2022-11-17 20:53   ` Matt Connell
  2022-11-17 21:16 ` [gentoo-user] where is 'mke2fs' ? Jack
  2 siblings, 1 reply; 8+ messages in thread
From: Arve Barsnes @ 2022-11-17 20:41 UTC (permalink / raw
  To: gentoo-user

On Thu, 17 Nov 2022 at 21:30, Philip Webb <purslow@ca.inter.net> wrote:
>
> I need to rewrite the filesystem on a USB stick after it got damaged.
> My notes tell me to use 'mke2fs', but 'which' doesn't find it :
> has it been replaced by something else ?
> I have 'e2fsprogs' installed, but there's no 'man' file for it
> & it doesn't seem to create filesystems.
> There is a utility 'sys-fs/genext2fs', which I emerged & looked at,
> but it's not clear whether it does the simple job I need.

# equery b `which mke2fs`
 * Searching for /sbin/mke2fs ...
sys-fs/e2fsprogs-1.46.5-r4 (/sbin/mke2fs)

Might it be hidden behind USE="tools"?

Regards,
Arve


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] where is 'mke2fs' ?
  2022-11-17 20:41 ` Arve Barsnes
@ 2022-11-17 20:53   ` Matt Connell
  2022-11-17 22:43     ` Ramon Fischer
  2022-11-17 23:44     ` [gentoo-user] where is 'mke2fs' ? -- solved Philip Webb
  0 siblings, 2 replies; 8+ messages in thread
From: Matt Connell @ 2022-11-17 20:53 UTC (permalink / raw
  To: gentoo-user

On Thu, 2022-11-17 at 21:41 +0100, Arve Barsnes wrote:
> Might it be hidden behind USE="tools"?

This is correct.

$ equery uses e2fsprogs
...
+ + tools       : Build extfs tools (mke2fs, e2fsck, tune2fs, etc.) 

Philip, make sure you have the 'tools' USE flag enabled for e2fsprogs
and it should be available in /sbin/


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] where is 'mke2fs' ?
  2022-11-17 20:30 [gentoo-user] where is 'mke2fs' ? Philip Webb
  2022-11-17 20:40 ` ralfconn
  2022-11-17 20:41 ` Arve Barsnes
@ 2022-11-17 21:16 ` Jack
  2022-11-17 21:36   ` Laurence Perkins
  2 siblings, 1 reply; 8+ messages in thread
From: Jack @ 2022-11-17 21:16 UTC (permalink / raw
  To: gentoo-user

On 11/17/22 15:30, Philip Webb wrote:
> I need to rewrite the filesystem on a USB stick after it got damaged.
> My notes tell me to use 'mke2fs', but 'which' doesn't find it :
> has it been replaced by something else ?
> I have 'e2fsprogs' installed, but there's no 'man' file for it
> & it doesn't seem to create filesystems.
> There is a utility 'sys-fs/genext2fs', which I emerged & looked at,
> but it's not clear whether it does the simple job I need.
>
> Can anyone advise ?
On my system, /sbin/mke2fs is part of sys-fs/e2fsprogs-2.46.5-r3 with 
the tools USE FLAG set.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [gentoo-user] where is 'mke2fs' ?
  2022-11-17 21:16 ` [gentoo-user] where is 'mke2fs' ? Jack
@ 2022-11-17 21:36   ` Laurence Perkins
  0 siblings, 0 replies; 8+ messages in thread
From: Laurence Perkins @ 2022-11-17 21:36 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org



> -----Original Message-----
> From: Jack <ostroffjh@users.sourceforge.net> 
> Sent: Thursday, November 17, 2022 1:16 PM
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] where is 'mke2fs' ?
> 
> On 11/17/22 15:30, Philip Webb wrote:
> > I need to rewrite the filesystem on a USB stick after it got damaged.
> > My notes tell me to use 'mke2fs', but 'which' doesn't find it :
> > has it been replaced by something else ?
> > I have 'e2fsprogs' installed, but there's no 'man' file for it & it 
> > doesn't seem to create filesystems.
> > There is a utility 'sys-fs/genext2fs', which I emerged & looked at, 
> > but it's not clear whether it does the simple job I need.
> >
> > Can anyone advise ?
> On my system, /sbin/mke2fs is part of sys-fs/e2fsprogs-2.46.5-r3 with the tools USE FLAG set.
> 
Does your PATH perhaps simply not contain /sbin ?  Some people do that for...  reasons...

LMP

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] where is 'mke2fs' ?
  2022-11-17 20:53   ` Matt Connell
@ 2022-11-17 22:43     ` Ramon Fischer
  2022-11-17 23:44     ` [gentoo-user] where is 'mke2fs' ? -- solved Philip Webb
  1 sibling, 0 replies; 8+ messages in thread
From: Ramon Fischer @ 2022-11-17 22:43 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 2760 bytes --]

In addition to this, you might also want to take a look at "e-file", 
which comes from the package "app-portage/pfl" in order to find parent 
packages of binary files:

    $ e-file e-file
    [I] app-portage/pfl
             Seen Versions:          2.3 2.4-r4 2.4-r5 3.0-r1 3.0-r2
    3.0.1-r2 3.0.1-r3 3.1 3.1-r1 3.2 3.2-r1 3.2-r2
             Portage Versions:       3.2-r2
             Installed Versions:     3.2-r2(Tue Apr 12 03:52:18 2022)
             Homepage: http://www.portagefilelist.de
    https://github.com/portagefilelist/client
             Description:            Searchable online file/package
    database for Gentoo
             Matched Files: /gentoo64/usr/bin/e-file; /usr/bin/e-file;
    /usr/lib/python-exec/python3.10/e-file;
    /usr/lib/python-exec/python3.8/e-file;
    /usr/lib/python-exec/python3.9/e-file
    $ e-file mke2fs :(
    [I] sys-apps/busybox
             Seen Versions:          1.34.1
             Portage Versions:       1.34.1 1.34.1-r1 1.35.0 1.35.0-r1 9999
             Installed Versions:     1.34.1(Mon Mar 14 16:07:15 2022)
             Homepage: https://www.busybox.net/
             Description:            Utilities for rescue and embedded
    systems
             Matched Files:          /usr/bb/mke2fs

    [I] sys-fs/e2fsprogs
             Seen Versions:          1.42.7 1.43.3-r1 1.43.6 1.43.9
    1.44.5 1.45.2 1.45.4 1.45.5 1.45.6 1.45.7 1.46.0 1.46.1 1.46.2
    1.46.3 1.46.4 1.46.5 1.46.5-r1
             Portage Versions:       1.46.5-r3 1.46.5-r4
             Installed Versions:     1.46.5-r3(Sun Oct 30 22:05:09 2022)
             Homepage: http://e2fsprogs.sourceforge.net/
             Description:            Standard EXT2/EXT3/EXT4 filesystem
    utilities
             Matched Files: /gentoo64/sbin/mke2fs; /sbin/mke2fs;
    /usr/sbin/mke2fs;
    /usr/src/debug/sys-fs/e2fsprogs-1.46.4/e2fsprogs-1.46.4/misc/mke2fs

That's funny. I forgot from which package the binary file "e-file" came 
from, so I used "e-file" to determine its origin. :D

-Ramon

On 17/11/2022 21:53, Matt Connell wrote:
> On Thu, 2022-11-17 at 21:41 +0100, Arve Barsnes wrote:
>> Might it be hidden behind USE="tools"?
> This is correct.
>
> $ equery uses e2fsprogs
> ...
> + + tools       : Build extfs tools (mke2fs, e2fsck, tune2fs, etc.)
>
> Philip, make sure you have the 'tools' USE flag enabled for e2fsprogs
> and it should be available in /sbin/
>

-- 
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 8969 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] where is 'mke2fs' ? -- solved
  2022-11-17 20:53   ` Matt Connell
  2022-11-17 22:43     ` Ramon Fischer
@ 2022-11-17 23:44     ` Philip Webb
  1 sibling, 0 replies; 8+ messages in thread
From: Philip Webb @ 2022-11-17 23:44 UTC (permalink / raw
  To: gentoo-user

221117 Matt Connell wrote:
> On Thu, 2022-11-17 at 21:41 +0100, Arve Barsnes wrote:
>> Might it be hidden behind USE="tools"?
> This is correct.

>   $ equery uses e2fsprogs
>   ...
>   + + tools       : Build extfs tools (mke2fs, e2fsck, tune2fs, etc.) 
> 
> Make sure you have the 'tools' USE flag enabled for e2fsprogs
> and it should be available in /sbin/

Yes : sometime ago the 'tools' flag must have been introduced
& since I don't format devices often, it didn't trip me up till now.
I've updated my notes.

I formatted the stick, copied the files it had before the damage,
then discovered that it was in fact physically bad,
so 'mke2fs' wasn't needed today.  I used another formatted stick instead.

Thanx to both + Jack as well.

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-17 23:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-17 20:30 [gentoo-user] where is 'mke2fs' ? Philip Webb
2022-11-17 20:40 ` ralfconn
2022-11-17 20:41 ` Arve Barsnes
2022-11-17 20:53   ` Matt Connell
2022-11-17 22:43     ` Ramon Fischer
2022-11-17 23:44     ` [gentoo-user] where is 'mke2fs' ? -- solved Philip Webb
2022-11-17 21:16 ` [gentoo-user] where is 'mke2fs' ? Jack
2022-11-17 21:36   ` Laurence Perkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox