[LBo] Re: Swap partiton on kubuntu 6.10
Eric Archer
ericarcher at aol.com
Fri Nov 3 05:35:52 CET 2006
Anita Lewis wrote:
>
> Notice in /etc/fstab that it has UUID=... for each of the partitions.
> This nomenclature for partion identification is supposed to be superior
> to the /dev/hda1 type of nomenclature that we are used to. I found a
> notation about this in 'man fstab'. For some reason, this naming did
> not work for my swap either. I didn't use the GUI with the colored
> buttons, but I found after a while of very poor performance, that I had
> no swap.
Is there a way to check to see if your 'swap is on' (gui and cli)in
other distros, like Suse 10.1? I see the swap in my /etc/fstab but not
when I df -h.
like this:
linux-28:/ # cat /etc/fstab
/dev/sda7 / ext3 acl,user_xattr
1 1
/dev/sda6 /home ext3 acl,user_xattr
1 2
/dev/sda1 /windows/C ntfs
ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 swap swap defaults
0 0
proc /proc proc defaults
0 0
sysfs /sys sysfs noauto
0 0
debugfs /sys/kernel/debug debugfs noauto
0 0
usbfs /proc/bus/usb usbfs noauto
0 0
devpts /dev/pts devpts mode=0620,gid=5
0 0
linux-28:/ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 127G 3.8G 116G 4% /
udev 505M 144K 505M 1% /dev
/dev/sda6 46G 239M 43G 1% /home
/dev/sda1 56G 38G 18G 68% /windows/C
linux-28:/ #
>
> I edited /etc/fstab and changed the UUID=... thing to the usual. For
> example, your swap line would be:
>
> # /dev/hda5
> /dev/hda5 none swap sw 0 0
>
> The line with "# /dev/hda5" above it is a comment.
> The problem that could happen is that upon an upgrade of some program
> relating to the filesystem, this might be written back to the old format
> again. I found this happening with /boot/grub/menu.lst which also gave
> me trouble in that the system would not boot. It seemed to be a problem
> for some partitions and not others, but most notable problems for me
> were in the swap line and in the 'menu.lst' file for grub. I thought
> they had taken this out of the install process, but it seems that they
> did not.
>
" It seemed to be a problem
> for some partitions and not others, but most notable problems for me
> were in the swap line and in the 'menu.lst' file for grub."
I may be having a senior moment and Steve there are no stupid questions
but, I don't understand what you're saying here. Is there something in
the menu.lst that has to do with swap?
> If you edit /etc/fstab, make a backup of the file first and be sure not
> to make a blank line at the end of it. That means do not hit Return at
> the end of the last line. Be sure that each line is only on one line.
> Your editor may wrap, and that is ok, but make sure that there is not a
> Return before the end of the line if it is long.
>
> Anita
>
>
>
More information about the QnA
mailing list