🥴 Ugly interface? Files all destroyed!
By OctoSpacc
Caution
The content of this page has been entirely machine-translated into English, from Italiano. Therefore, it might contain any kind of errors.
Let’s visually compare two PC applications: GNOME Disks, and GParted.
Both are disk partitioning tools, and broadly serve the same tasks; there is just some difference in extra features or more support in favor of one program or the other. Despite this, the two tools present obvious differences in their graphical interface.
You have to have both
I generally keep both of these two programs installed, and I **use them in a rather alternate way, because:
GParted | GNOME Disks |
---|---|
GParted has fewer distinct functions, but everything has its place, and a sufficient level of depth strong> and features: low-level disk information, formatting in tons of formats, and a few other details. | GNOME Disks has less depth > with individual operations, but offers some extra functions not strictly linked to the modification of partitions, which is always useful: energy and performance management of disks, an interface for the SMART protocol, and also a tool to test memory performance! |
It was a simple mission!
The day before yesterday, when I booted a live USB Linux on [my laptop](https://sitoctt.octt.eu.org/Posts/2022-07-09-Come-ho-Riparato-il- my-Portatile-con-25-Euro.html), I had in mind to complete without damage a theoretically easy and painless mission:
- Free up space on the PC disk, deleting most of the files, except for those that I wanted to keep for a moment (to manage perhaps in the future).
- Resize the partition on the disk, as it will be quite empty at this point.
- Create a new partition large enough to install the new operating system on.1
- Move files from the old partition to the new one, gradually shrinking the first and widening the second, until being able to delete the old.
Too much mess.
…In practice, something went slightly wrong. It couldn’t have been a quiet evening! 😾
This time, for the simple fact that when looking for a partition editor among the pre-installed apps of the live system in question, wanting to get it done straight away, the first program my eyes fell on was GNOME Disks . Oh, I should have stayed away. And there are many reasons:
1. Physical disks are mixed with virtual partitions mounted from physical disks, in the list on the left of the window
Already at this point, if (as in my case) you have strange type partitions, i.e. LVM, the situation becomes ugly, because it is not It’s clear where you have to go** to make changes.2
GParted | GNOME Disks |
---|---|
< strong>GParted only has a list of devices (real disks for sure, but I think also virtual devices) to select first, and then the large view with all the partitions for the chosen device. It is orderly and logical. | On GNOME Disks, however, to do what you need to do, you go to disk view or where? In the first case there are some options and others are missing. Shall we try from the view dedicated to the virtual partition? Here too, the list of options is decidedly neutered, among other things both in the sense of quick icon buttons and in the sense of pop-up menu buttons... but now let's see what problems they have. | tr>
2. As appropriate, the quick icons available for each partition appear and disappear
While on GParted, the list of icon-buttons at the top of the window never changes - rather the individual buttons darken or lighten, depending on whether they can be operated on the selection current or not - on GNOME Disks the hotkeys - indeed, positioned in a strange way too, stuck under the partition table area, which honestly I can’t even comment on - they appear or disappear completely . Below are the cases I have seen, but perhaps there are even more possible ones, who knows:
- On the far left, for some selections you see a play/stop button (mount/unmount partition), other times in the exact same point there is a padlock (lock/unlock encrypted partition), other times a cross (creates partition in empty space), and in some cases nothing.
- Immediately to the right, a gear, button that opens a pop-up menu with a more complete list of options for the partition - we note that this ends up climbing to the far left, if before it there is nothing, just to confuse more.
- Finally, on the extreme right, in some cases a button with a dash on a red background (destroy partition) may appear.
Ehh, this thing isn’t so good, because it makes it impossible to mentally associate a specific microzone of the window as dedicated to a specific operation. And this is potentially dangerous, if you take into account the big problem 5 (below).
3. The options pop-up menu on a partition uses only text labels, never a single icon
A seemingly small detail, but which is actually quite important. A text string allows you to unequivocally understand what a certain key does, unlike what can happen when you only have icons, but the best would be obtained by combining the two things: keys accompanied by icons.
GParted | GNOME Disks |
---|---|
Personally, using GNOME Disks I always find myself having to re-read a good part of the list to select something, although it is no longer than that of GParted, precisely because the icons are missing. |
4. Hotkeys and pop-up menus are not alternatives to each other
GParted | GNOME Disks |
---|---|
On GParted you first have the task bar menu (of which various menus can also be recalled as contextual in some areas), which truly contains all the operations possible in the program; only the is there a bar with icons useful for quickly recalling the probably most common actions. In practice, as long as you have the menu bar, you can even forget about the existence of those little icons there. | < td>With GNOME Disks this is not possible. Actually, on several GTK3 apps it is like this: there are actions fixed to label-keys in a menu, and others fixed to icon-keys directly visible. Generally, however, those buttons do not disappear or partially appear when the state changes within the same application view! Maybe I have strange tastes, but this thing messes with my brain when using the software.
To understand, just compare the buttons in this table to the contextual menu options seen in the one above!
What have I done?
All these factors together led to a huge patatrac! So, what do I do? I need to unmount the partition, before I can resize it.
I go from disk view, and there is only the button for the options menu - plus what will come to mind only after when I will have already broken by now to break up , is the button to destroy the partition. In the list of options I read everything and I don’t even see an entry to unmount the partition. Meh.
I go through the screen dedicated to that mounted partition, and I call up that menu again for I don’t know what reason, and rightly so I still can’t find anything. Next to the options menu button there was in theory the stop button, to unmount the partition, but it is clear that I really didn’t notice it**.
I go back and forth between the two screens about ten times, and nothing, I’m really blind.
At a certain point, my unconscious gets bored of all this circling, and finally allows me to notice another button… the dangerous red one. Ouch ouch. I press it and honestly I don’t even remember if I delete the confirmation dialogue once - which I was absolutely in no psychological condition to read - and then I press the button again for immediately afterwards confirm the dialogue, but one thing is clear:
If up until that moment I couldn’t think straight, because with every breath a rough “WTF?!” rang in my head, it was a matter of a few seconds from the moment of the fatal click because a bad feeling began to appear in my pierced, deformed head, full of expired peanuts… 😰️
…Well, so what? What is it? … Ohhhhah, okay, you win. I admit it: I hit too. Yes. Happy? In the end I moved the hand to click, of course… But in my life I have done these operations many times! Even using GNOME Disks, sometimes among many! 😭️
In any case, no, I won’t put all the blame on poor Octt from three days ago. Now I play my trap card, and expose the real touch of misfortune without which I would probably have saved myself:
5. Each action is performed when you request it, there is no queue
I must admit that sometimes in GParted I have come close to tragedy** - but really tragedy, not like this time which, all things considered, I’m still experiencing. The difference, however, lies precisely in this little word: with GParted the disaster has always at most almost happened, but with GNOME Disks this time it has consumed and that’s it.
On GParted the operations you order end up in a queue, which must be manually applied once you decide to continue. And here too, we are down to the ** minutiae **, yet something like this weighs heavily on the final bill. We can see it like this: in that case, you have to make a mistake two (2) times to make a mess, while with the GNOME program one (1) mistake is enough.
“Is there any damage?”
In any case, I noticed that, after giving the order to delete the partition, it remained mountable, and the file system was all navigable. Probably, what Linux needed to use the partition remained in memory (RAM), and since all the data was never deleted with a simple quick deletion of a partition, it was all still readable.
To be honest, looking at the situation like this I wasn’t even realizing** the reality, I still didn’t understand whether my data had been condemned or not. .. Unclear interface, I said so.
As the feeling of rush passed and gave way to discomfort, I searched for GParted**, found that it’s included in the live system, and started it. Instead of the partition I see “empty space”… oh yes, it’s done. But how come he let me delete the partition without** forcing me to unmount it first? What barbarism! GParted doesn’t allow this, for good reasons.
Yet, deep down, I still haven’t accepted that it was cancelled. I want to see if, after a reboot, it disappears permanently.
And so it is, without even worrying about copying a shred of file - because it was about late and I had to get ready to go to sleep - that I restart. Oh yes, I see the GRUB black screen, and not the system booting! …It’s all lost, there’s no point in going around it now.
“After you did the damage did you think about restarting immediately without even saving the most important files?!?! But then you’re a certified bruh-idiot, twice, not once!” Ooooooooooooo, how dare you? How dare YOU be so right if the blog is MINE??
The only thing we can do now is the damage count. I have not lost unique and very important data, what I no longer have I should in theory be able to redownload or reconstruct. Let’s talk about:
-
40 GB of data exported from my old Google account; account that I planned to delete, but I hadn’t finished transferring everything and so I think it’s all still in the cloud.
-
Various large and small files downloaded from the Web, possibly some hard to find, but nothing vital.
-
Source codes changed; we’re talking about porting attempts for obscure platforms that I tried and failed, or other very forgettable experiments.
-
Dumps of disks that I still have at home (some already uploaded to Archive.org), or additional copies of other data.
-
Documents whose current relevance is nil.
If I forgot something important in this list, however, maybe maybe it wasn’t important, and we can rest assured. Otherwise I would remember, right? Well, knowing me…
Avoid…
The moral of this bad story can be condensed into:
- Avoid GNOME Disks.
- Be careful when dealing with partitions, even if you have done it 50 times in the past.
- Avoid, absolutely, GNOME Disks!
And I close with a advice, or rather, a development philosophy, that all those who design UI (even I, in my things, don’t hide it) forget too often: The user is drunk.
So, greetings. For the future I hope not to lose data in a stupid way (to you, and to me!). 👋
P.S: The Linux distribution I installed this time is Pop!_OS. I really wanted to try it, but on 2 occasions I tried to install it on the desktop PC and it always gave an error. Here on the laptop it worked, wow, so it’s not a broken distro! (Maybe 👀)
🏷️ Notes and References
- The system I had up to that point, Linux Mint, version 19.3, after 3 years:
- It has become stale:
- Version 19.3 is discontinued, and the repositories no longer receive new software. So, I should have upgraded to the current version of Mint, but apparently I should have anyway done it by reinstalling from scratch (on
apt dist-upgrade
there are no new updates) - It's broken:
- Some things (like broken video drivers, and the desktop environment that only starts in fallback mode) are definitely my fault (I screwed up with the drivers ACCIDIA in recent weeks), but others (Bluetooth no longer working!?) I would say no :/. In any case, when the system is so broken, it's quicker to reinstall everything...
- Maybe yes, I’m an idiot, but not to the point of voluntarily setting up the partitions with a structure that’s alien to me. At the time, very simply, I installed Linux Mint with the default guided settings. Whenever I installed Linux I used manual partitioning, instead of choosing to erase the entire disk and let the installation program decide things, I instead always created normal partitions. So… don’t blame me, [kthx](https://en.m.wiktionary.org/wiki/kthx#:%7E:text=(Internet%20slang)%20Abbreviation %20of%20okay%2C%20thanks.)? ↩