Change path of the folder from one drive to another
I have configured 3 drives on my machine.
sda1 less than 10 GB sda2 less than 10 GB sda3 450 GB I have installed a software in /usr/share/MyApplication and as I see /usr/share stays at sda2 and only 2 Gb is free but my application needs more than 3 GB free to run because it creates a temporary file greater than 3 GB during execution. Knows anybody any way how to make MyApplication stays in sda3 drive. I am newbiew to linux. Thanks in advance and best Regards, seldi |
Hi, welcome to LQ!
Can you please shed some light and tell us what the respective mount-points for those partitions are? Cheers, Tink |
Thanks Tink for your quick replay.
How to find mount-points for respective partitions? |
Throw df or mount at the command line :)
|
This was what produced the "df" command.
Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 ------ 20641788 --- 13266732 --- 6326416 -- 68% -- / udev ------ 2167184 ---- 180 --- 2167004 -- 1% -- /dev /dev/sda3 --- 452059908 --- 15076752 -- 414019848 --- 4% -- /home |
And now the output of "mount", and "cat /etc/fstab", please. What distro are
you running, btw? Did you use LVM for the disks? Cheers, Tink |
execution of Mount command:
/dev/sda2 on / type ext4 (rw,acl,user_xattr) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) debugfs on /sys/kernel/debug type debugfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/sda3 on /home type ext4 (rw,acl,user_xattr) fusectl on /sys/fs/fuse/connections type fusectl (rw) securityfs on /sys/kernel/security type securityfs (rw) none on /proc/fs/vmblock/mountPoint type vmblock (rw) execution of "cat /etc/fstab" /dev/sda1 ---- swap ---- swap ---- defaults ---- 0 0 /dev/sda2 ---- / ---- ext4 ---- acl,user_xattr ---- 1 1 /dev/sda3 ---- /home ---- ext4 ---- acl,user_xattr ---- 1 2 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 devpts ---- /dev/pts ---- devpts ---- mode=0620,gid=5 ---- 0 0 --Did you use LVM for the disks? I dont know? :( |
Before you go further, an application should not be writing to /usr/share. Check where it creates the temporary 3 GB file. If it is in the users $HOME directory, you have room. If it is in /var/tmp, /var/run/ or /tmp, then you have the same problem.
--- From what you posted, you didn't use LVM. Also, you have 1 hard drive with 3 partitions. ---- Does this program write its data inside a directory it created? For example /var/run/aprogram. If so, you could create a link from /var/run/aprogram to a hidden directory located under /home provided it has access. Another thing to look for, is if a configuration setting or command line argument will locate the file elsewhere. You could easily repartition /dev/sda1 into two partitions. 10GB for a swap partition seems excessive. If /var is used for the data file, you could use 3GB for swap and create a 7 GB partition for /var. ---- Some programs will create working files under /tmp or /var/tmp that are deleted. This prevents name collision and if the program crashes, the file is deleted. You can locate such files with the command: lsof +L1. Here is an example: chrome 3649 jschiwal 82u REG 8,6 512 0 1443360 /tmp/etilqs_7baebXT6DrSDQwQ (deleted) --- If none of these ideas work out, then it is a matter of resizing and relocating /dev/sda2 and /dev/sda3. |
thanks a lot for your quick responses.
Can I remove 2 partitions and make only one available and mount it to "/" without losing data. If is it possible, please tell me which commands to execute in my case. Thanks again for your willing to help. |
Quote:
a backup, destroy the existing partitions and create on new one (not that that's a good idea, generally speaking). Cheers, Tink |
All times are GMT -5. The time now is 12:04 PM. |