Project

General

Profile

Bug #1537

disk wizard allowing system drive to be changed / formated.

Added by mattman almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
08/27/2014
Due date:
% Done:

0%


Description

after the web page loads I'm given the option to select the main system drive, in doing so I could format the system drive. Is it possible to remove the system drive from the list when first loading the web page.
this maybe be design but I think that this could lead to more problems.

the attached image shows the system drive that was selected and then I could format the boot partition.
also I have inserted a cropped image of the page before as I have two drive the same and this could be the problem.

/dev/sda the system drive.
/dev/sdc new drive not mounted or formatted.

Disk-Wizard (System drive format).jpg View (88.5 KB) mattman, 08/27/2014 03:34 PM

History

#1 Updated by tmkasun almost 5 years ago

Thank for pointing out this issue,yes it is possible for someone to format a system partition unknowingly.
In your case you were able to select the device which has the root file system,Because there is an unmounted partition on it,Currently we list all the partitions on the device which has selected on the first step,regardless of it is already mounted on the HDA or not,that's why you see those system mount point in the list.

I can suggest one solution,

We can skip showing the mounted partitions on the device and show only the unmounted partitions, so that users can't select system mounts to continue with the wizard,
and at the same time we can hide the format_entire disk option when a disk contains the operating system or root partition(/).

#2 Updated by mattman almost 5 years ago

Hi Tmkasun
Yes, the suggest sounds like a good idea not showing any mounted partition also yes I agree in that there should be no format entire disk option when the disk contains the root partition.
Kind Regards
Matt

Also available in: Atom