Diskpart with CMD

Questions about Wine on Linux
Locked
BASHparallel
Newbie
Newbie
Posts: 1
Joined: Tue Feb 20, 2018 5:24 pm

Diskpart with CMD

Post by BASHparallel »

Hi,

So when running CMD with Wine (either with

Code: Select all

wine cmd
or

Code: Select all

wineconsole
), it says that

Code: Select all

Diskpart
(and

Code: Select all

diskpart
—tried that too) isn't a recognised command.

Code: Select all

Can't recognise 'Diskpart' as an internal or external command, or batch script.
Can't recognise 'diskpart' as an internal or external command, or batch script.
On Windows, this is a partition manager and can wipe storage devices etc. It comes pre-installed with Windows. Also, I should note that I just installed Wine so this might be a nooby question, but how would I go about installing Diskpart on Wine?

Using vanilla Ubuntu 16.04, stable branch of WineHQ (and latest version).

Thank you in advance!
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: Diskpart with CMD

Post by dimesio »

Disk partitioning requires root privileges. Even if you could install it in Wine, it would never work when run as a normal user, and you should never run Wine as root. Plus, a Windows tool is unlikely to understand native *nix file formats.

Use a native partition editor like GParted.
Locked