[SOLVED] How to mount old drive with backup

Serhioromano

Member
Jun 12, 2023
30
7
8
Recently I had pve OS drive crash and lost access to PVE. it is still on that drive. But I installed a new drive for OS and installed new PVE. I wanted to update to 8.1 anyway. I installed it. I have also SATA connected SSD where I had all my backups. I do not remember exactly the method I added that drive, perhaps it was ZFS as a single disc. I can see in a disk list (see attachment). But hoe to mount it to PVE so I could access images to restore my LCXs? `zfs list` do not give any result.
 

Attachments

  • 2024-02-06_11-54-02.png
    2024-02-06_11-54-02.png
    25.8 KB · Views: 17
First I run command `lsblk -afp` and find my disc there. That was sda and I noticed it is ext4 format.

Then i run `ls -l /dev/disk/by-uuid/*` and find path of my disk
Then I created a folder `mkdir /mnt/SSD` where I'll mount my drive
Now open `nano /etc/fstab` and I added there a line

/dev/disk/by-uuid/********** /mnt/SSD ext4 defaults 0

then I run `mount -a`
And last `systemctl daemon-reload`

That is, it. Of caurse ***** is an ID of drive you find with `ls` command. It worked for me. Now in Datacenter/Storage I added a directory /mnt/SSD as drive, and I can access all my backups.
 
Last edited:
  • Like
Reactions: zvangi