LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2020, 01:03 PM   #1
deepinTroubl
LQ Newbie
 
Registered: Sep 2020
Location: Germany
Distribution: Arch, Mint, POP! OS, Deepin
Posts: 10

Rep: Reputation: Disabled
Did I just wipe my data when switching distros? (Deepin install from .ISO)


Hello,

I may have screwed myself rather badly today. Namely by unintentionally overwriting all my previous data on my SSD:

Motivation for installing Deepin on my SSD
I've been using POP! OS since April on my current computer, and felt like trying another distribution when reading about the new Deepin 20.

Since many Linux users are known to do "distro hopping" because switching appears to be quite easy on Linux, I wanted to do just that.

So I looked up an article how to install another Distro. With the goal of being able to have it as boot option while still being able to access my user data.

Steps Taken to install the ISO
I quickly went through the first three steps of this article from makeuseof.

Quote:
If you already have a Linux installation in place and have everything (including your Home folder) on the same partition, don't worry. It only takes a few steps to achieve the setup you need. The steps are as follows:
  1. Download the Live environment ISO of your favorite Linux distribution, and burn it to a CD/DVD or write it to a USB drive.
  2. Boot into your newly-created media. Use a partitioning tool such as GParted to resize your ext4 partition to the size you want it to be.
  3. Use the same tool to create a new ext4 partition in the empty space created by resizing the first partition. Make note of what partition it is. It should look like /dev/sdXY, where X is a letter designating the drive and Y is a number designating the partition. An example is /dev/sda2.

So I downloaded the ISO, verified the checksum, and created a boot stick using BalenaEtcher on POP! OS.

Then I restarted my computer and selected the newly created boot stick to launch. It asked me to select a System Disk to create partitions. It showed that my SSD had around 84/488GiB used, and it previewed seven partitions that would be created, the ext4 partitions being "boot", "/", "/rootb" and "/data", which seemed about right. (See this photo for reference.)

Then it started installing and eventually asked for setting up a username and password.
After that, I was welcomed to the Deepin GUI.

Trouble accessing old OS and user data
However, upon restarting the system, I realized that my POP! OS partition could not be selected when booting anymore. So I booted into the new Deepin, and checked GParted.

There were a suspliciously low amount of GiB used across all partitions. So it appears that at the very least, POP OS! and the installed programs were wiped. I saw that /rootb was not mounted, and with about 120MB probably could at least still contain my user data, since I mostly had documents in my usr folder. (Here's a screenshot of the GUI.)

Here are the partitions in the terminal:
Code:
deepusr@deepusr-PC:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0   1.8T  0 disk 
nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0   300M  0 part /boot/efi
├─nvme0n1p2 259:2    0   1.5G  0 part /boot
├─nvme0n1p3 259:3    0    15G  0 part /
├─nvme0n1p4 259:4    0    15G  0 part 
├─nvme0n1p5 259:5    0   400G  0 part /data
├─nvme0n1p6 259:6    0    18G  0 part /recovery
└─nvme0n1p7 259:7    0    16G  0 part [SWAP]

So, how much did I screw up?
Can I still boot into /rootb and expect to find my old user data? Or can I simply mount it to access those files? Or did I just inadvertently delete everything I had?

Last edited by deepinTroubl; 09-14-2020 at 05:06 AM. Reason: Replaced image links, since original ones were not available anymore.
 
Old 09-13-2020, 05:32 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,141

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
I don't know Deepin, but given the target audience I'm sure you can simply double-click any non-mounted partition in the file manager to mount them. Do so and have a look around. Then post this for us.
Code:
df -hT
 
1 members found this post helpful.
Old 09-13-2020, 09:21 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
Based on your description of what you did and your partition layout, I believe you over wrote you previous installation. It is always best to check the documentation for the distro your installing as not all installers work the same way.
https://wiki.deepin.org/wiki/About_the_Installer
 
1 members found this post helpful.
Old 09-14-2020, 04:34 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,507

Rep: Reputation: Disabled
Quote:
Originally Posted by deepinTroubl View Post
Here are the partitions in the terminal:
Code:
deepusr@deepusr-PC:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0   1.8T  0 disk 
nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0   300M  0 part /boot/efi
├─nvme0n1p2 259:2    0   1.5G  0 part /boot
├─nvme0n1p3 259:3    0    15G  0 part /
├─nvme0n1p4 259:4    0    15G  0 part 
├─nvme0n1p5 259:5    0   400G  0 part /data
├─nvme0n1p6 259:6    0    18G  0 part /recovery
└─nvme0n1p7 259:7    0    16G  0 part [SWAP]

So, how much did I screw up?
Can I still boot into /rootb and expect to find my old user data? Or can I simply mount it to access those files? Or did I just inadvertently delete everything I had?
If your data is on the sda 1.8T disk, just mount it - if your data is in nvme0n1p4 15G, you may be able to just mount it too, as it looks like it hasn't been added to your /etc/fstab yet.
 
1 members found this post helpful.
Old 09-14-2020, 07:45 AM   #5
deepinTroubl
LQ Newbie
 
Registered: Sep 2020
Location: Germany
Distribution: Arch, Mint, POP! OS, Deepin
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
I don't know Deepin, but given the target audience I'm sure you can simply double-click any non-mounted partition in the file manager to mount them. Do so and have a look around. Then post this for us.
Code:
df -hT
Every partition but Rootb was mounted (compare screenshot). The GParted GUI greyed out the "mount" option, however. Does this possibly have to do with the fact that this partition represents my previous user account that has its own password and username?

This is the output:
Code:
deepusr@deepusr-PC:~$ df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs          tmpfs     1.6G  3.1M  1.6G   1% /run
/dev/nvme0n1p3 ext4       15G  6.0G  8.0G  43% /
tmpfs          tmpfs     7.8G   61M  7.8G   1% /dev/shm
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/nvme0n1p2 ext4      1.5G  106M  1.3G   8% /boot
/dev/nvme0n1p6 ext4       18G  6.7G   11G  40% /recovery
/dev/nvme0n1p5 ext4      393G  1.8G  371G   1% /data
/dev/nvme0n1p1 vfat      300M  6.6M  293M   3% /boot/efi
tmpfs          tmpfs     1.6G   28K  1.6G   1% /run/user/1000
Quote:
Originally Posted by colorpurple21859 View Post
Based on your description of what you did and your partition layout, I believe you over wrote you previous installation. It is always best to check the documentation for the distro your installing as not all installers work the same way.
https://wiki.deepin.org/wiki/About_the_Installer
Heh, I actually quickly went through those instructions you linked before booting from USB.
It never really warned about wiping my previous data, it just stated to back up my data before proceeding. Which sounded like the usual words of caution due to the small but possible risk of (unintended) data loss or corruption when creating partitions. In fact, I remember about reading that "edit the partition" step and thought I'd be asked about it later, which was why I clicked next. My mistake was presumably leaving the option "Full Disk" as opposed to choosing "Advanced"


Quote:
Originally Posted by fatmac View Post
If your data is on the sda 1.8T disk, just mount it - if your data is in nvme0n1p4 15G, you may be able to just mount it too, as it looks like it hasn't been added to your /etc/fstab yet.
That big chunk actually was mounted (compare screenshot above), nvme0n1p5. But there doesn't appear to be any of my old files in there, just some default Deepin stuff. PDF files for instance should also be displayed in the search preview if they were on a mounted partition, shouldn't they?

fstab keeps track of permanent mounts, correct? You are correct, nvme0n1p4 (Rootb) is the one partition that hasn't been mounted. But as I mentioned when replying to syg00, mounting didn't work - at least by using the GUI.


That said, some former system configuration files still appear to be in use: I had some AMD error messages of my GPU appear upon system restart or shutdown. I still get some now.
 
Old 09-14-2020, 07:50 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
post the ouput of
Code:
sudo parted -l
 
1 members found this post helpful.
Old 09-14-2020, 08:09 AM   #7
deepinTroubl
LQ Newbie
 
Registered: Sep 2020
Location: Germany
Distribution: Arch, Mint, POP! OS, Deepin
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
post the ouput of
Code:
sudo parted -l
Code:
Error: /dev/sda: unrecognised disk label
Model: ATA ST2000DM006-2DM1 (scsi)                                        
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags: 

Model: Samsung SSD 970 EVO Plus 500GB (nvme)
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  316MB   315MB   fat32                 boot, esp
 2      316MB   1926MB  1611MB  ext4
 3      1926MB  18.0GB  16.1GB  ext4
 4      18.0GB  34.1GB  16.1GB  ext4
 5      34.1GB  464GB   429GB   ext4
 6      464GB   483GB   19.3GB  ext4                  hidden
 7      483GB   500GB   17.2GB  linux-swap(v1)
Those 19GiB of hidden data corresponds with the size of nvme0n1p6 mounted on /recovery.
Is that merely the recovery for Deepin, or my previous stuff?
 
Old 09-14-2020, 09:17 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592Reputation: 1592
Quote:
Is that merely the recovery for Deepin, or my previous stuff?
recovery for deepin would be my guess, ext4 is a linux file system. It looks like you have a second drive /dev/sda that isn't being used.

Last edited by colorpurple21859; 09-14-2020 at 09:22 AM.
 
1 members found this post helpful.
Old 09-14-2020, 09:51 AM   #9
deepinTroubl
LQ Newbie
 
Registered: Sep 2020
Location: Germany
Distribution: Arch, Mint, POP! OS, Deepin
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
recovery for deepin would be my guess, ext4 is a linux file system. It looks like you have a second drive /dev/sda that isn't being used.
I see.
Yup, that's my HDD that I intended for storing large media files. I might as well could have used that to create a complete backup copy before proceeding.

Last edited by deepinTroubl; 09-14-2020 at 09:52 AM.
 
Old 09-14-2020, 09:53 AM   #10
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
You did indeed overwrite all your old data by using the whole drive from one of your photos you posted :-(
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2020-09-14_15-47-45.v01.png
Views:	20
Size:	221.7 KB
ID:	34076  
 
1 members found this post helpful.
Old 09-14-2020, 11:25 AM   #11
deepinTroubl
LQ Newbie
 
Registered: Sep 2020
Location: Germany
Distribution: Arch, Mint, POP! OS, Deepin
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GPGAgent View Post
You did indeed overwrite all your old data by using the whole drive from one of your photos you posted :-(
Alright. Damn. I guess I should cut my losses then.

Professional data recovery (tools) probably won't be worth the cost for the files I lost here, right?

I mean, I did back up the most important stuff at least, but I still lost some personal work.
(Doubly stupid since those were mostly small textfiles like LaTeX docs I could have just moved to my GDrive... which I even had readily mounted as a virtual drive )

Well, that's what I deserve for relying on proprtionate warning messages when fiddling around with data, and not investing the time for a proper backup (Right, syg00? )

If nothing else, I guess I can
  • send the Deepin team feedback on their installation process,
  • encourage them to improve their usability, and
  • and prevent future dum-dums like me from nuking their files
 
Old 09-14-2020, 12:51 PM   #12
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by deepinTroubl View Post
Alright. Damn. I guess I should cut my losses then.

Professional data recovery (tools) probably won't be worth the cost for the files I lost here, right?

I mean, I did back up the most important stuff at least, but I still lost some personal work.
(Doubly stupid since those were mostly small textfiles like LaTeX docs I could have just moved to my GDrive... which I even had readily mounted as a virtual drive )

Well, that's what I deserve for relying on proprtionate warning messages when fiddling around with data, and not investing the time for a proper backup (Right, syg00? )

If nothing else, I guess I can
  • send the Deepin team feedback on their installation process,
  • encourage them to improve their usability, and
  • and prevent future dum-dums like me from nuking their files
To be fair Deepin did warn you to backup everything you wanted to keep, and that the data partition had 0 bytes on it, (Check the image you posted and I posted as well) so I'm guessing you'll be praising the Deepin team for warning you and for telling you that your data partition had 0 bytes on it.


How else do you think they should have warned you, may be a few more "are you sure you want to continue?", " Are you really sure?", "Absolutely certain?" " Phone a friend?" ....... or maybe something else?


One good thing I guess - you've learnt now and won't do it again!



Don't worry we've all done something like this in the past.


Good luck
 
1 members found this post helpful.
Old 09-14-2020, 02:41 PM   #13
deepinTroubl
LQ Newbie
 
Registered: Sep 2020
Location: Germany
Distribution: Arch, Mint, POP! OS, Deepin
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GPGAgent View Post
To be fair Deepin did warn you to backup everything you wanted to keep, and that the data partition had 0 bytes on it, (Check the image you posted and I posted as well) so I'm guessing you'll be praising the Deepin team for warning you and for telling you that your data partition had 0 bytes on it.
Oh, I won't argue that it's ultimately me that is at fault.

But I did actually see and read that error message. Nonetheless, the warning could easily be improved on:

Quote:
Make sure you have backed up important data, then select the disk to install
It's not the kind of error message that conveys the severity of the next click. (Which is what I mean by proportionate warning message.)
Of course, it seems obvious for people familiar with the process. But there are pitfalls for the other user group (of which I happened to fall into).

Let's put on our user experience hat for a minute to consider how this could go wrong:
  • Ordinary placement: It's placed below the header like a regular step description.
  • No signifiers for importance: No accentuation of any kind. (Bold font, colors, size, exclamation points, highlight, etc.)
  • Potentially misleading phrasing: "Important data" only covers a subset that you'd really want to keep no matter what (for example if the next step touched that data, but didn't actually delete it). "Data you want to keep" would have been a clear alternative phrasing here that conveys the destructive nature of the next step.
  • Casual phrasing: The warning covers half the sentence, the other half suggests to go to the next step after that, further diminishing the severity.
  • No signifiers for caution: The selected disk shows the used disk space in blue with a blue checkmark right of it, which can be misinterpreted as indicator that there's still enough space left for the new OS. Since the process overrides the existing content, a warning symbol would have been more appropriate.
  • Misleading partition preview: The previewed partitions on the bottom covering "/", "rootb" and "data" further add to the impression that the old data will be part of the new partition table

Obviously nobody in the Deepin team intended for this confusion - I'm glad for all the engagement in the community!
Yet, as it stands, it is an unfortunately misleading design from a UX perspective.

All this adds up. As a result, I merely took at as a word of caution to save the most important stuff in case of unlikely data corruption, expecting an integration of new and old partitions - not that it'd wipe all data for certain

So I would in fact suggest one warning message to pop up, around the lines of:

Quote:
The chosen disk already contains <n>G of data, which will be permanently lost!
Proceed with installation?

If you intend to set up a dual boot system instead, press ABORT and enter the advanced settings.
Given that many programs will ask you to save your last 2 minutes of unsaved data when you attempt to close them, this seems like an appropriate step of caution by contrast.

I think they'll appreciate the feedback ticket as constructive feedback, especially considering they're otherwise very beginner-friendly and design-conscious

Quote:
Originally Posted by GPGAgent View Post
One good thing I guess - you've learnt now and won't do it again!

Don't worry we've all done something like this in the past.

Good luck
Definitely, haha!
Thank you.

Last edited by deepinTroubl; 09-15-2020 at 03:51 AM. Reason: Typo.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Latest Deepin 2014 RC update disabled Deepin SW Center Nieuwkoop-75 Linux Deepin 13 01-04-2015 10:51 PM
Deepin 2014 Alpha – Be ready to embrace the New Deepin cxbii Linux Deepin 6 11-17-2014 08:06 PM
What's going on, I can no longer access the Deepin forum website? Is Deepin defunct? ellisf Linux Deepin 2 08-26-2014 04:21 AM
LXer: Linux Deepin needs your help with the Deepin Localization Project LXer Syndicated Linux News 0 12-02-2013 10:41 PM
LXer: Use Linux Deepin Screenshot Tool "Deepin Scrot" In Other Linux Distributions LXer Syndicated Linux News 0 03-13-2012 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration