Ubuntu – How to run Disk Utility in terminal via a comand line

command linedisk-utility

First of all, I must say that I have successfully used Disk Utility in the past and thus I could rename my partitions.

But yesterday, I saw that my partitions are not mounted, so I used Storage Device Manager to make them to automatically mount at start up. That was a success also but I saw that the partitions are labelled as sda1 and sda7 not as they were initially. So I wonted to open again Disk Utility to rename them.

The problem is that, no matter how many times I try to open the application it just does't start at all! I don't know why it is doing this, as I have already told, I could use it in the past very well. I don't know if this "lack of reaction" of the application is the result of the actions I described before, or it is something else.

But I'm thinking of trying to start Disk Utility in terminal. Maybe I'll force it to run and solve the labelling problem. Do you have any ideas?

Best Answer

The application behind "Disk Uitility" changed in newer release versions. Hence the terminal command to call them is as follows:

For >= 12.10

gnome-disks

For earlier versions including 12.04:

palimpsest

Renaming partitions can also be done with a command line tool (no need to install and run gparted):

Please note that the device and partition names /sda, resp. /sda1 ... /sdaX and /sdb /sdc .. do not depend on the disk label but are internal device numbers, depending on partition layout, SATA-port attachment, BIOS. To avoid confusion we have a unique UUID for each drive to mount it appropriately. This can be replaced by a label if needed.