[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ONLY lsblk worked Re: How to _display_ disk partition info?



On Aug 11, 2025, Richard Owlett wrote:
> On 8/11/25 8:42 AM, Ming Kuang wrote:
> > On Mon, Aug 11, 2025 at 08:30:09AM -0500, Richard Owlett wrote:
> > > I run Debian 12.8 with MATE.
> > > I'm prepping to to do needed housekeeping prior to Trixie install.
> > > Current disk partitioning is *UGLY*!
> > > 
> > > GParted displays desired information.
> > > *HOWEVER* I need something that facilitates doing a copy-n-paste of the
> > > information to a straight text document.
> > > 
> > > What is the recommended procedure?
> > > 
> > > I plead the 5th on what I tried.
> > > 
> > > TIA
> > 
> > I would recommend using fdisk -l and lsblk.
> > 
> 
> ONLY lsblk worked at all. I'll want a tweaked -o option.
> 
> The others gave
> 
> > richard@debian12:~$ parted
> > bash: parted: command not found
> > richard@debian12:~$ sfdisk
> > bash: sfdisk: command not found
> > richard@debian12:~$ fdisk -l
> > bash: fdisk: command not found
> > richard@debian12:~$ su

Here, you would have needed to use "su -" in order to get a new login
session for the root account, so that root's $PATH overrides your user's
$PATH (i.e. such that "/sbin" or "/usr/sbin" is readied).

-- 
|_|O|_| 
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1  E067 6D65 70E5 4CE7 2860

Attachment: signature.asc
Description: PGP signature


Reply to: