LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-12-2005, 02:27 AM   #1
Hampster
Member
 
Registered: May 2003
Location: Washington (the State)
Distribution: Ubuntu 8
Posts: 50

Rep: Reputation: 15
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
 
Old 01-12-2005, 03:40 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
/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.
 
Old 01-12-2005, 04:19 AM   #3
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
>> 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
 
  


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
two questions: partitioning and Wifi desmoscolex Linux - Newbie 3 11-28-2004 04:44 PM
MandrakeMove Partitioning Questions Ciaran McCarthy Linux - Software 0 07-09-2004 05:01 PM
mdk 9.1 partitioning questions KernelPayne Linux - General 5 10-05-2003 01:47 PM
partitioning is necessary/okay, but I have a few questions beginnerx Linux - Newbie 2 09-26-2003 06:11 PM
REALLY newbie partitioning questions G011um Linux - Software 2 03-14-2002 10:54 PM

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

All times are GMT -5. The time now is 08:43 PM.

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