[plug] Disk partitions and Swap file

Jason Nicholls jason at mindsocket.com.au
Mon Dec 24 07:45:13 WST 2001


G'day,

On Sun, Dec 23, 2001 at 11:11:34PM +0800, Robert Andrews wrote:
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1         3     24066   83  Linux
> /dev/hda2             4      1027   8225280    5  Extended
> /dev/hda5             4      1018   8152956   83  Linux
> /dev/hda6          1019      1027     72261   82  Linux swap

> Now my question is do i need to modify the fstab file to include
> /dev/hda2 and /dev/hda6

There is an entry for hda6 (swap partition), i've repeated it below:
> /dev/hda6             swap                swap    defaults

As for hda2 it's not a partition that you'd mount. With IDE disks you can have
up to 4 primary partitions, if you want more than that you must make one of
them type 'extended'. Then you can create a large number of partitions
*within* the extended partition. In this case both hda5 and hda6 are inside
the extended partition.

It's typical to only use 2 of the primary paritions, one for a /boot (or
a DOS/win partition) and the other as extended.


> if so could somebody include an example of what the fstab should look like
> given the above information.

It's fine how it is. 


Later,

Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls    icq: 11745841    email: <jason at mindsocket.com.au>
Proprietor                        mobile: 0417 410 811
Mind Socket [web services]          http://www.mindsocket.com.au/
--------------------------------------------------------------------



More information about the plug mailing list