Access data on a vdisk that won't boot

Currently reading
Access data on a vdisk that won't boot

1
0
NAS
DS918+
Operating system
  1. Linux
Mobile operating system
  1. iOS
TL;DR: "How do I mount/open a vdisk for a VM that doesn't boot?" I want to access files directly from inside the vdisk without it running the VM that was on it. I don't care if I have to access it from Synology NAS CLI or if I have to copy the vdisk image to my local machine to do so.

More details:

I was working on an Ubuntu VM I had running on a DS918+

In the course of things I ended up destroying the /boot partition and unsurprisingly when I rebooted the VM it doesn't boot (duh) and instead goes to grub rescue> . I don't have a snapshot/backup of the VM.

This is the original structure of the VM was:

NAME FSTYPE SIZE MOUNTPOINT LABEL
loop0 squashfs 55.4M /snap/core18/1944
loop1 squashfs 55.5M /snap/core18/1988
loop2 squashfs 69.9M /snap/lxd/19188
loop3 squashfs 70.4M /snap/lxd/19647
loop4 squashfs 32.3M /snap/snapd/11402
loop5 squashfs 32.3M /snap/snapd/11107
sda 600G
├─sda1 1M
├─sda2 ext4 1G /boot <<<--- got damaged **
└─sda3 LVM2_member 599G
└─ubuntu--vg-ubuntu--lv ext4 598G /
sdb 100G
└─sdb1 ext4 93.1G /media/hhd100GB
sr0 iso9660 1.1G Ubuntu-Server 20.04.2 LTS amd64
sr1 1024M

(** due to some bad fat-fingered 'mount' commands that cause another volume to mount to /dev/sda2 instead of where it should have. )

In any case, what I'd like to do is be able to be able to open the vdisk I found in

/volume2/@iSCSI/LUN/VDISK_BLUN

On the 918 NAS. It is identified as: vdisk.9cebd384-cd62-4b68-a672-20dae3feedc9.7dedb7ff-fd41-4706-9d7d-63af11fa6636.2.0_00000

From that vdisk I want to access some of the directories on /sda/sda3/ LVM2_member/ubuntu--vg-ubuntu--lv in order to retrieve some materials before I 'start over' and rebuild from scratch. (I ~~think~~ I have everything backed up that was important to my local laptop, but I want to be able to double check since the VM held the most recent tweaks to some code) Ideally I would like to be able to navigate to something like "/mnt/vdisk/sda3/var/www/vhosts/my_site.com" and recover files from the "my_site.com" directory.

I've never done this before, but some part of me thinks there must be a way to 'mount' the various partitions contained in the vdisk without actually booting the OS on the vdisk itself.

Of course, if there's something even easier than what I've explained, I'm all ears on that too. (I'm kind of wondering if I can boot from that Ubuntu ISO listed at sr0 and accomplish sort of the same thing)

Thank you in advance for any help you can provide.
 
Hi,

Were you able to mount the corrupted VDISK? I have the same question and the same problem.
With other VDISK I was able to access them with the application Virtual Machine Manager for Linux and it is the same application like the one used in Synology. But mine won't boot.

Cheers,
 
Upvote 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Thanks for the reply. My NAS was actually still running DSM 6.1. I'm going to try and load the drive into...
Replies
2
Views
2,321
Oki. Then rule it out. In my experience double spend ips result in random strange behaviors and are...
Replies
5
Views
1,752
In VMware Workstation I can specify a folder on the Host system that a guest can access. How can I do...
Replies
0
Views
2,648
I guess I could set the VM's MAC address to the same as the NAS to get, but that would probably mess...
Replies
2
Views
4,591
I am also looking for this option, but can not find any info!
Replies
1
Views
5,425
You could VPN into your NAS LAN and from there access any machine, including VMs on your NAS via SSH
Replies
12
Views
11,986

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top