LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2017, 11:52 AM   #1
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Rep: Reputation: Disabled
Gentoo wont shutdown because of errors !


Hello Fellow Gentoo fans,

I'm working on a Gentoo server at the moment for work and typed the command shutdown -h now and the machine stays idle and will not power down. Any suggestions ?
 
Old 03-23-2017, 12:34 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
Blog Entries: 13

Rep: Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981
Hi Chrisroot and welcome to LQ.

For this case I think it would be a good idea for you to post a description of your system, as well as what version of Gentoo you have.

Also, please check your system log and see if there are any entries in it related to your shutdown attempt, and if so, please post the relevant logs.

I'm assuming you received no error from that command, correct?
 
Old 03-23-2017, 12:40 PM   #3
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Gentoo wont shutdown because of errors !

Well currently, I rebooted the system and it froze on the start up, it states " Kernal panic- not syncing " VFS: unable to mount root fs on unknown-block (0,0).
 
Old 03-23-2017, 12:48 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
Blog Entries: 13

Rep: Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981
OK, so to be clear, this sounds like a booting problem now. Correct?

If so, are you seeing any prompt at all?

What version of gentoo are you running?
 
Old 03-23-2017, 12:55 PM   #5
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Gentoo wont shutdown because of errors !

Yes, a booting problem at the moment. Nope, I don't see a prompt at the moment. Sorry unsure of the version of Gentoo. All I know is that its from 2003. And this is the last text on the screen " Kernal panic- not syncing " VFS: unable to mount root fs on unknown-block (0,0).
 
Old 03-23-2017, 01:00 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
First, with "kernal panic" I'd suggest you get qualified help. If it was "kernel panic" we could discuss possible solutions.
FYI, Gentoo is rolling distro, if left unattended it will be extremely hard to bring it up to date. About 6 months is the limit, after that it gets difficult.
 
Old 03-23-2017, 01:05 PM   #7
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Its KERNEL panic. It was working last night before i left. I gave it the shutdown command which takes a minute or so to shut down and came back this morning and it never actually shut down.
 
Old 03-23-2017, 01:14 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Code:
unknown-block (0,0)
^^ This indicates kernel is unable to access the hard drive. Was there a hardware change, was the HDD controller replaced? Other possible reason is you have initramfs and it is not loaded.
 
Old 03-23-2017, 01:15 PM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
Blog Entries: 13

Rep: Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981
Sounds like the system is booting, but failing in the kernel.

Perhaps a live boot media will allow you to see the disk, check it for errors, repair any errors possibly found, and see if you can then boot.

For me, that old of a system and that level of problem, I'd get my data off of the disk and rebuild it to use a more current version.

There may be other options that other people can offer.
 
Old 03-23-2017, 01:18 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
I have to agree, looking at the bottom of your issues it is realistic to assume the hard drive is failing.
 
Old 03-23-2017, 01:28 PM   #11
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Is it possible to repair the errors with or without "fsck" without doing further damage? Or can i go through the system set up and clear the error logs? Sorry I am a newbie at this. Currently, my job is to copy files from the system onto a usb drive for my works website that is being updated. I was in the middle of doing this then the system froze.
 
Old 03-23-2017, 01:35 PM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
Blog Entries: 13

Rep: Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981Reputation: 4981
Back up the entire drive and try the fsck.

And note that it is not the fsck which may mess up files, it is instead the state of the disk that fsck has to contend with.

For instance, if the RFS is messed up because some file was stuck open when you forcibly shut it down, and maybe that file is benign and can be recreated or whatever data was in there is OK to have lost, then it may be fine. And in that case, perhaps fsck can repair the file "system", but as part of that it cannot resolve the messed up file. Also, don't burn yourself up about having to forcibly shut it down, it clearly wasn't going to shut down, not much you could've done the next morning.
 
Old 03-23-2017, 01:48 PM   #13
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
I'd boot it from an external media, attempt a read-only mount of your data partition, if successful copy off everything you can before doing fsck.
 
Old 03-23-2017, 03:27 PM   #14
Chrisroot
Member
 
Registered: Mar 2017
Posts: 52

Original Poster
Rep: Reputation: Disabled
Well thanks everyone,

My next question is. What would be the best way to backup these drives even though they dont boot properly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shutdown wont shut down ? JackDinn Linux - Newbie 12 09-16-2015 10:13 AM
[SOLVED] Computer wont shutdown bteeuwen170 Linux - Hardware 8 04-18-2012 08:36 AM
PID wont shutdown ashlyjay Linux - Newbie 6 03-15-2007 02:05 PM
Gentoo hangs on "LILO : Loading Gentoo......" after normal shutdown snichols Linux - Newbie 4 09-27-2006 04:32 PM
my desktop wont shutdown w/ mandrake 8.1 JUDOLIZARD Linux - General 5 02-20-2002 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration