My disk space on the /
partition is very limited. As there are other partitions available I'd like to move /var
to /differentPartition/var
.
The simplest solution coming to mind is just moving the current files and linking to the new directory. However, I'm not really sure if that's a good idea and if it is as simple as that... Am I about to break my system?
P.S: SUSE Linux Enterprise Server 11 SP1 (x86_64); Linux version 2.6.32.43-0.4-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP 2011-07-14 14:47:44 +0200
Edit:
# cat etc/fstab
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
/dev/sda1 / ext3 defaults 1 1
I was confused not to see my other disk here. The OS is running in a virtual box, though, and I figure virtual hard drives are treated differently than "normal" disks?
So to clarify things, I'd like to move /var
to a virtual hard drive...
Edit 2:
# mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
devtmpfs on /dev type devtmpfs (rw,relatime,mode=0755,nr_inodes=0,mode=755,size=27g)
tmpfs on /dev/shm type tmpfs (rw,mode=1777)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/etc/fstab
– Kiwy Feb 28 '14 at 11:41