[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: swap partition question?

>     * From: ISHWAR RATTAN <rattan@cps.cmich.edu>
>I have a 1Gb primary swap partition (/dev/sda1)
>and fdisk -l shows that.

fdisk read the partition table from the disk, but the kernel data can be
seen in /proc/partitions (it is read at boot time)

> # swapon /dev/sda1
>says that ..:/dev/sda1: is invalid argument.

what about

file -s /dev/sda1


If "grep sda1 /proc/partitions" shows the expected result, try
mkswap /dev/sda1
swapon /dev/sda1

Reply to: