Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/usr/bin/fdisk does not belong to any package?!?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jmbreuer
n00b
n00b


Joined: 07 Sep 2011
Posts: 21

PostPosted: Tue Sep 10, 2024 11:08 am    Post subject: /usr/bin/fdisk does not belong to any package?!? Reply with quote

As part of some (external) disk wrangling, I was using fdisk/sfdisk/gdisk/parted a lot.

The gdisk command was missing on a system upgraded from an older install, so I tried to see what package I would need.

Code:
eix gdisk
- nothing.

Maybe it's a gpt USE flag of fdisk, or such?
Code:
equery u fdisk
- no such package.

OK where is my /usr/bin/fdisk coming from?
Code:
equery b /usr/bin/fdisk
- no matching package.

My /usr/bin/fdisk is fairly recent (Sep 7, would match with last emerge @world etc).

How come it's (still) there, and works, but not owned by any package? 8O


(I've since found out that gdisk is part of sys-apps/gptfdisk, but that doesn't solve the mystery of the orphaned /usr/bin/fdisk)
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5104
Location: Bavaria

PostPosted: Tue Sep 10, 2024 11:47 am    Post subject: Reply with quote

I get:
Code:
$ equery b fdisk
 * Searching for fdisk ...
sys-apps/util-linux-2.39.4-r1 (/sbin/fdisk)
sys-apps/util-linux-2.39.4-r1 (/usr/share/bash-completion/completions/fdisk)

$ equery b gdisk
 * Searching for gdisk ...
sys-apps/gptfdisk-1.0.9-r3 (/usr/sbin/gdisk)

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1730
Location: Germany

PostPosted: Tue Sep 10, 2024 12:45 pm    Post subject: Reply with quote

could be a merged-usr "problem".

There is also another alternative to find where a file/command comes from: https://wiki.gentoo.org/wiki/Pfl

Usable also without installation: https://www.portagefilelist.de/?fs=%2Fsbin%2Ffdisk#panchor or https://www.portagefilelist.de/?fs=fdisk#panchor
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3425
Location: Canada

PostPosted: Tue Sep 10, 2024 3:38 pm    Post subject: Reply with quote

fdisk normally belongs to

sys-apps/util-linux
Back to top
View user's profile Send private message
jmbreuer
n00b
n00b


Joined: 07 Sep 2011
Posts: 21

PostPosted: Tue Oct 01, 2024 5:09 pm    Post subject: Reply with quote

Thank you all!

Hmmm, so sys-apps/util-linux does provide /sbin/fdisk (et al), and:

Code:
$ ls -l /usr/bin/fdisk /sbin/fdisk
-rwxr-xr-x 1 root root 166032 Aug  2 18:29 /sbin/fdisk*
-rwxr-xr-x 1 root root 166032 Aug  2 18:29 /usr/bin/fdisk*


(cmp also says they're the same).

... why is there another exact - and recent, I certainly didn't do any merge-usr shenanigans since August - copy of /sbin/fdisk in /usr/bin/fdisk...? Aah, because /sbin now is a symlink to /usr/bin! ...

Should util-linux really be installing there, then?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22651

PostPosted: Tue Oct 01, 2024 6:04 pm    Post subject: Reply with quote

If /sbin is a symlink to /usr/bin, then you are on a merged-usr profile. What is the output of eselect profile show ; namei -l /{,usr/}{,s}bin?

What do you think util-linux is doing wrong here?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum