LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-12-2009, 11:49 AM   #1
Kwahab
LQ Newbie
 
Registered: Jul 2007
Posts: 2
Thanked: 0
Question mount /home, /var and /tmp to the same partition


[Log in to get rid of this advertisement]
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
linuxubuntu Kwahab is offline  
Tag This Post ,
Reply With Quote
Old 10-12-2009, 11:56 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit Source, Kubuntu64, Slamd64. Fedora QA
Posts: 1,684
Thanked: 55
man mount
man fstab
linuxubuntu amani is offline     Reply With Quote
Old 10-12-2009, 12:02 PM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Centos
Posts: 1,060
Thanked: 3
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
windows_xp_2003 teckk is offline     Reply With Quote
Old 10-12-2009, 12:37 PM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit Source, Kubuntu64, Slamd64. Fedora QA
Posts: 1,684
Thanked: 55
don't use fdisk ... use qtparted or gparted or parted. fdisk is more difficult to use ...correctly
linuxubuntu amani is offline     Reply With Quote
Old 10-12-2009, 12:45 PM   #5
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,130
Thanked: 281
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?
linux pixellany is offline     Reply With Quote
Old 10-12-2009, 08:09 PM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835
Thanked: 136
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
linuxfedora lutusp is offline     Reply With Quote
Old 10-13-2009, 03:21 AM   #7
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,130
Thanked: 281
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.
linux pixellany is offline     Reply With Quote
Old 10-14-2009, 02:14 AM   #8
Kwahab
LQ Newbie
 
Registered: Jul 2007
Posts: 2
Thanked: 0

Original Poster
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.
linuxubuntu Kwahab is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 07:57 AM
How to increase tmp partition - mount loop device grim2 Linux - Server 2 03-10-2008 09:27 AM
how to securing /tmp , /var/tmp and /dev/shm hackintosh Linux - Security 7 10-18-2007 12:26 AM
Moving VAR TMP HOME OPT to new partitions JWatson Linux - Newbie 2 01-03-2005 05:54 AM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 02:03 PM


All times are GMT -5. The time now is 04:52 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration