Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem to reboot Oracle Linux 5.6 after adding swap space

user8860348Jan 23 2012 — edited Jan 24 2012
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.
This post has been answered by Dude! on Jan 23 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2012
Added on Jan 23 2012
6 comments
1,734 views