LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Partitioning questions (https://www.linuxquestions.org/questions/mandriva-30/partitioning-questions-276798/)

Hampster 01-12-2005 02:27 AM

Partitioning questions
 
So, I'm kinda new to Linux (Except in Grad school, but I had no admin access)

I tried Redhat for a while, but switched to Mandrake. I noticed that there is one less partition, namly the /boot partition. Are there any required conventions for linux partitions? or is /boot unique to RedHat? It doesn't look like there is a separate swap partition, either. What the advantages/disadvantages of this?

Also, my two partitions are named hda1 and hda6. I know that hda1-4 are 'primary', so what happened to hda5?

Soon, I would like to set up a RAID-1 system. I take it I would need to declare two partitions, md1 and md2? Are there good instrucions somewhere I could follow?

Any advise/answers would be greatly appreciated.

-Dave

rjlee 01-12-2005 03:40 AM

/boot is not required as a partition.

However, this is where the kernel image is stored that you load during boot-up, and (on the ix86 architecute) some old BIOSes cannot load this image if it appears after the first 1024 cylinders. So to get around this problem, /boot is created within the first 1024 cylinders instead. If your BIOS is more recent, then you don't need this.

You can use the fdisk command to list the actual, physical partitions on your hard disk. I think you'll find that hda5 is actually a swap partition, unless you deliberately didn't create one. The swap partition is now used for two reasons; swapping data out of RPM when you run out of space (effectively giving much more RAM at a spall performance penalty), and swapping data out of RAM to make more room for caching the hard disk (in turn speeding up disk operations).

The advantage of not having a swap partition is that your latency will always be low; i.e. graphical programs, web servers and the like will always respond to requests as quickly as possible, which typically makes them seem faster.

The main advantage of having a swap partition are that you are less likely to have programs crash due to a lack of memory. But there's also a performance increase for disk-bound non-interactive tasks, such as for a disk server, or for a web server that serves large, static files.

You'll find a software-RAID HOWTO on www.tldp.org. Raid devices start counting at zero, so I suspect you will want to create md0, which will in turn use two or more partitions (for both speed and protection, these should be on different disks or you don't really gain anything).

Btw, the kernel effectively uses RAID-0 to combine swap partitions on different hard disks, so there's no advantage to using a RAID-0 device for swap partitions.

bunnadik 01-12-2005 04:19 AM

>> My two partitions are named hda1 and hda6. I know that hda1-4 are 'primary', so what happened to hda5?

Usually I make a small hda1 to hold /boot, a hda5 (the first extended partition) for swap and hda6 for / .
Perhaps something similar has happened to you.
If you run 'cfdisk /dev/hda' you can probably get more info about your setup.
'grep swap /etc/fstab' shows if you if the system automounts any swap partition and 'swapon -s' can tell you more.

- Peder


All times are GMT -5. The time now is 12:39 PM.