UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
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.
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?
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.
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.
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
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.