Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

/usr/bin/fdisk does not belong to any package?!?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
jmbreuer
n00b
n00b
Posts: 26
Joined: Wed Sep 07, 2011 9:22 am
Contact:
Contact jmbreuer
Website

/usr/bin/fdisk does not belong to any package?!?

  • Quote

Post by jmbreuer » Tue Sep 10, 2024 11:08 am

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: Select all

eix gdisk
- nothing.

Maybe it's a gpt USE flag of fdisk, or such?

Code: Select all

equery u fdisk
- no such package.

OK where is my /usr/bin/fdisk coming from?

Code: Select all

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)
Top
pietinger
Moderator
Moderator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Tue Sep 10, 2024 11:47 am

I get:

Code: Select all

$ 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 --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Banana
Moderator
Moderator
User avatar
Posts: 2379
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Tue Sep 10, 2024 12:45 pm

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=%2Fs ... sk#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
Top
dmpogo
Advocate
Advocate
Posts: 3711
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Tue Sep 10, 2024 3:38 pm

fdisk normally belongs to

sys-apps/util-linux
Top
jmbreuer
n00b
n00b
Posts: 26
Joined: Wed Sep 07, 2011 9:22 am
Contact:
Contact jmbreuer
Website

  • Quote

Post by jmbreuer » Tue Oct 01, 2024 5:09 pm

Thank you all!

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

Code: Select all

$ 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?
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Oct 01, 2024 6:04 pm

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?
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic