Re: Newbie:swap partition not available... On Tue, 14 Feb 2006 09:19:22 -0800, Santo wrote:
> D Herring wrote:
>> olive wrote:
>> > Santo wrote:
>> >> I create a primary partition and three logical partitions which
This would create the following partitions:
/dev/hdb1 Primary Partition
/dev/hdb2 Extended Partition
/dev/hdb5 Logical 1
/dev/hdb6 Logical 2
/dev/hdb7 logical 3
> root@santolix:~# cat /etc/fstab
> /dev/hdb1 / ext3 defaults 1 1
> /dev/hdb5 /usr ext3 defaults 1 2
> /dev/hdb6 /home ext3 defaults 1 2
> .......
>
>
>
This seems to imply that you created 1 Primary and 2 Logical partitions -
not 3 logical partions.
> ....but it appear as hdb2 with the command cfdisk.
> hdb2 is a primary partition.... I guess I have to reinstall and assign
> swap to logical partition ...that should solve the problem...?
>
>
>
> cfdisk... output
>
>
> --------------------------------------------------------------------
> hdb1 Primary Linux ext3
> 1998.75
> hdb2 Primary Linux swap
> 1019.94
> hdb5 Logical Linux ext3
> 5996.23
> hdb6 Logical Linux ext3
> 39999.54
> Pri/Log Free Space
> 31042.21
>
>
>
Ah, so what you did was create 2 primary and 2 logical. This would look
like this:
/dev/hdb1 Primary Partition
/dev/hdb2 Primary Partition
/dev/hdb3 Extended Partition
/dev/hdb5 Logical 1
/dev/hdb6 Logical 2
>fdisk -l ...output
>
>Device Boot Start End Blocks Id System
>/dev/hdb1 1 243 1951866 83 Linux
>/dev/hdb2 244 367 996030 82 Linux swap
>/dev/hdb3 368 5959 44917740 5 Extended
>/dev/hdb5 368 1096 5855661 83 Linux
>/dev/hdb6 1097 5959 39062016 83 Linux
>
Which is what this confirms.
Based on what you have said, the swap line in fstab should be this:
/dev/hda2 swap swap defaults 0 0
Not this:
/dev/hda3 swap swap defaults 0 0
HTH |