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

Re: [cobalt-users] [RaQ4] Swap File



At 08:43 PM 31/03/03 -0500, you wrote:
> Is it possible to delete old swap and recreate it from the command line,
> the disk space is there waiting. Perhaps I only need to turn it on??
>

What does /etc/fstab say?
try swapon -a if fstab has a swap entry.


[root /root]# cat /etc/fstab
/dev/hda1             /         ext2    defaults                          1 1
/dev/hda5             swap      swap    defaults                          0 0
/dev/hda3             /var      ext2    defaults,nosuid                   2 2
/dev/hda4             /home     ext2    defaults,usrquota,grpquota,grpid  3 3
none                  /proc     proc    defaults                          0 0
none                  /dev/pts  devpts  gid=5,mode=0620                   0 0

[root /root]# swapon -a
swapon: /dev/hda5: Invalid argument


I note on my last backup of this drive, I get this:

[root /root]# cat /etc/fstab
/dev/hda1             /         ext2    defaults                          1 1
/dev/hda6             swap      swap    defaults                          0 0
/dev/hda3             /var      ext2    defaults,nosuid                   2 2
/dev/hda4             /home     ext2    defaults,usrquota,grpquota,grpid  3 3
none                  /proc     proc    defaults                          0 0
none                  /dev/pts  devpts  gid=5,mode=0620                   0 0


I suspect that because I did not reboot in between creating the new swap, it got the wrong hda allocation?

- Bill



---------------------------------
William J.A. Brillinger
Precision Design Co.

E-Mail:   mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net