LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-15-2011, 03:30 PM   #1
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Rep: Reputation: 31
Boot-Up err Msg. after kitten tap danced on keyboard


Our kitten did a lightening tap dance on the computer keyboard and 'hung it up'.

Doing a cold Re-boot, I am presented with:
Code:
mount: mounting /dev on /root/dev  failed: no such file
mount: mounting /sys on /root/sys  failed:   no such file
"    "                "          /proc on /root/proc   "    "                     "

target file system doesn't have /sbin/init

no init found

Try  init=bootarg
###The cursor follows this:
(initramfs) _

##The init=bootarg, didn't help. I am not familiar with the shell command sequences during boot-up. Any Help would be appreciated.
 
Old 03-15-2011, 04:22 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Try booting with a live CD and then chroot to the installed partition and update grub.
 
Old 03-15-2011, 05:45 PM   #3
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
pljvaldez,
I do have an older ver. of a Ubuntu live cd.
My prowess on the command line is not impressive.
Would you care to quickly jot down exactly how I would do this?
Matthew
 
Old 03-15-2011, 06:23 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
https://help.ubuntu.com/community/Gr...0from%20LiveCD

Scroll down to "Method 3 - CHROOT" which is a generic way to fix this from any linux live CD. Basically, what you do is mount your hard drive partitions, then use chroot to make the live CD think it is working from the hard disk files. From there, you just repair grub with update-grub and or grub-install. If you have to go the "grub-install" route, make sure you have the proper partition name mounted or you'll install grub somewhere else...
 
1 members found this post helpful.
Old 03-16-2011, 12:21 PM   #5
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
Thumbs up

Thanks pljvaldez,
That is just the ticket!
Matthew
 
Old 03-16-2011, 12:28 PM   #6
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Glad it helped! The linux command line is powerful and flexible. Even if you don't use it all the time, it's good to become familiar with it.

Please mark this thread as solved (under the "Thread Tools" menu at the top).
 
Old 03-16-2011, 01:19 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
Just curious, your kitten destroyed your bootloader with dancing on the keyboard? You should set your root-password to a undanceable one.
 
Old 03-16-2011, 01:28 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by TobiSGD View Post
Just curious, your kitten destroyed your bootloader with dancing on the keyboard? You should set your root-password to a undanceable one.
It must have been while logged in as root.
 
Old 03-16-2011, 02:05 PM   #9
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
It looked too easy and I shouldn't have shouted victory so quickly.
I am on the live CD (on my other computer), have a root shell and my target partition is sda1, which I mounted as instructed.
When I entered
Code:
grub install --root-directory=/mnt /dev/sda1
I get
Code:
/bin/shell: grub-install: not found
similarly with update-grub.
I can change directory and looked in /sbin but it was not found.
apropos the kitten dance: I was not logged in as root. I don't believe the password is that vulnerable; according to my wife,, the kitten sprung onto the keyboard while she was downloading a google page?
Thanks for all your interest.
Matthew.
 
Old 03-16-2011, 02:51 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,353

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
I would have been *mighty * surprised had that worked. If you're getting messages like that grub has already done it's job.

Have you tried fsck on that filesystem (from the liveCD) ?. I wonder if the moggy managed to find a "magic" key sequence ?.
Pussies always lead to trouble ....
 
1 members found this post helpful.
Old 03-16-2011, 04:18 PM   #11
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
Smile

Thank you everybody!
The problem is solved. So far, no harm done. fsck showed no disk errors. I played around with various options on the root menu of the live cd and somehow managed to get it to re-install grub.
Matthew
 
Old 03-16-2011, 04:21 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
World of wonders: Your kitten destroys your bootloader with a magic dance, and you repair it with playing with a menu.
 
Old 03-17-2011, 08:43 AM   #13
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Just in case, run memtest86.
 
Old 03-17-2011, 01:22 PM   #14
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
TobiSGD, your comments are taken into consideration.

In retrospect, though solved, my experience with this problem and the solution, will prove to be useless for anyone else reading this.
a. I have no idea of just what the problem was and no chance of finding out. What combination of keys the kitten's dance across the keyboard entered, at a time when the Firefox was downloading a file-(is this even relative?) has to remain unknown.
b. every try to cold boot the Ubuntu system up, ended with a boot into the normal boot sequence, at the command line, plus Err. Msg's. I assumed the problem was a faulty or absent grub installer because that was what the Err Msg.s projected. However, in my very limited experience, Err. Msg.s are frequently erroneous. However, I did try to re-install the Grub from the command line but the Err. Msg. stated File unknown, no such file.
c. Going over the procedures outlined on Linux Questions, I came upon this:


" 7. You may find you get a repeated "error: Cannot open /boot/grub/device.map" message. If this happens try rebooting. The UUID method may actually work but throws an error message falsely. Using the label name does not seem to evoke the same repeated error message. "

This is possibly what transpired after fooling around with the "MENU" options, such as fsck, etc. Reboot is a Menu option and I chose it blindly and voila!, up came the ubuntu splash page.
H_TEX MEX_H,
Thanks for the tip, I have done so and all is right.
Matthew
 
Old 03-19-2011, 10:42 PM   #15
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Rep: Reputation: 20
Quote:
Originally Posted by drmjh View Post
TobiSGD, your comments are taken into consideration.

In retrospect, though solved, my experience with this problem and the solution, will prove to be useless for anyone else reading this.....
On the contrary...

To fix problem:

1) get rid of cat...
2) get rid of wife...
3) 1 AND 2...

 
  


Reply

Tags
boot err msg.


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot boot up ubuntu..i get a weird msg(pic of the msg included) please help :( debz480 Linux - Newbie 3 09-12-2010 12:45 AM
Keyboard Problem - Double Tap Apostrophe Jongi Mandriva 1 07-06-2005 05:00 PM
Dual system boot err: rootnoverify(hd1,0),but the hd0 err msg existed befor shut down lilipeng24 Linux - General 3 06-25-2005 12:10 PM
ERR MSG: orinoco_cs device eth1 does not seem to be present, delaying initialization. gt6350a Linux - Hardware 1 11-08-2003 03:33 PM


All times are GMT -5. The time now is 08:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration