Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #264061
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: didn't can use "fdisk"! |
| Date | 2023-12-01 20:50 +0100 |
| Message-ID | <HGhGp-apGC-3@gated-at.bofh.it> (permalink) |
| References | <HGhn4-apAk-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
On Fri, Dec 01, 2023 at 07:06:58PM +0000, fuf wrote:
> root@debian:/sbin# fdisk -l
> bash: fdisk: command not found
>
> whereas:
> root@debian:/sbin# ls -al
> .....
> -rwxr-xr-x 1 root root 169520 Mar 23 2023 fdisk
> ....
> why?
My first guess is that you may have done "su" which results in you
not having /sbin in your path. So you need to execute it as
/sbin/fdisk, or "su -", or become root by some other means.
https://sources.debian.org/src/util-linux/2.33.1-0.1/debian/util-linux.NEWS/
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833256#80
This has been the case since the release of Debian 10 (buster).
If it's not that, please state Debian version, how you became root,
and
$ ls -la /sbin/fdisk
Thanks,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
didn't can use "fdisk"! fuf <fuflono@gmail.com> - 2023-12-01 20:30 +0100
Re: didn't can use "fdisk"! Tom Furie <tom@furie.org.uk> - 2023-12-01 20:40 +0100
Re: didn't can use "fdisk"! Greg Wooledge <greg@wooledge.org> - 2023-12-01 20:40 +0100
Re: didn't can use "fdisk"! Andy Smith <andy@strugglers.net> - 2023-12-01 20:50 +0100
Re: didn't can use "fdisk"! Greg Wooledge <greg@wooledge.org> - 2023-12-01 21:10 +0100
csiph-web