LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-05-2004, 11:47 PM   #1
Necropolis
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
Post Hard Disk Partitioning, cfdisk & multi-boot


Hullo all,

1.)
I have on hand a 60 GB HDD. The first 18 GB is occupied by win2k pro. I've been thinking of installing Debian GNU/Linux on the next 20 GB of HDD space. Some folks have told me that I should create a few partitions for Linux i.e. just in case anything untowards happen e.g. OS crash. I'm toying with the idea of setting aside 100 MB for boot (wonder if this is sufficient) and a Linux swap partition of 1000 MB. However, I'm not sure what to do with regards to the other directories e.g. home/ (only one other user on this box), /usr, /var and others? What would a good partition layout scheme be like given the above? Any suggestions?

2.) I will be using cfdisk to partition the HDD i.e. the free space available for Linux But I'm curious as to what Primary and Logical partitions are. What are they? How would choosing to install Linux or for that matter FreeBSD in either affect my Linux/FreeBSD installation and win2k?

3.)
I'm also planning to install FreeBSD 5.1 on this same HDD for which I have allocated 15 GB of space for it. I plan to only install FreeBSD only after I have installed Debian. Does anyone forsee problems relating to partitioning, booting into any of the 3 OSes i.e. Win2K, Debian & FreeBSD? Would and could FreeBSD erase both my windoze and Debian partitions? Can the 3 OSes co-exist with one another peacefully on the same HDD?

TIA
 
Old 02-06-2004, 02:38 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I. You only NEED 2 partitions for any linux distro. A "/" (root) and a swap. The swap is actually not NEEDED - if you have enough memory - but very highly recommended. The other partitions (/boot, /home, /tmp and so forth) are optional and are recommended if security is an issue. Yes, thay can help save valuable data if one partition becomes corrupted. In short, it's up to personal preference. 100 Mb is way more than you need for /boot. At the very most I'd go for 50 Mb (which is kind of overkill anyway) and only if you're a kernel-compiling demon (daemon). 1000 Mb for swap is also a little excessive. You'll be fine with half that.

2. There are actually three types of partitions: primary, extended and logical. You can only have 4 primary partitions on any device (disc). I'm not sure if non-PC based machines have this limitation. Primary partitions are numbered 1 through 4 in linux. Extended partitions are merely housings for logical partitions and do nothing by themselves. Logical partitions are contained on an extended partition and start at number 5 (even if you have less than 4 primary partitions). You can have as many of these as you like. This system was brought about to overcome the 4-partition problem. There are essentially no major logistical differences between primary and logical partitions but I believe you may have problems booting from a logical. FreeBSD only needs one partition which is then subdivided during installation into the whatever partitions are necessary (including swap).

5. There should be no problems booting the three OSes from the same disc. I have done this in the past. I used lilo and experienced no real problems. Any OS can wipe the other OSes on your drive if you let it. So don't let it. There is no OS I'm aware of (even windows) that will wipe any other partitions without consulting you. I've noticed that If I install windows not-first then it can corrupt the beginnings of other partitions. Therefore it's recommended you install it first.
 
Old 02-06-2004, 03:35 AM   #3
Necropolis
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much. I suppose it will be safer to install both Debian 3.0 r 2 and FreeBSD 5.1 into Primary partitions then. And make /boot bootable in cfdisk. But should I also make the rest of the partitions that I want to create e.g. /var, /home, /usr bootable as well? TIA.

 
Old 02-06-2004, 03:51 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Quote:
But should I also make the rest of the partitions that I want to create e.g. /var, /home, /usr bootable as well? TIA.
I told you it was a matter of personal preference. You don't have to. If you believe security may be a problem then it might be a good idea. You don't even need to make a /boot partition if you don't want to. Keep in mind, though that if you make one partition too small then later on it can be a pain to resize said partition. It is possible, though.

For just your run-of-the-mill personal computer security is nota huge concern. Some people like to be paranoid, though.
 
Old 02-06-2004, 04:33 AM   #5
Necropolis
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Original Poster
Rep: Reputation: 0
ok. Thanks again.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Boot Multi Windows & Multi Linux olkar Linux - Newbie 5 10-03-2005 11:52 AM
grub problem with 2 hard disk with boot loaders. (linux & windows 2000) vbsoftware General 3 01-04-2005 08:01 PM
CFdisk only ses 10GBytes of my 20GByte Hard Disk Heath Slackware 1 06-08-2004 02:21 PM
partitioning advice for multi-boot rip Linux - Newbie 4 11-29-2003 08:05 PM
GRUB, Multi Linux/Multi Disk Boot gtnorton Linux - Software 1 03-16-2003 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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