LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-22-2011, 12:46 PM   #1
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Rep: Reputation: Disabled
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.
 
Old 11-22-2011, 01:18 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,145

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
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
 
1 members found this post helpful.
Old 11-22-2011, 09:06 PM   #3
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Original Poster
Rep: Reputation: Disabled
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 View Post
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
 
Old 11-22-2011, 10:02 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,225

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
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.
 
1 members found this post helpful.
Old 11-23-2011, 03:53 AM   #5
roopakl
Member
 
Registered: Sep 2011
Posts: 95

Original Poster
Rep: Reputation: Disabled
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.
Attached Files
File Type: txt RESULTS.txt (7.4 KB, 8 views)
 
Old 11-23-2011, 08:35 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,225

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
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.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mem sticks on Ubuntu greenknight Linux - Hardware 2 12-01-2010 07:40 AM
emacs: minor mode font-mode-lock not on by default?! hewsonism Linux - Newbie 2 06-10-2010 01:32 PM
test how much mem the operating system has free in C smeezekitty Programming 7 10-18-2009 06:32 PM
iptables test mode walidaly Linux - Security 11 03-07-2007 11:54 PM
Is there any way to run rescue mode in test mode. kadhiravan.r Linux - General 2 07-13-2006 08:11 AM


All times are GMT -5. The time now is 12:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration