How to mount drive to copy data

bjamm

New Member
Nov 26, 2023
4
0
1
Hey I created a new proxmox with 8.1 and attempting to copy my data over from the old ssd. It doesnt seem to let me mount it if you can help me go in the right direction in order to be able to boot or copy the vm from the old drive.

New drive is sdb
Old Drive is sda

I want the 32gb parition (vm100) thats listed under sda3 and move it to sdab 40gb but im getting the following error. Not sure what to try next.

Code:
root@pve:/# mkdir /mnt/adata
root@pve:/# mount /dev/sda3 /mnt/adata
mount: /mnt/adata: unknown filesystem type 'LVM2_member'.
       dmesg(1) may have more information after failed mount system call.



lsblk
Code:
root@pve:/mnt# lsblk
NAME                                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                                           8:0    0 119.2G  0 disk
├─sda1                                        8:1    0  1007K  0 part
├─sda2                                        8:2    0   512M  0 part
└─sda3                                        8:3    0 118.7G  0 part
  ├─pve--OLD--54568F9D-swap                 253:7    0     8G  0 lvm
  ├─pve--OLD--54568F9D-root                 253:8    0  29.5G  0 lvm
  ├─pve--OLD--54568F9D-data_tmeta           253:9    0     1G  0 lvm
  │ └─pve--OLD--54568F9D-data-tpool         253:11   0  64.5G  0 lvm
  │   ├─pve--OLD--54568F9D-data             253:12   0  64.5G  1 lvm
  │   └─pve--OLD--54568F9D-vm--100--disk--0 253:13   0    32G  0 lvm
  ├─pve--OLD--54568F9D-data_tdata           253:10   0  64.5G  0 lvm
  │ └─pve--OLD--54568F9D-data-tpool         253:11   0  64.5G  0 lvm
  │   ├─pve--OLD--54568F9D-data             253:12   0  64.5G  1 lvm
  │   └─pve--OLD--54568F9D-vm--100--disk--0 253:13   0    32G  0 lvm
  └─pve--OLD--54568F9D-vm--101--disk--0     253:14   0     8G  0 lvm
sdb                                           8:16   0  59.6G  0 disk
├─sdb1                                        8:17   0  1007K  0 part
├─sdb2                                        8:18   0   512M  0 part /boot/efi
└─sdb3                                        8:19   0  59.1G  0 part
  ├─pve-swap                                253:0    0   7.4G  0 lvm  [SWAP]
  ├─pve-root                                253:1    0  24.9G  0 lvm  /
  ├─pve-data_tmeta                          253:2    0     1G  0 lvm
  │ └─pve-data-tpool                        253:4    0  17.4G  0 lvm
  │   ├─pve-data                            253:5    0  17.4G  1 lvm
  │   └─pve-vm--100--disk--0                253:6    0    40G  0 lvm
  └─pve-data_tdata                          253:3    0  17.4G  0 lvm
    └─pve-data-tpool                        253:4    0  17.4G  0 lvm
      ├─pve-data                            253:5    0  17.4G  1 lvm
      └─pve-vm--100--disk--0                253:6    0    40G  0 lvm
 
Last edited:
you need to use a tool like "dd" or "qemu-img" to transfer the block device contents. this can be a bit tricky if you don't know what you are doing.
 
you need to use a tool like "dd" or "qemu-img" to transfer the block device contents. this can be a bit tricky if you don't know what you are doing.
ill look into that

is there a way to command line into the drive? I can't seem to get it to mount but if i can just download my firewall config file from the hd I can just rebuild the vm and restore the config instead.
 
that's probably more involved than just copying it..