Results 1 to 10 of 13
I have just installed FC6, everything seems to work perfectly. Even though, I still have problems. Fisrt At boot time, there is an error: swap partition (which is shared between ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-14-2006 #1
How to make my SWAP partiton work on FC6?
At boot time, there is an error: swap partition (which is shared between other Distros) can not be enable, here is result of free command
total used free shared buffers cached
Mem: 498204 434844 63360 0 8356 150412
-/+ buffers/cache: 276076 222128
Swap: 0 0 0
My swap partition is 490 Mb, I have tried the command mkswap and swapon to solve the problem but here are the results:
bash: mkswap: command not found
bash: swapon: command not found
Here is content of my fstab:
LABEL=/1 / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=SWAP-hda6 swap swap defaults 0 0
I also want to mount other partitions at boot time by adding the following lines to the fstab file
/dev/hda8 /media/hda8 reiserfs defaults 0 2
/dev/hda9 /media/hda9 ext3 defaults 0 2
/dev/hda10 /media/hda10 ext3 defaults 0 2
/dev/hda1 /media/hda1 ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda7 /media/hda7 vfat users,gid=users,umask=0002,utf8=true 0 0
When i restarted my box, it crashed and the only thing i have to do is press the power button to turn the box off . After i remove all the added lines, the system is work fine but the swap partition does not
Please help me to solve the problems, thank you in advance.
- 12-14-2006 #2
you must be 'root' to execute swapon or mkswap commands.
Fedora assigns Label to SWAP partition but if you installed another distro and formatted SWAP space during installation, Label name is gone now.
remove 'Label' in fstab file
/dev/<swap-partition> swap swap defaults 0 0
- 12-14-2006 #3
Thank you so much, devils_casperOriginally Posted by devils_casper
[root@localhost hdm]# mkswap /dev/hda6 bash: mkswap: command not found
Thank you very much
- 12-14-2006 #4
i am in Kubuntu box right now and i have to check in Fedora box. i'll post back soon.
did you try changing 'swap' line in fstab file?
- 12-14-2006 #5
I try it now! if it works i'll inform you. .
- 12-14-2006 #6
Poor me! , I did the same way as you told me
/dev/hda6 swap swap defaults 0 0
Here is the error message:
Enabling /etc/fstab swaps---------------------------[FAILSE]
[root@localhost hdm]# free total used free shared buffers cached Mem: 498204 491344 6860 0 15096 286392 -/+ buffers/cache: 189856 308348 Swap: 0 0 0
- 12-14-2006 #7
log in as root or execute 'su -' as normal user and type 'swa' in terminal. hit TAB key 2-3 times. does it show 'swapon' in the list of available commands?
- 12-14-2006 #8Originally Posted by devils_casper
I also have tried other regular command like ifconfig and here is the result
[root@localhost hdm]# ifconfig bash: ifconfig: command not found
Thank you for you time and your help.
- 12-14-2006 #9I am running XFCE Desktop Environment, Is this the reason why those commands do not include in my box? If yes, do you have any solution?
prefix '/sbin' before these commands.
/sbin/mkswap /dev/hda6 /sbin/swapon -a
- 12-14-2006 #10
Thank you very much devils_casper! , you are very kind and helpfull! I found where those commands are, they are in /sbin! and now i can make swap partition active.
Here is the output
[root@localhost hdm]# echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/hdm/bin
Once again, i would like to thank you for all of the help.