How to recover a /home partition marked as unallocated

How to recover a /home partition marked as unallocated

Postby Swarfendor437 » Tue Nov 06, 2018 11:57 pm

OK, new motherboard, old drive, /home (of Zorin Lite 12.4) marked / identified as 'unallocated' space in GParted! Scratched head and remembered reading somewhere that Gparted comes with Test Disk (this might be the live version, not sure) so I began looking at the options. Before going any further you may well need a live version of GParted if you don't have another drive with another GNU/Linux installed on it. The scenario I am sharing is a drive with Feren OS which has GParted installed, but I discovered when first attempting to check for filesystems on the drive affected there was a package missing, 'gpart' - you may need to install this. I did it through the terminal:

Code: Select all
sudo apt-get install gpart

Now read on:

Zorin home unallocated.jpg

Here you can see the drive that contains:

sda1 - '/' root partition
sda2 - 'unallocated' (actually '/home' - so potentially a partition table error/something else/failing drive.)
sda 3 - ntfs data share partition - I also backed this up - just in case - using the data recovery through GParted.
Next we go to the 'Device' heading in the menu bar of GParted and select 'Attempt Data Rescue ...' shown below.

Data Rescue.jpg

You will then receive this notification:

Search for filesystems.jpg

You are advised it may take some time but for me was very quick because of the new rig (Ryzen 7 with 16 Gb RAM).

File Systems Found.jpg

In this scenario, you cannot view the 'root' filesystem (#1) as it is protected file system being 'root' and we need to recover the '/home' partition, which is #2 ...

home folder to recover.jpg

I then simply dragged the 'swarfendor437' folder onto my external drive so I am now safe in the knowledge I can reinstall Zorin (hopefully!) and to play extra safe, filesystem #3 was the NTFS system partition for Data Sharing I created a tutorial video for before installing any GNU/Linux so you can access data both from GNU/Linux and your Windows machines (or smartphone using Obmin installed in Zorin).

[Footnote: having looked at the images supplied I spotted an instant error - my NTFS data share partition is marked as Bootable - changed the Zorin '/' partition to be marked as bootable and on booting get the Windows 'Missing Operating System' - this is what comes when you don't follow your own advice (I could cry like Alice in Wonderland - but won't! :lol: ) of disconnecting drives you are not working on!]

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Posts: 10101
Joined: Wed Sep 18, 2013 5:51 pm

Re: How to recover a /home partition marked as unallocated

Postby pcfan5 » Wed Nov 07, 2018 11:51 pm

good to know! thanks!
User avatar
Posts: 328
Joined: Fri Mar 09, 2018 1:03 am

Re: How to recover a /home partition marked as unallocated

Postby terry » Fri Dec 07, 2018 7:58 pm

Many thanks!
User avatar
Posts: 8
Joined: Sat Nov 17, 2018 12:07 pm

Return to How-tos and Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests