Problem to reboot Oracle Linux 5.6 after adding swap space
Folks,
Hello. I am using Oracle Linux 5.6 on the top of VMPlayer 3 for Oracle Database 11gR2.
Because the Swap Space is 0 KB, I add some swap space at Root user using the following commands:
dd if=/dev/zero of=/swapfile bs=1024 count=2097152
mkswap /swapfile
The swap space is added. Then I add the following line in the file "/etc/fstab":
/swapfile swap swap defaults 0 0
After that, in order to take effect, I reboot Oracle Linux 5.6. But Oracle Linux 5.6 cannot reboot.
During the rebooting process, the error message comes up:
"Checking file system error ....."
Press Ctrl+D to continue.
Repair File System. #
Then I login and open the file "/etc/fstab" and try to delete the line:
"/swapfile swap swap defaults 0 0"
But the file is read only and cannot be modified.
I don't understand what causes the problem.
Do any folk understand how to solve the problem to reboot Oracle Linux 5.6 ?
Thanks.