Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Where fdisk has gone from Debian Buster installation?

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
qfu38
Posts: 5
Joined: 2020-06-29 10:15

Where fdisk has gone from Debian Buster installation?

#1 Post by qfu38 »

For some reason there is no fdisk in /sbin or /usr/sbin while using debian 10 installation shell.
Is is a bug or somewhat?

User avatar
sickpig
Posts: 589
Joined: 2019-01-23 10:34

Re: Where fdisk has gone from Debian Buster installation?

#2 Post by sickpig »

Code: Select all

root@s:~# which fdisk
/usr/sbin/fdisk
https://packages.debian.org/buster/fdisk

peer
Posts: 449
Joined: 2017-03-26 10:14
Has thanked: 8 times
Been thanked: 22 times

Re: Where fdisk has gone from Debian Buster installation?

#3 Post by peer »

on debian testing:

which fdisk
no output

whereis fdisk
fdisk: /usr/sbin/fdisk /usr/share/man/man8/fdisk.8.gz

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Where fdisk has gone from Debian Buster installation?

#4 Post by cuckooflew »

'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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Where fdisk has gone from Debian Buster installation?

#5 Post by RU55EL »

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

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Where fdisk has gone from Debian Buster installation?

#6 Post by cuckooflew »

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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Where fdisk has gone from Debian Buster installation?

#7 Post by p.H »

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

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Where fdisk has gone from Debian Buster installation?

#8 Post by RU55EL »

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!

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Where fdisk has gone from Debian Buster installation?

#9 Post by cuckooflew »

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/cu ... etinst.iso
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Where fdisk has gone from Debian Buster installation?

#10 Post by p.H »

This is rescue mode. It installs more components by default than install mode, including fdisk and parted.

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Where fdisk has gone from Debian Buster installation?

#11 Post by cuckooflew »

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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

qfu38
Posts: 5
Joined: 2020-06-29 10:15

Re: Where fdisk has gone from Debian Buster installation?

#12 Post by qfu38 »

anna-install fdisk-udeb works for me, thank you

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Where fdisk has gone from Debian Buster installation?

#13 Post by p.H »

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.

arzgi
Posts: 1194
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Where fdisk has gone from Debian Buster installation?

#14 Post by arzgi »

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

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Where fdisk has gone from Debian Buster installation?

#15 Post by p.H »

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.

arzgi
Posts: 1194
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Where fdisk has gone from Debian Buster installation?

#16 Post by arzgi »

Thanks for clarifying, my apologies :roll:

Post Reply