LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu by default to mem test mode !? (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-by-default-to-mem-test-mode-914943/)

roopakl 11-22-2011 12:46 PM

Ubuntu by default to mem test mode !?
 
Hi..everybody,
I am working as Linux admin and since I am basically from RedHat knowledge, I don't have much experience in Debian based O/S. The user says I don't know by default it is going to memory test mode. So I need your help to stop memory test mode. I checked /boot/grub/grub.cfg and found difficulties in commenting out the entries for memory test mode. So it would be appreciated if anybody suggest me with name or line number which I should comment out to disable this.

camorri 11-22-2011 01:18 PM

Probably the best place to start is in a Grub2 tutorial. Grub2 is different from grub.

Have a look here, it will point you in the right direction.

-->http://www.linuxquestions.org/linux/...2_introduction

roopakl 11-22-2011 09:06 PM

Thanks for your kind reply.
Quote:

sudo update-grub
sudo grub-mkconfig
First of all the system is not able to boot and by default it is going to mem test mode whenever it boots. I thought grub may be corrupted and used ubuntu 11.04 rescue CD trouble shoot and found there are many partitions including /boot and / as separate partitions. I mounted / partition and ran
"grub-install --root-directory=/mnt /dev/sda", but the installation didn't finish and saying to do with grub-setup command. I did not do anything with "grub-setup" command and rebooted the machine.
I have some doubts
1) In which partition I should install grub when /boot and / are as separate partitions.
2) If I want run sudo update-grub and sudo grub-mkconfig from the live rescue CD, should I first run chroot /mount_point command? if yes, to which(/boot or /) partition, should I do this?
3) Or can I simply copy-paste the entries which are provided in this link and changing the partitions for only "set root" and "linux" will works for me?


Quote:

Originally Posted by camorri (Post 4530856)
Probably the best place to start is in a Grub2 tutorial. Grub2 is different from grub.

Have a look here, it will point you in the right direction.

-->http://www.linuxquestions.org/linux/...2_introduction


yancek 11-22-2011 10:02 PM

If you have a separate /boot partition the command you used won't work. Take a look at the link below, Section 12.1.2. You would mount whatever partition is your /boot partition.

https://help.ubuntu.com/community/Gr...y_LiveCD_Files

Quote:

Or can I simply copy-paste the entries which are provided in this link and changing the partitions for only "set root" and "linux" will works for me?
That could work if you change the partition and uuid numbers to what is appropriate on your system.
If the problem is that you are booting by default to memtest, you just need to change the default number at the top of the grub.cfg file to whatever is the correct entry. You should actually change the default entry at the top of the /etc/default/grub file.
You haven't posted any partition information so no more specific suggestions can be given.

roopakl 11-23-2011 03:53 AM

1 Attachment(s)
Hi..Thanks for the reply.
Please see the attachment and help me in fixing up this mem test problem.


Quote:

You haven't posted any partition information so no more specific suggestions can be given.

yancek 11-23-2011 08:35 AM

Actually, the problem isn't in the commenting out. You don't have any entries for the Debian system in your grub.cfg file. All you have are the memtest entries. If you look at the grub.cfg file and find the section below you will see no entries. Your menuentries should be between these BEGIN and END lines.

Quote:

### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###
Go to the link I posted above, Section 12.1.4 describing Chroot method and follow the steps in regard to installing with boot partition. You need to get into the Debian system and update-grub to get an entry for Debian.


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