Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-28-2004, 09:17 PM   #1
LQ Newbie
Registered: Aug 2004
Location: Texas, USA
Distribution: FD3
Posts: 7

Rep: Reputation: 0
Question second hard drive setup

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.
Old 08-28-2004, 09:50 PM   #2
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
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)

/dev/hda1 = / (root)
/dev/hda2 = swap
/dev/hda3 = /home

Naturally you could create separate partitions for /usr, /var, and so forth. Good luck with it -- J.W.
Old 08-28-2004, 09:57 PM   #3
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

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

Last edited by Demonbane; 08-28-2004 at 10:13 PM.
Old 08-28-2004, 10:43 PM   #4
LQ Newbie
Registered: Aug 2004
Location: Texas, USA
Distribution: FD3
Posts: 7

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

Thanks for your inputs!


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
External hard drive setup in Linux Steel_J Linux - Hardware 2 10-19-2004 02:51 PM
hard drive setup rfsatxeng Linux - General 2 07-16-2004 03:02 AM
copying current setup to new hard-drive noshellswill Linux - Hardware 3 10-14-2003 09:43 PM
Hard Drive Setup HaTHor Linux - Newbie 2 02-14-2003 04:16 AM
Two Hard drive setup cruse Linux - Newbie 6 01-03-2001 03:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:45 PM.

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