Where fdisk has gone from Debian Buster installation?

Help with issues regarding installation of Debian

Where fdisk has gone from Debian Buster installation?

Postby qfu38 » 2020-06-29 10:22

For some reason there is no fdisk in /sbin or /usr/sbin while using debian 10 installation shell.
Is is a bug or somewhat?
qfu38
 
Posts: 5
Joined: 2020-06-29 10:15

Re: Where fdisk has gone from Debian Buster installation?

Postby sickpig » 2020-06-29 11:58

Code: Select all
root@s:~# which fdisk
/usr/sbin/fdisk


https://packages.debian.org/buster/fdisk
User avatar
sickpig
 
Posts: 412
Joined: 2019-01-23 10:34

Re: Where fdisk has gone from Debian Buster installation?

Postby peer » 2020-06-29 13:02

on debian testing:

which fdisk
no output

whereis fdisk
fdisk: /usr/sbin/fdisk /usr/share/man/man8/fdisk.8.gz
peer
 
Posts: 125
Joined: 2017-03-26 10:14

Re: Where fdisk has gone from Debian Buster installation?

Postby cuckooflew » 2020-06-29 14:05

'which fdisk' must be run using sudo or su - as you can see below, when I run it as a normal user it returns nothing, this is because the command is not available to a normal user.
I seem to have it,.
Code: Select all
cuckoo@debian:~$ which fdisk
cuckoo@debian:~$
cuckoo@debian:~$ su -
Password:

root@debian:~# which fdisk
/usr/sbin/fdisk
root@debian:~# exit

But, ok, this is Debian SID (bullseye) but it was installed with debian 10 installer, and the upgraded:
Code: Select all
@debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux bullseye/sid
Release:        testing
Codename:       bullseye

This is more for a example, so the OP knows what output to show, and how...if indeed it is missing from the installer , then a bug report should be submitted. I did see when I searched some bug reports for this on Debian 9, but they said it was fixed, we are just debian users, and this should be reported to the developers, not much anyone here can do.
Also include exactly which instillation image you are using.
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 547
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Where fdisk has gone from Debian Buster installation?

Postby RU55EL » 2020-06-29 15:46

Yes, you must have administrator permissions to run 'fdisk'.

Code: Select all
russel@DESKTOP-CK0E8I6:~$ fdisk -l
bash: fdisk: command not found


Code: Select all
russel@DESKTOP-CK0E8I6:~$ sudo fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: CT1000BX500SSD1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x02d520cf

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1  *          2048    1187839    1185792   579M  7 HPFS/NTFS/exFAT
/dev/sda2          1187840  245762047  244574208 116.6G  7 HPFS/NTFS/exFAT
/dev/sda3        245764094 1953523711 1707759618 814.3G  5 Extended
/dev/sda5        245764096  284823551   39059456  18.6G 83 Linux
/dev/sda6        284825600  293025791    8200192   3.9G 82 Linux swap / Solaris
/dev/sda7        293027840 1848668159 1555640320 741.8G 83 Linux
/dev/sda8       1848670208 1953523711  104853504    50G 83 Linux


You don't need administrator permissions for 'which'.
Code: Select all
russel@DESKTOP-CK0E8I6:~$ which which
/usr/bin/which
User avatar
RU55EL
 
Posts: 471
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Where fdisk has gone from Debian Buster installation?

Postby cuckooflew » 2020-06-29 18:33

Just tried running 'fdisk -l' using the Debian 10 netinstall image, and rescue mode, it does have fdisk, :
Image
So we need to know which image specifically, but I suspect it is simply the OP is not doing something correctly.
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 547
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Where fdisk has gone from Debian Buster installation?

Postby p.H » 2020-06-29 18:40

Please guys, pay attention.
qfu38 wrote:while using debian 10 installation shell

This is about the fdisk-udeb installer component in the Debian installer context, not the fdisk command in an installed system context.

The fdisk-udeb installer component which provides fdisk in the Debian installer is still available. However I noticed that it is not installed by default any more in the 10.4 installer. If you want to install it, you can either :
- start the installation with "expert install" in the boot menu and select "fdisk-udeb" in the "load installer components from CD" stage.
- go back to the installer main menu at any time, select "change debconf priority" and lower the priority to "medium" or "low", then go back to the main menu, select "load installer components from CD" and select "fdisk-udeb".
- drop to a shell and run
Code: Select all
anna-install fdisk-udeb
p.H
 
Posts: 1422
Joined: 2017-09-17 07:12

Re: Where fdisk has gone from Debian Buster installation?

Postby RU55EL » 2020-06-29 19:30

p.H wrote:Please guys, pay attention.
qfu38 wrote:while using debian 10 installation shell

This is about the fdisk-udeb installer component in the Debian installer context, not the fdisk command in an installed system context.


Oops! I totally missed that. Thanks for pointing it out!
User avatar
RU55EL
 
Posts: 471
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Where fdisk has gone from Debian Buster installation?

Postby cuckooflew » 2020-06-29 20:55

Well, the OP is not clear on which version of the installer they are using, but also I am confused a little (nothing new, :mrgreen: ) but, any way it does seem to be there, or is this not the same installer ?
Image
=================================================
Image
The above is using: https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.4.0-amd64-netinst.iso
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 547
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Where fdisk has gone from Debian Buster installation?

Postby p.H » 2020-06-29 21:14

This is rescue mode. It installs more components by default than install mode, including fdisk and parted.
p.H
 
Posts: 1422
Joined: 2017-09-17 07:12

Re: Where fdisk has gone from Debian Buster installation?

Postby cuckooflew » 2020-06-29 21:29

Thanks, for clarifying
I was wondering about that,
P.H.If you want to install it, you can either :
- start the installation with "expert install"

Ok, maybe it is a different installer , I don't see any option for "expert install",... mine does show "advanced options", Is that the same, or what you mean ?
Next, ahh, never mind, "advaced options"> "expert install", I see it now, and then the
select "fdisk-udeb" in the "load installer components from CD" stage

Image
Thanks P.H. That is interesting, I had never used or tried the "expert install", since I am not what I would consider a expert, so now I learned something new today.
Looks like the same shell:
Image
So any way , fdisk is available, during the install.
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 547
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Where fdisk has gone from Debian Buster installation?

Postby qfu38 » 2020-06-30 07:57

anna-install fdisk-udeb works for me, thank you
qfu38
 
Posts: 5
Joined: 2020-06-29 10:15

Re: Where fdisk has gone from Debian Buster installation?

Postby p.H » 2020-06-30 10:43

cuckooflew wrote:I had never used or tried the "expert install", since I am not what I would consider a expert

"Expert install" is not reserved to experts. It just asks extra questions. If you don't know what to answer, just leave the default answer. This is actually what the normal install does, without asking.

Here are couple of other commands available in the installer shell which I find useful :

- apt-install <package> allows to install a normal package (not udeb) in the installed system.
- in-target [--pass-stdout] <command> allows to run a command in the installed system. Standard output and error are sent to the installer log (/var/log/syslog and tty4). The option --pass-stdout sends the standard output to the terminal (but not the standard error).

For instance they allow to install the GRUB boot loader with special parameters not supported by the installer.
p.H
 
Posts: 1422
Joined: 2017-09-17 07:12

Re: Where fdisk has gone from Debian Buster installation?

Postby arzgi » 2020-06-30 14:15

p.H wrote:- apt-install <package> allows to install a normal package (not udeb) in the installed system.


A slight typo, should be:
Code: Select all
apt install
arzgi
 
Posts: 638
Joined: 2008-02-21 17:03
Location: Finland

Re: Where fdisk has gone from Debian Buster installation?

Postby p.H » 2020-06-30 14:50

Not a typo.
Please guys, pay attention again.
p.H wrote:Here are a couple of other commands available in the installer shell which I find useful

This is about the Debian installer environement, not the installed system environment. apt is not available in the installer.
p.H
 
Posts: 1422
Joined: 2017-09-17 07:12

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable