Linux - NewbieThis 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
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.
ok guys, I've got a second drive for my box and would like to move say, /home, /tmp and maybe /var to it... The catch is, can I do this on a single partition like the rest of the filesystem on my first drive?
Basically, I dont want to carve out individual partitions and to keep the flexibility of having a single partition.
A good article on how to move partitions can be found here but if you are planning on setting up new partitions and you want flexibility, IMO you wouldn't want to try put multiple directories in the same parititon. Work out the paritioning scheme you want first, for example (strictly for illustration purposes)
Under normal circumstances no you can't do that, each mount point needs one partition.
But you don't really need to play with partitions, you can for example make directories "home" "tmp" "var" in the new drive, mount it somewhere else then make symlinks. Or if you don't like symlinks you can use "mount --bind".
LVM is something else you may want to look into, it allows you to say combine your first and second harddisk into one large disk.
Yeah, I figured that I could make some links from the first hardrive to the second with the same name...
This was just an exercise to see if it could be done without doing back flips.. not really an exercise of best practice. The whole point is to not have to allocate space for say /tmp that's hardly used potentially shorting me space in /home while I store a video temporarily. ( just as an example ) It would be more flexible to not have to create 'compartments'.
I agree having multiple partitions is safer but wasteful. I'm not running anything mission critical!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.