Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On my slackwave server, one of the partition have reached the space limit, i have bought a new hard disk, and i am going to slot in the new harddisk and partition it, i was thinking is there any way to keep my old partition file to store on the new partition without removing my old partition.
Like example:- old partition -> /local/notedata, new partition -> /local/New_notedata, make a link in between the notedata folder and New_notedata folder, instead of redirecting application to store the database in the New_notedata, remain the database path to continue store on old partition notedata and the actual data will store in the New_database partition.
pls advise me what is the best ways to help me to solve this problem.
if you basically mean you want to somehow implicitly create all new fiels on one partition, but read data from another without modifying anything, then you can't achieve that. you can always crete symlinks between certain old files that the system will need, to the new location using "ln" but that's not going to be a scalable solution... depends what kind fo data this actually is.
Yeah, i have read alot of info about the "ln", even now i am thinking can you link up two different folder in differ partition together, like old partition /local/notedata and new partiton will be mount on /local/New_notedata. with these 2 partition with folder can i used "ln" to link up together?? i am not sure, i didnt use "ln" b4 and i knew that is mainly for shotcut purposes.
pls advise me, maybe you can share with your experience, what will you do if this happen to you.
you can't "join things together". there is a way to actaully take two file systems and merge them into one, either via raid or LVM2, but this is not fun nor easy to do... all ln will be able to do is to say that if something wants to access a certain file, e.g. /local/_new_notedata/an_old_file, then you can redirect it to actually open /local/nodedata/an_old_file but this is either per file or per directory.
Thanks for you advised, i have done with using "ln" for creating a folder shotcut. This is the easiest way to do it, but i understand there is not scalable solution, we will try to figure it out again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.