Question about the /home partition

Hello everybody,

I’m about to re-install openSUSE 11.1 after playing with it for a while and deciding that I’m going to go with the x86_64 version. I’m trying to learn about how the partition manager works and I have a couple of questions:

  1. If I wish to use the XFS file system, I need to make sure that he /boot partition is ext3 correct? About how big do the /boot partition need to be?

  2. If I create a /home partition, is it ok to leave programs on that partition? Will they still work if I reinstalled an operating system or changed OSes? For example I play a game called Out Of The Park Baseball, and all of its system files are located in a folder in /home/joseph/. This should work even if i re-install right?

Thanks.

I asked about the same question not too long ago.
You’ll find an answer here : size=
(Recommended is 64Mb or more, mine is just 53Mb but enough for a 11.1 install.)

If I create a /home partition, is it ok to leave programs on that partition? Will they still work if I reinstalled an operating system or changed OSes?

Yes. During installation, you can choose to use the existing /home (of course, do not reformat it :wink: )
Files will be preserved, but you will probably have to fix/fine-tune some settings for the newer OS environment.
(For example, I had to clean-up the Desktop/ directory after updating to openSUSE 11.1.)[/size]

TheDelChop wrote:

>
> Hello everybody,
>
> I’m about to re-install openSUSE 11.1 after playing with it for a
> while and deciding that I’m going to go with the x86_64 version. I’m
> trying to learn about how the partition manager works and I have a
> couple of questions:
>
> 1) If I wish to use the XFS file system, I need to make sure that he
> /boot partition is ext3 correct? About how big do the /boot partition
> need to be?
>
there is a way to use xfs as /boot but it seems like a bad idea
http://www.mail-archive.com/bug-grub@gnu.org/msg10770.html

redhat suggests 100mb for /boot
> 2) If I create a /home partition, is it ok to leave programs on that
> partition? Will they still work if I reinstalled an operating system
> or changed OSes? For example I play a game called Out Of The Park
> Baseball, and all of its system files are located in a folder in
> /home/joseph/. This should work even if i re-install right?
>
yes, though the standard would be to create a separate /opt partition
and place those programs there so all users would have access. Since I’m
the only user I do what you describe for my java, python and air
programs (not sure everyone would think it’s a good idea though).
But you definitely should create a separate /home and / should be
15-20gb’s.

> Thanks.
>
>


Suse 11.1 x64, Kde 4.2.1, Opera 10.x weekly

Ok then, as a follow up question, is there a place I can get my handle on the organizational structure of linux/openSUSE? Coming from Windows, I had a grip on the way that it was organized (Program Files, Documents and Settings, etc…) but with Linux I dont’ understand the abbreviations like /sbin or /opt and what they hold.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Google-ing for Linux Filesystem gives me some good stuff:

http://www.freeos.com/articles/3102/

  • From Wikipedia I’ve read this a few times before for reference and is
    probably one of the best references I’ve found to start you out:

http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

Good luck.

TheDelChop wrote:
> Ok then, as a follow up question, is there a place I can get my handle
> on the organizational structure of linux/openSUSE? Coming from Windows,
> I had a grip on the way that it was organized (Program Files, Documents
> and Settings, etc…) but with Linux I dont’ understand the
> abbreviations like /sbin or /opt and what they hold.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ721HAAoJEF+XTK08PnB5vkUP/0VdvO9IVXitDsZoNDfBbK1I
oOzkb5moX8IqK/pTHyl+ypJL11zVHtswFATWWSN5ZHM835Ld4j0XBg/Qgej6/3T0
UXh3bA7kxaGuHjvlE/U5i6KMx+C/tWqMvO7jDatf4HZLk9obeusZH7hCQZV/GteE
JugIhPqBIjrGahh3Z+zB3OfAAduMMFcAjuNauLvbzCafQAJKJHllH6IaRTwtwDr9
xJ3QeYI78NjGH9W91abTa0P3dIx6sgGJ4WlCi84y4TJyIMUrQc2589GsqAbgeoc9
5rW5942QkJG3FshzFzl0Z81/ef+S4ptWFPp7s3RHd4BLpKjpu3T69/O09GmpLNcf
vAXzRdOZbagb6U2FfonRSa7uvzLo26tgls7npFCHDX4V884euxjLvHU95VAiSukT
XQ4tJUk7gYoamDEbcZ6CFIXcxF0zFP39MP/lWAiak3yIaNoqWl6F/kp43dPVsSQs
zpJAnC3cTEmpxBCu/T9sQP1fLXgN/ODsCU2X9wI0BQtrvoz/48+QXWTkliAWxRDy
k5G3uW3f4+0JMb48um9vIt1yMaEPuo8uJoSpc8SVlWE2xTvF8h3Ui1aq29xa4UKj
hMWOIV6sHwjX4Yv6odeKdtVGqU15YWQ8FKeJXo0YwYg1POReL6vDtGCfdwaD0jM3
bHIblwjxiKIOBN4+FXha
=sChV
-----END PGP SIGNATURE-----

On Wed, 2009-04-22 at 17:56 +0000, TheDelChop wrote:
> Hello everybody,
>
> I’m about to re-install openSUSE 11.1 after playing with it for a while
> and deciding that I’m going to go with the x86_64 version. I’m trying to
> learn about how the partition manager works and I have a couple of
> questions:
>
> 1) If I wish to use the XFS file system, I need to make sure that he
> /boot partition is ext3 correct? About how big do the /boot partition
> need to be?

Not correct. Just needs to be a filesystem that is handled. Since
I make my /boot areas small (100M), I use ext2 (not ext3 to avoid
journal overhead). But reiserfs works fine as well… not just
ext2/3… though again, for very small filesystems, use ext2.

/boot can be VERY small… I choose 100M because I sometimes have
many kernels. Even 30M is probably sufficient for openSUSE for
most folks… choose 60M if paranoid.

>
> 2) If I create a /home partition, is it ok to leave programs on that
> partition? Will they still work if I reinstalled an operating system or
> changed OSes? For example I play a game called Out Of The Park Baseball,
> and all of its system files are located in a folder in /home/joseph/.
> This should work even if i re-install right?

Possibly. Occasionally when major changes happen to the infrastructure
(e.g. a big glibc/libc change), then old programs might not work… same
for programs that use other large libraries (X11, etc.).

But… in general… yes… you’re usually ok.

Note that lilo is filesystem agnostic, so you could boot directly into XFS if you really wanted to, though it’s going to be more hassle than just setting up a separate boot partition and using grub.

for years windows would mix things up, with each program having its own directory, with subdirectories <program>&lt;documents> <program>&lt;exe> <program>&lt;settings>, whereas as unix and later linux had established conventions. Windows has had to move to a unix style in order to allow such things as multiple users having their own workspaces and documents. Even now, however, they get it upside down with <settings>&lt;user> and <documents>&lt;user> rather than <user>/<documents> and <user>/<settings>.

What you will normally find is that programs in linux stick much more readily to the conventions about where stuff should go, that you can normally let it install to default and it will be done correctly. So don’t worry about wher to install, Linux program install defaults are almost always right.

I agree with what NigmaToolin wrote, but I sense that your question is a little
more fundamental.

Unlike Windows where each disk partition gets a different drive letter, and has
an independent file system, Linux has a unified file system. Every disk
partition that is mounted has a direct path back to “/”, the real root of the
file system. This is true no matter whether the item that is mounted is another
partition on the same disk, on another disk, on a CD-ROM drive, or if it is a
network mount. Only the mount command or the file system table (/etc/fstab) need
to know the details. A mount command has the form

mount -t <fs_type> <device_and_partition_name> /<directory_to_mount_it_on>

On my system, the equivalent to mount /home is

mount -t ext3 /dev/sda7 /home

When this mount is executed, the directory /home is overlaid by the files on
that partition and the original contents become invisible.

As to the layout of the file system, your personal files will be located in
/home/<username>/… These files will include your documents, the configuration
files (no registry - thank any deity you want), etc. The system files may vary
with distro, but in general the system configuration files will be in /etc, the
most basic startup files in /boot, the temporary files in /tmp, the logs and
process-control files in /var, the device control files in /dev, the
user-operated utilities in /bin or /usr/bin, and the privileged utilities in
/sbin or /usr/sbin. System libraries (think dll) will be in /lib, /lib64,
/usr/lib, or /usr/lib64. The lib64 varieties will only be on 64-bit systems. The
privileged user’s private files will not be in /home/root, which might not be
available at startup, but in /root.

That is enough of a tutorial to start. If you want more, you will find lots of
descriptions on the Web.

Larry

Usually Linux gurus recomend a separate root partition, a seperate home and a swap partition.
This way the root partition can be played around with, while your personal files remain untouched.
If you want to use Ubuntu you can load Ubuntu into the root partition and tell it not to reformat the /home partition, If you want to use Mandriva same deal as with other distros out there.
As long as /home is not reformatted you can do anything you like

Thank you all so much, both for your answers concerning the file system and its explanation/organization. I found the wikipedia article extremly helpful/informative.

I will continue to play around with the partitioning to find what suits me best but will definetly at least split up /root, /home, swap and /boot from now on, thank you!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just as a note, I don’t see a reason to split off /root. Did you find one?

Good luck.

TheDelChop wrote:
> Thank you all so much, both for your answers concerning the file system
> and its explanation/organization. I found the wikipedia article
> extremly helpful/informative.
>
> I will continue to play around with the partitioning to find what suits
> me best but will definetly at least split up /root, /home, swap and
> /boot from now on, thank you!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ7+LUAAoJEF+XTK08PnB5N6wP/iEvMfwkGoug9vjhU9f8Qj30
7o46klJE4PajHecgjpMMa6R/pkM0QkPW8VtFnbrTHhDo4k470GW97nyi9jwoFTu/
lYEvosxrTex/GWAAuAoA3dE2e9/2KyOD24M1IKtIsqDt5pVmEPFY/VecAeuKM3XJ
oBN9LUjbteRcaru0MZxbBYMyAfXdabPjSBoDMZjTI0+Nc9jSpoQ+5NXF5aFMfuAn
fYIMJEHf4tlaU6/26zhVSTMrCc68XyrRnhXj6cG8Uonh5AqrwfzYstSPAxm5s3at
/tKLulawd+xiAavC/neBWcclRhYxl2xd6YfwEBkcjUZbA0/qB0uDyO4RD1EY2VLU
Aybgaa0+hwLzX/idr/qecCLH6l/fr/NPXruLiqYdsi+F2NgSxy3Ak3UVTp1k94nW
0JLfriIztdpicn281tbKxysIfJtmiqOYUIxI5eynDVeymVfaIMwGwgctl3oG9ECb
MMoXh0OmRPau2aYJUshGPbqPbO27LT2AiroKFfH5wGRUnJUetlbUuGRnWh+6hKiR
a3FwLU9tPhNKw+rHmq/03+FHz6TzOaWf5lV2dIEehB7xIkrBaEsMT9u3a/5k+Gve
OIKUUhapRAIFfsqHTyAhtN+vuKRV/Yvow03hU03UkZpHFcL1dTW48YjEfh2Vyz1w
oyDAQINf1XmjIwYnIXiR
=IKlg
-----END PGP SIGNATURE-----

ab@novell.com wrote:
> Just as a note, I don’t see a reason to split off /root. Did you find one?

I would not recommend putting /root on a separate partition. On a properly run
system, /root is very small. Mine is just a little over 9 MB.

Larry

Sorry I meant the filesystem, /, not /root.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ah, that makes more sense. Since it is always a partition I guess that
won’t be a problem. :slight_smile:

Good luck.

TheDelChop wrote:
> Sorry I meant the filesystem, /, not /root.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ8HjqAAoJEF+XTK08PnB5NYQQAIJBbzd5Xp+bNGG+XAeOoy9a
uu6QfOwmoRDhbwJcOpZhxWonA8vr4g0iSj8S7lITjdLqWf3EOM/2+FFPfT3aaxCK
x5TyFyQaQHRYsKQyZGhs7bN9Y7dHT3GvMp2BJImXfsL37HP+roI1ZLi824AsNEK5
71UfhA0jqUFTouwf2lRK5jy15kHV0Yq3lT8K1btYucE8WS9umvs2mLQQ336sr/x9
oE4NXy4Qd+I2fExmIiRbruIqmzLpVdion8nKGMJ84KBcgXlWeCk+7IbkAlIc5eB6
tPNZ7LunanNIJmh8RtK4tCl6FNa3HJctxck8UpMPdc5pLazidPJbjKtY1yCul/v+
Tz5F9ir5atEoE9Urh0lM44v6sqe4RrIS27sbyMyjHDOGUhuMcaao+YxGUbA7yAQd
Zhg85qU+QJVix3AHSbU06VKw7Msm6odUb3fPI6uB/IPdNBsfpPOmjIfTIy9n3jyY
edQi+n1VNKyOxuRFvYdmBYvHSR44fgWqsO2gPn6qkJhErsfJQpoegiUxxA1CkzhO
o9RuhloCCK5r7SakjCEWapQ3f65L+zjWdQyvupJjnM94hpBECMGG5YQqO6s+QdBQ
Hhx8K2k0dfAI2/lxC1NU1cok7NNCy+ocfSE7XWdnJpqjXh6S4Yms/gtx/7dDwe+6
d+DTUc2WxAmCmC1Vaki9
=YIhl
-----END PGP SIGNATURE-----