LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-24-2008, 02:09 PM   #1
obnascar
Member
 
Registered: Aug 2005
Location: Wisconsin USA
Posts: 185

Rep: Reputation: 30
Can You Think of any disadvantages of a /home partition ?


I would like to find any answers to this so I can pass it on to my Linux friends. I personally do not have a separate home partition. I know this forum has many very experienced Linux users that would be able to share this with me.

What could go wrong having a home partition ?

thanks,
OBnascar

Last edited by obnascar; 07-24-2008 at 02:14 PM.
 
Old 07-24-2008, 02:16 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Users don't pay attention to available space, fill up drive and if it's within /, when / fills up with space, things start to break or stop working.
 
Old 07-24-2008, 03:15 PM   #3
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Of course, that's a disadvantage of *NOT* having a separate /home partition. Disadvantage of having a separate partition? (1) slight additional complication in disk setup and management, (2) picking the size so that you don't run out of room for your users. If you don't use a separate partition and want to protect / from being overrun you can institute quotas instead.
 
Old 07-24-2008, 03:59 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
There are more advantages of having a separate /home partition than disadvantages.
having a separated partition to /home, helps in more aggressives upgrades (a.k.a changing distro), helps in making backups with ufsdump, helps in migrating data to a new disk, helps in protect your data in case of a fatal failure in any other point of the disk, you can have a different policy for quotas in /home and another policy for the other(s) partition(s), blah, blah, blah....
 
Old 07-24-2008, 04:56 PM   #5
xkero
Member
 
Registered: Dec 2007
Posts: 30

Rep: Reputation: 15
Keep various parts of your system separated via partitions is strongly advised. On my server I have /var (holds www stuff) as a separate partition. On my laptop that dual boots I also keep /boot (for grub boot loader settings) as its own 50mb partition. On all system I obviously keep /home on its own partition. Makes switching distro, reinstalling or fixing much easier. Most Linux file systems have decent support for resizing so space allocation shouldn't be too much trouble...
 
Old 07-24-2008, 05:15 PM   #6
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by obnascar View Post
What could go wrong having a home partition ?
If it fails to mount for some reason, then users won't be able to log in KDE (and won't be able to use a lot of other things).
Other than that - nothing can go wrong, I think.
 
Old 07-25-2008, 03:40 AM   #7
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
It might be slightly slower, but that depends on the layout of the disk.

In general, I think that there enough advantages to a separate home partition that I always do it. I certainly wouldn't get worried about the few slight disadvatages in the face of the real advatages (ease of upgrading, ability to set up the partitions with filesystem types and characteristics as required, possible 'insurance' against runaway disk destruction).

It was pehaps different when disk used to be very small and disk space was in very short supply; then there was an argument for fewer partitions, because that made partition sizing easier.
 
Old 07-25-2008, 08:05 AM   #8
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
My biggest concern with using a separate partition for /home is that I sometimes have multiple distros installed at the same time. I don't want my hidden files in my ~ directory to conflict between distros, because my configs may be different.

What I do is have a separate /files partition. In that partition I create a directory for each user. Then I put a link within each user's ~ directory to their directory in /files. That way all of the dot files are contained within the / partition for each specific distro, but the user files are in the partition that is common to all distros.

In addition, I export /files so all of the boxes on the network can mount it. Users have the same ~/files directory wherever they happen to log on.
 
Old 07-25-2008, 03:04 PM   #9
KasMage
LQ Newbie
 
Registered: Jul 2008
Location: Indiana
Distribution: Mandriva 2008.1
Posts: 21

Rep: Reputation: 15
Quote:
Originally Posted by ErV View Post
If it fails to mount for some reason, then users won't be able to log in KDE (and won't be able to use a lot of other things).
Other than that - nothing can go wrong, I think.
And even then, any partition could fail to mount correctly. If all your /home data is on the same partition as your root, then you'd just lose access to everything if / didn't mount corrrectly.
 
Old 07-25-2008, 06:32 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Your home partition is given in /etc/passwd. If you are installing different distro's on one machine, you could add a suffix to your home directory reflecting the distro.

/home/dgregory-fc9/
/home/dgregory-suse/
/home/dgregory-ubuntu/

So you could have the same username but differently named home directories. Also keep in mind that your UID might differ between different distro's. SuSE starts with 1000, while FC and Mandriva start at 500.
Mandriva creates a default group by the same name as the user and uses that as the default. SuSE uses "users" as the default group. I prefer the former and do this manually in SuSE.

If you unify your UID and default GID in each distro, you could have a main distro that you normally use contain your Documents and downloads subdirectory and then have symbolic links for the other distro's Documents & downloads directories point to the main one.
/home/dgregory-suse/Documents -> /home/dgregory-fc9/Documents.

This can avoid replicating the same documents in each distro or having to search through each of your home directory because you saved a document in a different distro.

---

The main disadvantage in having each distro with it's own /home directory is fragmenting the amount of space available. Having one /home partition will allow you to have a larger /home partition.

Another candidate for a common partition is /tmp. Configure each distro to clean out /tmp when rebooting. Then use the same /tmp partition.

Of course you only need one swap partition. If you want to use suspend to disk, you need it to be at least equal to the size of your ram. The "resume=" entry in the kernel boot line references the swap partition to wake up from.

Last edited by jschiwal; 07-25-2008 at 06:37 PM.
 
Old 07-28-2008, 07:51 PM   #11
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
To be honest, I can't think of any reasonable objection to a separate home partition. You could always object on the basis of increased complication in certain (and very specific) administrative tasks. Of course, how many people are really using "dump(8)" these days -- I do but I am a weirdo at times. And almost all other utilities are capable of spanning mount-points without issue... although they may require certain options. In my opinion, I often desire the ease of segregation between system and user data that comes naturally with partitions.


Also, in very rare circumstances... you may fail to mount the /home directory and then create a large file in /home on the / partition... and later find your / directory full but not be able to find the file(s) causing it because /home is mounted on top of the directory and hides the problem. This happens occasionally... although it is often intentional. When I was in college, this was part of the checklist we had when looking at full partitions or when suspicious activity was suspected on a workstation that someone had mount/umount ability on.
 
Old 07-28-2008, 08:03 PM   #12
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
I re-format my machine a lot. I think because I like always having a clean system. That being said. I have a Seagate 750GB drive. Having a seperate /home partition means that I can wipe my system and not mess with my /home data. I can reformat my entire system and not lose any of my data. Keep in mind many programs on the / file system may have hidden files saved on your home directory.

Just take a look and do ls -la ~/

- Carlos
 
Old 07-28-2008, 08:25 PM   #13
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Quote:
Originally Posted by Carlwill View Post
I re-format my machine a lot. I think because I like always having a clean system. That being said. I have a Seagate 750GB drive. Having a seperate /home partition means that I can wipe my system and not mess with my /home data. I can reformat my entire system and not lose any of my data. Keep in mind many programs on the / file system may have hidden files saved on your home directory.

Just take a look and do ls -la ~/

- Carlos
Oh yeah man... I have dotfiles dating back over 3 years in my home directory (and really dating back 8 but I got a new main drive in the machine 3 years ago and didn't preserve modification time on it). I haven't needed to recreate those files because I have been keeping the same home directory for all these years.

It really makes it so much easier to upgrade or change the base system without causing headaches on the user side. My step-mother has gone through 3 major number revisions (of FreeBSD) without noticing because her home directory has never been touched. The only changes she's noticed are in better looking and better behaving programs. Her data and preferences have never vanished. In fact, she hasn't done any configuration of her machine since the first day when we set it up together.

Also... as a side note... her hard drive (from the original machine) did fail. And it failed pretty dramatically... losing whole areas of the drive and making several partitions inaccessible. But luckily, not the /home partition. After several hours, I was able to preserve every personal file she had on the machine. Had I used one big partition, I would have never gotten that lucky break and she would have lost data that was irreplaceable (unbacked up images of her recently deceased father).
 
Old 07-28-2008, 11:49 PM   #14
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I don't have a separate /home partition, I have a separate /home drive.

Every now and then, for one reason or another, I rearrange my system. I have five internal hard drives, and usually the rearrangement is done to take better advantage of the drives that are in the box. Having /home separate from the system and from everything else makes that rearrangement a lot more convenient.

Though I must say that this /home drive came about as part of a rearrangement a few years ago, and I was lazy at the time and just symlinked /home from the system partition to the new drive. Never got around to changing that; it is still symlinked - even though since then the /home drive has itself been reorganized (used to be two partitions with one being home, now is just one big chunk...all /home) and the system has been moved to another (larger, faster) drive.

One of these days, I might update fstab. Might not, too; the symlink works fine...
 
Old 07-29-2008, 01:36 AM   #15
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
if you don't have any /home partition and /home is within / directory then you should define some user quotas, I think after that you won't run behind space.


but its better to have a /home partition

thanks

shahz

Last edited by shahz; 07-29-2008 at 01:37 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot write $(HOME).dmrc file home is on a seperate partition Person_1873 Linux - Newbie 5 12-07-2008 01:41 PM
,dmrc problem after moving /home partition to NTFS partition yeehung Linux - Newbie 1 11-14-2007 06:17 AM
Can I move /home partition under root partition arijit_2404 Linux - General 3 07-05-2007 12:01 AM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:22 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