LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-18-2021, 02:57 PM   #1
LUKShelp
LQ Newbie
 
Registered: Sep 2018
Posts: 19

Rep: Reputation: Disabled
Accidently imaged only part of LUKS drive while unencrypted


I accidentally imaged the drive while it was unlocked and I only imaged the luks partition (Ie. only the luks part of the drive and not the unlocked part of the drive), now when restored I cannot mount the drive - "wrong fs type, bad option, bad superblock". Is this salvageable? I now realize I should've locked the drive first and imaged the whole drive. drive was imaged using disks utility.

I've tried imaging to a separate drive, losetup, mount, mounting the image,etc., everything comes up with errors. When I unlock the drive I can open the drive, (input password) but any attempts to mount it will result in errors. I've even tried to DD the unlocked partition to another drive, no luck.

Is this in any way salvageable?

Thanks.

I've now tried using ddrescue to recover the drive, but no luck. Any suggestions would be greatly appreciated.
 
Old 03-19-2021, 01:28 AM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
My Recommendations:
Change your username to ---> HELPluks

Have you tried booting the Live version of your Distro (I'll assume Ubuntu) in rescue mode see if there are auto boot repair options? check file system type stuff?
Also, it is possible should you restore the image whilst the settings are in the same state as when the image was taken (while it was unlocked), set the stage exactly as it was when the image was taken, might work.

Last edited by Brains; 03-19-2021 at 01:29 AM.
 
  


Reply

Tags
imaging, luks, recovery


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Resizing Imaged Hard drive yelirt5 Linux - Hardware 18 12-22-2019 11:42 PM
Forgot how I imaged my hard drive, dd, ddrescue, ntfsclone??? antares4141 Linux - Software 3 01-24-2013 09:56 PM
Newly imaged PC won't boot ketchukf Linux - Newbie 2 09-05-2009 09:12 AM
Mount Imaged NTFS Drive quentusrex Linux - General 1 05-25-2005 05:05 PM
Linux Redhat Imaged / Cloned randybell Linux - Newbie 1 11-16-2004 07:11 PM

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

All times are GMT -5. The time now is 12:41 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