LinuxQuestions.org
Review your favorite Linux distribution.
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 04-16-2023, 03:37 PM   #1
ArticCat
LQ Newbie
 
Registered: Apr 2023
Posts: 2

Rep: Reputation: 0
Encrypted Drive Inaccessible on Fresh Install


Hello all,

I was previously running proxmox with a variety of linux distros, but ultimately preferred using docker containers for my purposes. This setup consisted of a 250 gb ssd and 8 tb HDD, with all storage on HDD and all OS materials on SSD. Today, I wiped my proxmox system and put a fresh install of Debian Bullseye on a machine with the SSD being the freshly formatted drive. However, since that time, I have not been able to access files in my HDD. It does appear the files are still on there, (shows about 1.5 TB is missing) but they are nowhere to be found in the explorer.

Of note, I had this HDD encrypted--whole drive--(I still remember the password) but have not been able to access a window where I can enter the encryption password as before. However, it does appear that I can mount the drive. I have spent all day troubleshooting this but have ultimately not made any progress whatsoever.,

somethings that Maybe?? would be helpful.

lsblk:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 231.9G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 976M 0 part [SWAP]
sdb 8:16 0 7.3T 0 disk
└─sdb1 8:17 0 7.3T 0 part /media/8TB

root@Unknown:~# file -s /dev/sdb1
/dev/sdb1: Linux rev 1.0 ext4 filesystem data, UUID=d0caa860-ca46-46c3-8b54-206aeeafb836, volume name "8TB" (needs journal recovery) (extents) (64bit) (large files) (huge files)

root@Unknown:~# sudo fsck -f /dev/sdb1
fsck from util-linux 2.36.1
e2fsck 1.46.2 (28-Feb-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
8TB: 28/244191232 files (7.1% non-contiguous), 327014974/1953506304 blocks
root@Unknown:~#

I honestly tried a bunch of other things from my online searches but nothing seemed to have much effect.

Appreciate everyone's time
 
Old 04-16-2023, 05:31 PM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I haven't played with encryption much but searching for something like how to access encrypted storage in Linux is quite the rabbit hole... good luck.

It may help others who know more if you can remember how you set up the encryption, did the distro\s* do it for you?
 
Old 04-16-2023, 06:02 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
If you can run fsck on /dev/sdb1 it implies (to me) either:
- you have opened the encrypted container
- you have reformatted it.

The former would require you to enter the password, the later would have likely destroyed the header and would make the encrypted data unreachable even if it hadn't been actually over-written in the re-format process.
There is one on LQ who might bw able to advise on rebuilding the header, but without a backup I suspect your data are lost.
 
1 members found this post helpful.
Old 04-16-2023, 06:09 PM   #4
ArticCat
LQ Newbie
 
Registered: Apr 2023
Posts: 2

Original Poster
Rep: Reputation: 0
That is what I was beginning to fear after about 4 hours of tinkering. Oh well, I think it was better to learn this lesson now rather than later. I didn't have anything that can't be recovered on that drive yet. I just thought the idea encryption sounded neat, I think i'll avoid it in the future unless it's actually useful. Lesson learned. Thanks y'all
 
Old 04-16-2023, 07:31 PM   #5
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I know there are different kinds of encrypting your data, some like hardware encryption won't slow you as here: https://www.linuxquestions.org/quest...nt-4175724112/
aside from maybe putting in the password but would think once you do your data is available? If no one has access to your keyboard* and your password* maybe a VPN? Tho I'm sure someone who really "needs" it uses both*.
https://www.crucial.com/articles/abo...-data-security

Last edited by jamison20000e; 04-16-2023 at 07:35 PM.
 
  


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
Contents of encrypted USB drive inaccessible after computer freeze 6y1a5 Linux - Newbie 2 10-29-2016 05:35 PM
[SOLVED] External Hard Drive Inaccessible After Period Of Time Gallifrey Linux - Hardware 5 03-03-2010 01:03 PM
Hard Drive Inaccessible DJOtaku Linux - Hardware 7 11-25-2009 12:34 PM
Inaccessible drive in Etch eray Debian 9 10-17-2007 01:42 PM
Samba Network Drive Inaccessible at Times DAlexNagy Linux - Networking 6 08-13-2005 01:04 PM

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

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