I have a Debian 8 notebook which had a hardware failure (power board) which is a time consuming and error-prone repair. So I purchased a 2.5" HD USB enclosure and placed the HD from the notebook in it and connected to my XUbuntu so I can recover some important files. The now USB drive does mount but mounts to what I assume is the boot partition. I need to get access to the data (/) partition which I think is a logical partition on /dev/sdb5 (see below).
Could someone help me with the proper mknod mount commands to mount the / logical volume?
Below is an image from an fdisk -l command (showing the USB drive) and the related device files.
Thanks! John
Best Answer
Script to mount drive -
mount-menu.sh
The
mount-menu.sh
script allows you to select unmounted drives/partitions for mounting. To call the script use:sudo mount-menu.sh
. This screen appears tailored to your unique machine environment:The menu clears and leaves this information in your terminal:
Now you can use:
cd /mnt/mount-menu.FPRAW
to access your external drive's partition.Then you can use
cd home/YOUR_NAME
being mindful not to put a/
in front ofhome
. Should you usecd /home
it would take you to your boot drive and out of the external drive.mount-menu.sh
script contentsTo create the script open the terminal and type:
Then copy the code below and paste it into
gedit
. Save the file and exitgedit
.Now mark the file as executable using:
Here's the script to copy:
umount-menu.sh
to Unmount Drives/PartitionsRepeat the file creation / execute bit marking process for the script
umount-menu.sh
. This script only unmounts drives / partitions that were mounted bymount-menu.sh
. It has the same selection menu and completes with the message:To call the script use:
sudo umount-menu.sh
umount-menu.sh
bash script: