How to reboot Centos 6

General support questions
Post Reply
nancyj
Posts: 2
Joined: 2018/01/23 15:17:29

How to reboot Centos 6

Post by nancyj » 2018/01/23 15:49:40

Hi,
I am very new to VM and using Centos. Yesterday I successfully installed Centos6 on a Windows 10 host, and was able to access the screen. But after I had powered off the machine and tried to start it later, this is what I got:
/dev/sda1 contains a file system with errors, check forced. Extended attribute block 524811 has reference count 39, should be 35. UNEXPECTED CONSISTENCY: RUN fsck MANUALLY. (i.e. without -a or -p options)
[FAILED]
*** An error occurred during the file system check dropping you to a shell: the system will reboot when you leave the shell. Run 'setenforce 1' to reenable. Give root password for maintenance (or type Control D to continue).

At this point, none of this means much to me, and I don't know what to do next. I'm using this to take an online course in command language, but that will be impossible unless I can have some understanding of the problem and what to do about it. The course forum does not assist with these technical problems! Thanks!

Nancyj

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: How to reboot Centos 6

Post by avij » 2018/01/23 15:54:39

Enter the root password and you should then end up to a command shell (#). From there, run fsck /dev/sda1 and answer y if fsck wants to fix something. When fsck is done, reboot will reboot the system.

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Re: How to reboot Centos 6

Post by Whoever » 2018/01/24 06:30:25

The next question is: why did the filesystem get corrupted? How did you shut it down?

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: How to reboot Centos 6

Post by lightman47 » 2018/01/24 14:11:30

1. It got corrupted by being powered off while it was writing files

2. shutdown -h now (as root) will peacefully shut it down

nancyj
Posts: 2
Joined: 2018/01/23 15:17:29

Re: How to reboot Centos 6

Post by nancyj » 2018/01/25 19:55:47

Hello,

Thank you all for answering me. It probably did get corrupted from being powered off with the shutdown button, which I will not do again. I actually found someone on my campus to get me started again by getting another copy of Centos 6 into my VM, figuring out the password, and helping me transfer data files into it. So far everything is working okay. Thanks again for your input!

Nancy

Post Reply