Jump to content

Partition Advice needed


Guest neill
 Share

Recommended Posts

hi, i've just got a new 120Gb hard-drive and i'm unsure as to how much space to allocate each partition. i will need /, /usr, /home and a swap partition.

 

The only thing i know i want is a big swap file - 1.6Gb is what i've settled on for that. I will be storing a lot of mp3's and movies on /home.

 

Also, i have windows XP installed on a seperate hard-drive and was wondering how i should set up each drive? should i set both hard-drives as primary master's (as i was advised by a friend) or something else? i want to keep both hard-drives connected so i can get stuff from my windows drive when i'm in linux, and would like lilo to ask me whether i want to boot into windows or linux.

 

i've looked for advice on this but i can only find information about having linux and windows on the same disk, not seperate disks.

 

i'd appreciate any advice at all really.

 

thanks, neill.

Link to comment
Share on other sites

Your machine has only one primary channel, and only one drive can be the master drive on that channel. What I think your firend meant was to put the other drive as the primary drive on the second channel. Which is what I have done on my machine.

 

MDK should find any other OS you have installed on the same machine. I would suggest putting the Lilo in the mbr of the master drive, on the primary channel. (So that would be hda from the list of options)

 

I'd leave the hd with Windows as the master drive on the primary channel. Windows can be quite fussy, and doing this will keep it happy. If you want to store lots of mp3s you'll need to make /home quite large. /usr depends on how much software you want to have installed. I think its set as 15gig on my system.

Link to comment
Share on other sites

See my response below to the question from JohnKFT about Dual Boot, Any problems. It addresses these issues specifically. The only difference is that you are using two drives instead of one. Lilo should find the XP and install it and Linux in the boot sector of the primary master. Partition recommendations are as above with the exception of separate /temp partition. Read the posts linked for you by Aru and read the old docs section at the top of this page on partitioning. Would that the other question about two drives had read mine those recommended first.

 

Counterspy

Link to comment
Share on other sites

This is purely a matter of personal preference. I think the only hard and fast rule is you want to set up your partitions so you don't run out of space and have to fiddle with them down the road.

 

I would question the need for a 1.6 GB swap partition. I've found that once you hit around 400 MB of ram, you rarely see the system using swap at all which is a good thing. I think the old rule of thumb that swap should be twice your ram has little relevance with todays high ram configurations. If you have 400MB of ram or more, I'd leave swap at 800MB and I doubt that your system will ever use more than a tenth of it.

 

Data that you are going to need/want/access for a long time over many potential changes in operating systems/distros I generally put on a separate Fat 32 partition(s). For examjple, I have separate FAT 32 partitions for Music/MP3, Photos, and Documents(a lot of forms I use in my business, records, etc). I can access this data through windows and linux and I periodically back this stuff up on CD-Rs. If one or more of my operating systems is trashed the data is generally untouched and I always have the CD backups.

 

Next, I would recommed that you make back up partitions on each drive for the more transitory operating system data. For example. I have a linux back up partition on my windows hd and a windows back up partition on my linux hd. I periodically back up my linux home directory to the linux back up partition and also use disk imaging utilities like Partition Image(free open source linux product), Acronis True Image, and/or Power Quest's Drive Image to make partition images of the linux operating system partition. If I trash something on the OS, I can simply restore the entire partition with these utlities. Keeping the persistent data on separate partitions from the OS greatly reduces the size of these OS partion image back ups. I have a similar routine for windows which is backed up to my linux hd back up partition. Having these back ups on opposite drives protects against drive failure.

 

As far as dividing up my linux OS into separate partitions, I don't bother with it other than providing for a swap partiton. I don't think it makes a lot of sense in a single user environment with todays humongous hard drives. It's just easier for me to back up my Mandrake OS partition with a single pass of an imaging utility than making multiple passes of home, usr , root, etc partitions. Just don't see the point of it myself.

Link to comment
Share on other sites

I do not disagree with much of what you say. I do not agree with your recommendations about backup. I do the same with my system in storing Linux data in Windows and vice versa, but I started that after two years of experience with Linux.

 

As far as dividing up my linux OS into separate partitions, I don't bother with it other than providing for a swap partiton. I don't think it makes a lot of sense in a single user environment with todays humongous hard drives. It's just easier for me to back up my Mandrake OS partition with a single pass of an imaging utility than making multiple passes of home, usr , root, etc partitions. Just don't see the point of it myself.As far as dividing up my linux OS into separate partitions, I don't bother with it other than providing for a swap partiton. I don't think it makes a lot of sense in a single user environment with todays humongous hard drives. It's just easier for me to back up my Mandrake OS partition with a single pass of an imaging utility than making multiple passes of home, usr , root, etc partitions. Just don't see the point of it myself.

 

This I regard as suiting you but poor advice closing in on nonsense for relatively inexperienced users. Your reliance on Windows-based partitoning programs is also something I recommend be avoided like the plague, particularly if any kind of journalling is employed. The cardinal rule is to use Windows partitioners on Windows and Linux partitioners on Linux. There is no Windows partitioner except in dreamland that will bail you out of a serious problem once Linux is on the scene. Many new users scramble their systems by letting Windows or utiltites like Partition (Perdition) Magic correct errors for them. They can be safely used for initial partitioning but should be shelved after that.

 

As far as single or multiple passes are concerned this a straw man given that the increased size is also matched by increased speed and in any event we are arguing microseconds in access times. For some accurate information on drive matters see http://www.storagereview.com.

 

Linux partitoners include Parted ( http://www.gnu.org/software/parted/parted.html ), fdisk, cfdsik and sfdisk. Parted is what I would call the ultimate program because of its scope and documentation. The only disadvantage is that it and the others are command line driven making new users do more work learning how to use them. They are also compatible with a far greater number of OS file types that are simply not within the capabilties of similar software in Windows. For imaging partitons, there is partimage ( http://www.partimage.org/ ), again well-documented which works quite adequately for Linux AND Windows partitions including NTFS. Since I consider Windows eventually expendable on my machine, I do not bother backing any of it up except for one partition containing Linux material. Most users find that it needs at least quarterly reinstalls just to keep functioning.

 

Counterspy

Link to comment
Share on other sites

It's also alot easier to backup/restore small partitions vs one huge partition.. Another thing to remember with 120 gig, you can can grow into it. Develop your basic partitions that you must have but don't try to use all your space unless you need it.. You can always add a new partition.. now down the road you want to try out gentoo linux, you have the empty partition space available and don't have to move/resize what not..

 

Finally, do you understand what extended partitions are?

Link to comment
Share on other sites

One thing we forgot to mention is saving the /home partition on upgrades, reinstalls or installs to 9.1 as an example. All of your custom settings in window managers and browsers etc. are stored there and would not be reformatted in any scenario other than corruption of /home itself.

 

Counterspy

Link to comment
Share on other sites

I realize that my opinions re not dividing up a linux install into multiple partitions are a departure from linux orthodoxy but if your going to use a term like "nonsense", I beleive it is incumbent on you to explain the basis of that opinion. You haven't and I stand but what I said above. For a single user set up, I don't see any great advantage to dividing up the install into anything more than root and swap once you move the big data items to separate partitions like I outlined above. I am, however, willing to be enlightened if you or anyone else care to elaborate.

 

Re your rant about windows partitioning utliities, I have no idea how you arrive at your conclusion re my reliance on these utilities. Using native partitioning utilities for a given operating system is how I generally do it. and is the recommended way( see man fdisk).

 

Re your straw man argument on making one versus several passes, your just wrong. Imaging utilities generally only let you back up one partition at a time. If you have to do this several times for each partition in the linux install, it means going through the program set up for choosing the partition to image and the location of the backup image multiple times. That's not milliseconds.

Also, if something goes wrong and you need to restore, your back at going through the program multiple times to get a full restore or making educated guesses about which partitions to restore, testing the result, and restoring more partitions if it doesn't work.

 

In a multiuser environment splitting linux into multiple partitions can be very useful administratively because it allows you to separate out data which is changes frequently and in need of more frequent backup from more static data. It's also very useful for security reasons. On a single user machine with plenty of disk space for backups, it's an anachronistic throw back that isn't worth the hassle for whatever benefit you might get.

 

Finally, what's so hard about backing up to the opposite drive? It's certainly no harder than backing up to the same drive. Don't understand why you would try to disuade a noobie from doing this.

Link to comment
Share on other sites

This is not the forum for a debate on partitioning and backup. I have said all that I intend to say on the subject except as it pertains to the question(s) posted. If the original questioners have any further questions they can direct them to who they feel has helped them. If you wish to debate the subject further I suggest you post it to Everything Linux so the whole community can participate and offer their opinions.

 

Counterspy

Link to comment
Share on other sites

Gee. If this isn't the place for these kinds of debates then what is and why did you invite one with your prior post? If the mods want to move it then fine. Also, the last time I checked, this thread was available to the entire community. Arguing about how to divide up a hard drive is silly and calling somebody else's opinion on how to do so nonsense is even sillier. As I initially stated, it's purely a matter of personal preference.

Link to comment
Share on other sites

Guest jglen490

This thread started out as a question on partitioning. There is no one answer for partitioning. Therefore, all opinions on partitioning are valid.

 

There is much to be said for creating only two partitions (native and swap) in a single user Linux environment. I've gone both ways: two partitions and three. One for swap, one native for /var, and the rest native under /. The only advantage there is that if you have some event that ends up doing a lot of logging, it doesn't kill your entire drive.

 

As for upgrading, you SHOULD always backup your /home and perhaps some other directories even if they are in separate partitions that you are SURE will not be touched by the upgrade. You know, Murphy's Law. After upgrade it's a good idea to restore what's in /home, at least. So it's not always absolutely necessary that a single user linux installation always have a multiple partitioning scheme, other than a separate swap.

 

If the original question had been about an enterprise server, the answer would have to be very different.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...