I have the following hard disk partition setup:
- 256 GB SSD
/dev/sda1- FAT 32 -Mounted at /boot/efi
/dev/sda2 – Mounted at Filesystem Root
/dev/sda3 – Mounted at /usr
- 1 TB HDD
/dev/sdb1 – Linux Swap
/dev/sdb2 – Mounted at /var
/dev/sdb3 – Mounted at /home
/dev/sdb4 – EFI System (unmounted)
/dev/sdb5 – Mounted at Filesystem Root of the 2nd distro (unmounted)
The two distros are Lubuntu and Elementary. In the above breakdown, Elementary is the unmounted one. Can someone tell me how to share files between these distros? Currently, I cannot open or execute any installed applications in Elementary that are from Lubuntu. I can't open several folders as well e.g. /usr/local/bin
Best Answer
Doing it manually
Mount the 2nd Distro with these commands
Now you will be able to use Nautilus or any other file manager to navigate to the directory
/mnt/MyOtherDistro
to view / copy / delete files, etc.You can also change to a directory in the 2nd Distro:
When you are done unmount the partition and delete the directory:
Doing it with a bash script
As luck would have it I was just working on two scripts tonight to mount and unmount partitions via a command line scroll box.
Mount a partition
To mount a partition run the bash script
sudo mount-menu.sh
:Highlight an unmounted partition and press Enter. It will be mounted and some basic information about the partition will be displayed:
To create the script, copy the following to a file called
/usr/local/bin/mount-menu.sh
:Unmount a partition
To unmount the partition setup by
mount-menu.sh
run the commandsudo umount-menu.sh
. The same screen shown above appears except the partition is already mounted and you select it to unmount it. First you need to create the script/usr/local/bin/umount-menu.sh
and copy in the lines below:Make them executable
After creating the files, both scripts must be marked executable: