[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RaQ4] Swap File
- Subject: Re: [cobalt-users] [RaQ4] Swap File
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon Mar 31 19:10:00 2003
- Organization: Front Street Networks LLC
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Monday 31 March 2003 21:40, William J.A. Brillinger wrote:
> 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?
Oh! I bet you used partition magic.
Try changing fstab to use hda6 instead of hda5, then swapon -a
You might take a look at /etc/mtab also to see what is mounted.
Gerald
--
http://frontstreetnetworks.com | http://store.raqware.com
Front Street Networks LLC | Phone: 203-785-0699
229 Front Street, Ste #C, New Haven, CT 06513-3203