Skip to contentSkip to conversation

partitioning

DISCUSSION S. Barret Dolph 6 participants 9 messages Jan 25, 2004 – Jan 27, 2004

lore
Share & tools
lore
#0 lore raw

I am probably getting too picky about repartitioning my drive but I want it to be set up for a long time. I never use all the space in my harddrive even though it is relatively small. (I only use it for work and don't play any games.)

Questions......

My old setup

sda1 / 1g
sda5 /swap 1024k (512ram)
sda6 /usr 6g
sda7 /home 10g

I will be using Sourcemage which puts sources in /var so I have been thinking about taking 3g out of home and making a /var of 3g.

I will probably take another 3 out of home and add it to usr/ but that is
probably overkill. Neither use too much.

I am confused about where /swap should go. I have a SCSI drive and from what I read that should be on the outside. So should I put /swap at sda8? (Given that I have added /var.)

I had a /home because it was convenient to upgrade with CD's when I only had a 56 modem. Now that I am using a source based installation is the /home unnecessary as I am the only user.

Is having a /tmp partition necessary?
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw

Hi, S.:

The output of 'df' might be more meaningful.

If you mounted sda7 as /
and mounted sda1 as /boot
Would it satisfy all your free space concerns?
:-|
HTH, Chuck

Quoted 25 lines · S. Barret Dolph

I am probably getting too picky about repartitioning my drive but I want it to be set up for a long time. I never use all the space in my harddrive even though it is relatively small. (I only use it for work and don't play any games.)

Questions......

My old setup

sda1 / 1g

sda5            /swap   1024k  (512ram)
sda6            /usr            6g
sda7            /home   10g

I will be using Sourcemage which puts sources in /var so I have been thinking about taking 3g out of home and making a /var of 3g.

I will probably take another 3 out of home and add it to usr/ but that is
probably overkill. Neither use too much.

I am confused about where /swap should go. I have a SCSI drive and from what I read that should be on the outside. So should I put /swap at sda8? (Given that I have added /var.)

Quoted 5 lines

I had a /home because it was convenient to upgrade with CD's when I only had a 56 modem. Now that I am using a source based installation is the /home unnecessary as I am the only user.

Is having a /tmp partition necessary?

probably

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
In reply to S. Barret Dolph
Quoted 24 lines · S. Barret Dolph

I am probably getting too picky about repartitioning my drive but I want it to be set up for a long time. I never use all the space in my harddrive even though it is relatively small. (I only use it for work and don't play any games.)

Questions......

My old setup

sda1 / 1g

sda5            /swap   1024k  (512ram)
sda6            /usr            6g
sda7            /home   10g

I will be using Sourcemage which puts sources in /var so I have been thinking about taking 3g out of home and making a /var of 3g.

I will probably take another 3 out of home and add it to usr/ but that is
probably overkill. Neither use too much.

I am confused about where /swap should go. I have a SCSI drive and from what I read that should be on the outside. So should I put /swap at sda8? (Given that I have added /var.)

Quoted 5 lines

I had a /home because it was convenient to upgrade with CD's when I only had a 56 modem. Now that I am using a source based installation is the /home unnecessary as I am the only user.

Is having a /tmp partition necessary?

Questions of the sort you pose here are hard to answer because they do not really have "right" answers. The best partitioning strategy for a specific system depends on the anticipated uses for that system, the distro involved, specifics of its hardware, and probably yhe personal style of the person who will admin it.

My own preference, just as an example, is to minimize partitioning, to avoid later needs to repartition when my needs change. So for a 1-drive system, I typically do something like this --

hda1 = small (50 MB or so) partition, mounted at /boot hda2 = midsize (256-1024 MB) partition, used as swap hda3 = rest of disk, mounted as / (root partitionj)

Sometimes I use a 4-partition setup, varying the above as

hda3 = between 10 GB and 20 GB, mounted as /
(depends a lot on the size of the drive, of course)
hda4 = rest of disk, mounted as /home

But even there I have systems that depart from those rules ... and, of course, multi-drive systems get more complex. But I never find it desirable to set up separate partitions for /usr, /var, and /tmp ... I've found that making them separate just introduces more opportunities for things to go wrong.

That's just me, though ... this is an area where reasonable people come to different comculsions about the best approach.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw

As always it is good to read your advice. I have learned much from this list and much from you.

Cordially,
S. Barret Dolph

Quoted 65 lines · Ray Olszewski
Quoted 26 lines · S. Barret Dolph

I am probably getting too picky about repartitioning my drive but I want it to
be set up for a long time. I never use all the space in my harddrive even though it is relatively small. (I only use it for work and don't play any games.)

Questions......

My old setup

sda1 / 1g

sda5            /swap   1024k  (512ram)
sda6            /usr            6g
sda7            /home   10g

I will be using Sourcemage which puts sources in /var so I have been thinking about taking 3g out of home and making a /var of 3g.

I will probably take another 3 out of home and add it to usr/ but that
is probably overkill. Neither use too much.

I am confused about where /swap should go. I have a SCSI drive and from what I
read that should be on the outside. So should I put /swap at sda8? (Given that I have added /var.)

Quoted 6 lines

I had a /home because it was convenient to upgrade with CD's when I only had a
56 modem. Now that I am using a source based installation is the /home unnecessary as I am the only user.

Is having a /tmp partition necessary?

Questions of the sort you pose here are hard to answer because they do not really have "right" answers. The best partitioning strategy for a specific system depends on the anticipated uses for that system, the distro involved, specifics of its hardware, and probably yhe personal style of the person who will admin it.

My own preference, just as an example, is to minimize partitioning, to avoid later needs to repartition when my needs change. So for a 1-drive system, I typically do something like this --

hda1 = small (50 MB or so) partition, mounted at /boot hda2 = midsize (256-1024 MB) partition, used as swap hda3 = rest of disk, mounted as / (root partitionj)

Sometimes I use a 4-partition setup, varying the above as

hda3 = between 10 GB and 20 GB, mounted as /
(depends a lot on the size of the drive, of course)
hda4 = rest of disk, mounted as /home

But even there I have systems that depart from those rules ... and, of course, multi-drive systems get more complex. But I never find it desirable to set up separate partitions for /usr, /var, and /tmp ... I've found that making them separate just introduces more opportunities for things to go wrong.

That's just me, though ... this is an area where reasonable people come to different comculsions about the best approach.

Quoted 5 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw
In reply to S. Barret Dolph
Quoted 11 lines · S. Barret Dolph

I am probably getting too picky about repartitioning my drive but I want it to be set up for a long time. I never use all the space in my harddrive even though it is relatively small. (I only use it for work and don't play any games.)

sda6 /usr 6g

I will probably take another 3 out of home and add it to usr/ but that is
probably overkill. Neither use too much.

If you're going to separate /usr, and the reasons for doing so probably
don't apply to many people here, even 3GB should be too much. Depends, of course, on exactly what you put there, but assuming you don't install a _lot_ of things you aren't going to use then 3GB is more than enough for a _full_ system (except /home).

You might also want to consider how you will upgrade in the future. If
your existing distro will provide updates for future releases, fine. If not, you might want to keep some space free for a replacement, so that you can still run, or at least mount, the old one to check some of the details.

Quoted 4 lines

I am confused about where /swap should go. I have a SCSI drive and from what I read that should be on the outside. So should I put /swap at sda8? (Given that I have added /var.)

Outside is supposed to be faster, but I don't believe there is much in
it. I believe that the _first_ cylinder is the outside. The real killer is probably head movement. Unless you have a repeatable workload that goes fairly heavily into swap, plus time to kill benchmarking different partition layouts, it isn't worth worrying about.

Ken

Signature · 6 lines
This is a job for Riviera Kid!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#5 lore raw
Quoted 7 lines · Ken Moffat

If you're going to separate /usr, and the reasons for doing so probably
don't apply to many people here, even 3GB should be too much. Depends, of course, on exactly what you put there, but assuming you don't install a _lot_ of things you aren't going to use then 3GB is more than enough for a _full_ system (except /home).

Care to comment on the reasons for putting /usr in it's
separate partition??

For the many personal and home office work stations wouldn't
that be overkill and not within the KISS philosophy??

Just curious. Cheers. <grin>

Hal - in Terra Alta, WV - Slackware GNU/Linux 9.0 (2.4.20)
Utrum Per Hebdomadem Perveniam
.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#6 lore raw
Quoted 9 lines · Hal MacArgle
Quoted 7 lines · Ken Moffat

If you're going to separate /usr, and the reasons for doing so probably
don't apply to many people here, even 3GB should be too much. Depends, of course, on exactly what you put there, but assuming you don't install a _lot_ of things you aren't going to use then 3GB is more than enough for a _full_ system (except /home).

Quoted 3 lines

Care to comment on the reasons for putting /usr in it's
separate partition??

Not particularly, but I'll do my best ;)

Quoted 3 lines

For the many personal and home office work stations wouldn't
that be overkill and not within the KISS philosophy??

Yes to overkill. If it's a simple way of making it harder to damage things then perhaps it's not outwith the spirit of KISS.

Quoted 5 lines

Just curious. Cheers. <grin>

Hal - in Terra Alta, WV - Slackware GNU/Linux 9.0 (2.4.20)
Utrum Per Hebdomadem Perveniam
.

As far as I understand, the main reason to separate /usr is to do with permissions - if it's separate, you can mount it r/o. However, you can also mount '/' r/o with (quite a lot of planning and) messing about. I'm sure I've read about people mounting an nfs export at /usr, but that does assume that all clients are on a similar architecture. My security knowledge isn't great. I'm sure I've missed out other advantages.

Ken

Signature · 6 lines
This is a job for Riviera Kid!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#7 lore raw

OK on the comments received by all.. I'll have to give this more thought as to whether or not it's for me... Appreciate!!

Hal - in Terra Alta, WV - Slackware GNU/Linux 9.0 (2.4.20)
Utrum Per Hebdomadem Perveniam

Quoted 18 lines · Ken Moffat
Quoted 5 lines
Quoted 1 line

Care to comment on the reasons for putting /usr in it's
separate partition??

Not particularly, but I'll do my best ;)

Quoted 3 lines

For the many personal and home office work stations wouldn't
that be overkill and not within the KISS philosophy??

Yes to overkill. If it's a simple way of making it harder to damage things then perhaps it's not outwith the spirit of KISS.

Quoted 1 line

Just curious. Cheers. <grin>

Quoted 11 lines

As far as I understand, the main reason to separate /usr is to do with permissions - if it's separate, you can mount it r/o. However, you can also mount '/' r/o with (quite a lot of planning and) messing about. I'm sure I've read about people mounting an nfs export at /usr, but that does assume that all clients are on a similar architecture. My security knowledge isn't great. I'm sure I've missed out other advantages.

Ken

Signature · 2 lines
This is a job for Riviera Kid!
-

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#8 lore raw
Quoted 3 lines · Hal MacArgle

OK on the comments received by all.. I'll have to give this more thought as to whether or not it's for me... Appreciate!!

To be honest i have not seen any replys to your mail, however in the days we now live in which are;
BIOS's which dont have limitations like the old < 1024 cyl's limit, Big H/D's 120GB is standard now, (plenty or room)
Multi boot systems via BIOS (choose which drive one wants to boot from,

one must ask one's self, "Is is reallt nessacary to have a /boot prtition now that bootloaders dont need it beneath the 1023 cylinder.?

I throw everything into one partition thesedays, 20 Gig on a 120Gig disk is nothing.
Just my thoughts.

Signature · 15 lines
If the Linux community is a bunch of theives because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs