LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 01-06-2011, 02:12 AM   #1
seldi
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
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
 
Old 01-06-2011, 02:21 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Hi, welcome to LQ!

Can you please shed some light and tell us what the respective
mount-points for those partitions are?



Cheers,
Tink
 
Old 01-06-2011, 02:41 AM   #3
seldi
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks Tink for your quick replay.
How to find mount-points for respective partitions?
 
Old 01-06-2011, 03:25 AM   #4
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,185

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Throw df or mount at the command line
 
1 members found this post helpful.
Old 01-06-2011, 04:14 AM   #5
seldi
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
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

Last edited by seldi; 01-06-2011 at 04:16 AM.
 
Old 01-06-2011, 10:02 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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
 
Old 01-07-2011, 03:53 AM   #7
seldi
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
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?
 
Old 01-07-2011, 04:35 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.

Last edited by jschiwal; 01-07-2011 at 04:39 AM.
 
1 members found this post helpful.
Old 01-07-2011, 04:57 AM   #9
seldi
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 01-07-2011, 02:35 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Quote:
Originally Posted by seldi View Post
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.
I'm afraid "merging" partitions is not possible. You'd have to create
a backup, destroy the existing partitions and create on new one (not
that that's a good idea, generally speaking).


Cheers,
Tink
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Path to a share folder, how??? lefaman72 Suse/Novell 4 02-26-2010 04:32 AM
change windows path to unix path gibsosmart Linux - Newbie 7 09-15-2009 03:35 AM
How do you address a folder in another path Redbug Linux - Newbie 1 08-27-2008 11:06 AM
Unlock folder (drive) & change permissions VIR3NT Suse/Novell 5 05-27-2006 06:37 PM
script to change unix path to windows path in all files csross Programming 8 04-29-2006 01:05 PM


All times are GMT -5. The time now is 01:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration