LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2009, 10:49 AM   #1
Kwahab
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
Question mount /home, /var and /tmp to the same partition


Have 2 physical discs one partition each (sda1 & sdb1).

Want to mount / to sda1, but want /home, /var and /tmp on sdb1 without making separate partitions for each.

I think it can be done with the --bind option.

Can anyone help with the syntax? fstab entry?

Thanks
 
Old 10-12-2009, 10:56 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
man mount
man fstab
 
Old 10-12-2009, 11:02 AM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,520

Rep: Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095
Use a partitioning tool like fdisk to make them
http://linux.about.com/od/commands/l/blcmdl8_fdisk.htm

Use mount to mount them
http://linux.about.com/od/commands/l/blcmdl8_mount.htm

configure your fstab file to have them mount where you want them every time you turn the machine on.
http://linux.about.com/od/linux101/l/blnewbie4_2_6.htm
 
Old 10-12-2009, 11:37 AM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
don't use fdisk ... use qtparted or gparted or parted. fdisk is more difficult to use ...correctly
 
Old 10-12-2009, 11:45 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,808

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by Kwahab View Post
Have 2 physical discs one partition each (sda1 & sdb1).

Want to mount / to sda1, but want /home, /var and /tmp on sdb1 without making separate partitions for each.

I think it can be done with the --bind option.

Can anyone help with the syntax? fstab entry?

Thanks
It is unclear to me why you want to do this...

I would not do it---simply because it would create potential confusion later. Why not make separate partitions?
 
Old 10-12-2009, 07:09 PM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by pixellany View Post
It is unclear to me why you want to do this...

I would not do it---simply because it would create potential confusion later. Why not make separate partitions?
What? Because each additional partition is an additional failure mode, that's why.

Please read this
 
Old 10-13-2009, 02:21 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,808

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by lutusp View Post
What? Because each additional partition is an additional failure mode, that's why.

Please read this
That's an interesting bit of logic....For myself, I do not use multiple partitions. But I also use drives that are much bigger than I need---so I almost never worry about things filling up.
 
Old 10-14-2009, 01:14 AM   #8
Kwahab
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Smile space constraints and flexibility

Quote:
Originally Posted by pixellany View Post
It is unclear to me why you want to do this...

I would not do it---simply because it would create potential confusion later. Why not make separate partitions?
Well, for me space is an issue and by making separate partitions all flexibility is lost. If I dedicate space for /tmp and /var, my /home will be (permanently) smaller. That would keep me awake at nights.
 
  


Reply

Tags
fstab, mount


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
can '/var' and '/home' be on the same different partition from '/'? wabbalee Linux - General 28 05-25-2009 06:57 AM
How to increase tmp partition - mount loop device grim2 Linux - Server 2 03-10-2008 08:27 AM
how to securing /tmp , /var/tmp and /dev/shm hackintosh Linux - Security 7 10-17-2007 11:26 PM
Moving VAR TMP HOME OPT to new partitions JWatson Linux - Newbie 2 01-03-2005 04:54 AM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration