LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-14-2010, 04:03 AM   #1
chris319
Member
 
Registered: Jun 2003
Distribution: Linux Mint
Posts: 106

Rep: Reputation: 16
10.04 Boot Problem: 'recordfail'


I upgraded to (not installed) 10.04 and now I get "unknown command 'recordfail'" every time I boot. I did not make any changes to grub. I have to edit the script every boot to delete the command 'recordfail'. Any ideas why I am now getting this error?
 
Old 05-14-2010, 09:44 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by chris319 View Post
I upgraded to (not installed) 10.04 and now I get "unknown command 'recordfail'" every time I boot. I did not make any changes to grub. I have to edit the script every boot to delete the command 'recordfail'. Any ideas why I am now getting this error?
3 Questions:
1. What script are you editing to delete the command recordfail??
2. Did you also upgrade to grub2 from grub-legacy?? The:
"function recordfail {"
is part of grub2 for 10.04. It is in the file /boot/grub/grub.cfg. This is not part of grub-legacy.
3. What version of Ubuntu did you upgrade to 10.04 from??
To know if you are using grub-legacy or grub2 will help in diagnosing this problem.

Last edited by tommcd; 05-14-2010 at 09:48 AM.
 
Old 05-14-2010, 05:20 PM   #3
chris319
Member
 
Registered: Jun 2003
Distribution: Linux Mint
Posts: 106

Original Poster
Rep: Reputation: 16
I upgraded from version 9.10. When offered the option of updating GRUB I selected "no" because I didn't want to risk making my Windows 7 installation unbootable/inaccessible, so I think I'm still on GRUB-legacy. When I boot up I have the option of pressing "e" to edit the script. Once "recordfail" is deleted I then reboot by pressing ctrl-x.
 
Old 05-15-2010, 06:07 AM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by chris319 View Post
I upgraded from version 9.10. When offered the option of updating GRUB I selected "no" because I didn't want to risk making my Windows 7 installation unbootable/inaccessible, so I think I'm still on GRUB-legacy. When I boot up I have the option of pressing "e" to edit the script. Once "recordfail" is deleted I then reboot by pressing ctrl-x.
Are you deleting recordfail from the kernel line in the entry to boot Ubuntu? If this is so, then you can edit your /boot/grub/menu.lst file and just delete recordfail from the kernel line in the entry for booting Ubuntu. This should eliminate the recordfail problem.

If you have still have a /boot/grub/menu.lst file, then you are using grub-legacy. If you have a
/boot/grub/grub.cfg file then you are using grub2.

Last edited by tommcd; 05-15-2010 at 09:08 AM. Reason: clarity
 
Old 05-17-2010, 02:56 AM   #5
chris319
Member
 
Registered: Jun 2003
Distribution: Linux Mint
Posts: 106

Original Poster
Rep: Reputation: 16
There is no boot/grub/menu.lst file but there is a boot/grub/grub.cfg file. So I apparently have grub2 but still get the "recordfail" error.

Last edited by chris319; 05-17-2010 at 03:15 AM.
 
Old 05-17-2010, 06:54 PM   #6
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Edit /etc/default/grub to remove the command, and then run:

Code:
sudo update-grub
It should work then.
 
Old 05-18-2010, 01:12 AM   #7
chris319
Member
 
Registered: Jun 2003
Distribution: Linux Mint
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Edit /etc/default/grub to remove the command
I don't know what I should be removing. The command "recordfail" does not appear in this file.
 
Old 05-18-2010, 10:02 AM   #8
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by chris319 View Post
I don't know what I should be removing. The command "recordfail" does not appear in this file.
See the 5th post in this thread:
http://ubuntuforums.org/archive/inde...t-1282539.html
And see this:
http://ubuntu-install.blogspot.com/2...s-install.html
So edit /etc/grub.d/10_linux, and comment out any lines that mention recordfail. Then run:
Code:
sudo update-grub
NOTE: My /etc/grub.d/10_linux file looks slightly different from those files in the links I posted. I did a clean install of Ubuntu 10.04 though. If you upgraded from 9.10, your /etc/grub.d/10_linux file may still be the same as in the links I posted.
So comment out the recordfail stuff in /etc/grub.d/10_linux, and then run:
Code:
sudo update-grub
and reboot and see if the problem is fixed.

NOTE#2: In the future, save yourself from these problems and always do clean installs of Ubuntu instead of dist-upgrades. I always do clean installs; and I never have problems.
NOTE#3: No installation of Ubuntu is so "highly customized" that a reinstall is utterly impossible!

Last edited by tommcd; 05-18-2010 at 10:07 AM.
 
Old 07-08-2010, 06:38 PM   #9
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Was able to duplicate this bug in 10.10 by formatting my '/' partition as BTRFS (and /boot is Ext2). Luckily, all I do is press <Enter> and the netbook boots.
 
  


Reply



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
Fedora 9x64 AHCI problem - no boot (only CD Rom boot) after install sandaili Fedora 1 06-06-2008 02:33 PM
boot to GUI problem want grub boot to single user mode. hocheetiong Linux - Newbie 1 09-26-2007 06:41 PM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
solaris boot problem boot error loading interpreter(misc/krtld) Johncy_j Solaris / OpenSolaris 5 08-18-2005 01:47 AM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:31 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