Choose style:

Author Topic: How To: Use symlinks to a DATA partition  (Read 15564 times)

0 Members and 1 Guest are viewing this topic.

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26296
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: How To: Use symlinks to a DATA partition
« Reply #75 on: September 20, 2018, 10:19:10 pm »
Not sure if I should start another thread but it has to do with symlinks.

I just installed Oracle VM Virtualbox and created a Windows 7 VM with the help of PCNetSpec.

What I didn't realize at the time was that it was installed to my Home partition which is only 18 GB and as I copied some large files to the desktop it gave me an error saying that it was full.

Seeing as how I have my files all saved in a separate DATA partition (776 GB remaining) , can I also do this  (symlink) the Virtualbox VMs folder that contains the Windows 7 OS  .vbox and .vmdk files to the DATA partition as well?

You certainly can :)

Move the Virtualbox VMs folder to your DATA partition .. then create a symlink to it in your home folder

Be sure to do this with Virtualbox NOT RUNNING



If you have any problems creating the symlink, let us know the full path to the Virtualbox VMs folder that's now on your DATA partition (this will depend on where you mounted the DATA partition).

If you're unsure, post the output from
Code: [Select]
mount
« Last Edit: September 20, 2018, 10:22:58 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline ogopogo

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: How To: Use symlinks to a DATA partition
« Reply #76 on: September 20, 2018, 11:49:43 pm »
Quote
You certainly can :)

Move the Virtualbox VMs folder to your DATA partition .. then create a symlink to it in your home folder

Be sure to do this with Virtualbox NOT RUNNING

No problem moving the folder but having trouble with the symlink.

When I go to step #4 of this tutorial  (page #1) under the heading "CREATE SYMLINKS TO YOUR DATA PARTITION" it says:

Code: [Select]
ln -s /mnt/DATA/Documents Documents

Now my folder is called "VirtualBox VMs" so I substituted "Documents" as follows:

Code: [Select]
ln -s /mnt/DATA/VirtualBox VMs VirtualBox VMs

But what I got was:
Code: [Select]
ln: target 'VMs' is not a directory

If I leave out the space and call it:

Code: [Select]
ln -s /mnt/DATA/VirtualBoxVMs VirtualBoxVMs

The symlink file made in my home folder is "broken" as it doesn't exist.

So, seems like I need for you to spell it out for me....the output of mount is:

Code: [Select]
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=3768108k,nr_inodes=942027,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=766572k,mode=755)
/dev/sda3 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=24,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14262)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda4 on /mnt/DATA type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /home type ext4 (rw,relatime,stripe=32750,data=ordered)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=766568k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/fuse on /run/user/1000/doc type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

« Last Edit: September 20, 2018, 11:56:43 pm by ogopogo »

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 1997
  • Karma: 344
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: How To: Use symlinks to a DATA partition
« Reply #77 on: September 21, 2018, 04:22:02 am »
Precede spaces in a path with a backslash

Code: [Select]
ln -s /mnt/DATA/VirtualBox\ VMs VirtualBox\ VMs

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26296
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: How To: Use symlinks to a DATA partition
« Reply #78 on: September 21, 2018, 10:00:12 am »
it's the whitespace in the filename that's giving you problems .. you can escape the whitespace as in murraymints command above.

or

just make sure the paths are surrounded by quotation marks .. as in:
Code: [Select]
ln -s "/mnt/DATA/VirtualBox VMs" "VirtualBox VMs"
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline ogopogo

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: How To: Use symlinks to a DATA partition
« Reply #79 on: September 21, 2018, 12:01:15 pm »
Thanks guys, it worked!

Offline ogopogo

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: How To: Use symlinks to a DATA partition
« Reply #80 on: January 02, 2019, 12:59:00 pm »
Hello!    I've just downloaded the latest version of "Peppermint-9-20181222-amd64" and am ready to do a fresh install. I've been running the previous version of Peppermint 9 now with no problems and have all my files in a DATA partition..... thanks to the wonderful help I received from here.   :)

Before I continue with following the symlinks tutorial, I was just wondering if there is anything updated or special I might need to do before I continue?
Thank you in advance.

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26296
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: How To: Use symlinks to a DATA partition
« Reply #81 on: January 03, 2019, 12:19:07 pm »
Nope, the instructions should still remain the same .. in fact they should always remain the same and are not specific to Peppermint, they should be applicable to all Linux distros :)

Although, there's a new "Respin-2" of Peppermint 9 out dated (20190102), you can read about why here:
https://peppermintos.com/2019/01/peppermint-9-respin-2-released/
If you've already installed (20181222) there is absolutely no need to reinstall .. there are no changes other than some fixes for the installation routine
« Last Edit: January 03, 2019, 12:21:05 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline ogopogo

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9
Re: How To: Use symlinks to a DATA partition
« Reply #82 on: January 03, 2019, 02:12:10 pm »
Thank you for your reply PCNetSpec.
None of the fixes apply to me and I'm limited with my bandwidth so I'll go ahead with the .iso I already have.  8)

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1813
  • Karma: 474
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: How To: Use symlinks to a DATA partition
« Reply #83 on: November 19, 2019, 10:51:46 am »
BUMP -- to get this important tutorial back onto the first page of the User Submitted Tutorials. Unfortunately, too many new users are too impatient to take the time necessary to look much beyond the first page of the tutorials ...  :(

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome