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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-23-2017, 11:52 AM
|
#1
|
Member
Registered: Mar 2017
Posts: 52
Rep: 
|
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 ?
|
|
|
03-23-2017, 12:34 PM
|
#2
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
|
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?
|
|
|
03-23-2017, 12:40 PM
|
#3
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep: 
|
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).
|
|
|
03-23-2017, 12:48 PM
|
#4
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
|
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?
|
|
|
03-23-2017, 12:55 PM
|
#5
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep: 
|
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).
|
|
|
03-23-2017, 01:00 PM
|
#6
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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.
|
|
|
03-23-2017, 01:05 PM
|
#7
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep: 
|
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.
|
|
|
03-23-2017, 01:14 PM
|
#8
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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.
|
|
|
03-23-2017, 01:15 PM
|
#9
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
|
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.
|
|
|
03-23-2017, 01:18 PM
|
#10
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
I have to agree, looking at the bottom of your issues it is realistic to assume the hard drive is failing.
|
|
|
03-23-2017, 01:28 PM
|
#11
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep: 
|
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.
|
|
|
03-23-2017, 01:35 PM
|
#12
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,939
|
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.
|
|
|
03-23-2017, 01:48 PM
|
#13
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
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.
|
|
|
03-23-2017, 03:27 PM
|
#14
|
Member
Registered: Mar 2017
Posts: 52
Original Poster
Rep: 
|
Well thanks everyone,
My next question is. What would be the best way to backup these drives even though they dont boot properly.
|
|
|
All times are GMT -5. The time now is 09:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|