LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 05-11-2009, 08:34 AM   #16
Igby
LQ Newbie
 
Registered: May 2009
Posts: 13

Rep: Reputation: 0

What does cat /boot/grub/menu.lst show you?
 
Old 05-11-2009, 07:31 PM   #17
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
hi

oops

ok reboot the live cd...to cat...display contents...it will be universal

Code:
su
mkdir /z
mount /dev/sda1 /z
cat /z/boot/grub/menu.lst
now if the mount fails for you....you might need to tell mount the filesystem format...eg ext3..xfs like this
mount -t ext3 /dev/sda1 /z
 
Old 05-11-2009, 07:33 PM   #18
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
duplicate post culled

Last edited by aus9; 05-11-2009 at 07:36 PM.
 
Old 05-12-2009, 07:08 AM   #19
hit1mn
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Code:
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=900a5112-5162-4dea-bee1-19dfed99b54d ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=900a5112-5162-4dea-bee1-19dfed99b54d

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 9.04, kernel 2.6.28-11-server
uuid		900a5112-5162-4dea-bee1-19dfed99b54d
kernel		/boot/vmlinuz-2.6.28-11-server root=UUID=900a5112-5162-4dea-bee1-19dfed99b54d ro quiet splash 
initrd		/boot/initrd.img-2.6.28-11-server
quiet

title		Ubuntu 9.04, kernel 2.6.28-11-server (recovery mode)
uuid		900a5112-5162-4dea-bee1-19dfed99b54d
kernel		/boot/vmlinuz-2.6.28-11-server root=UUID=900a5112-5162-4dea-bee1-19dfed99b54d ro  single
initrd		/boot/initrd.img-2.6.28-11-server

title		Ubuntu 9.04, memtest86+
uuid		900a5112-5162-4dea-bee1-19dfed99b54d
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
ubuntu@ubuntu:~$

thanks
 
Old 05-12-2009, 08:25 PM   #20
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
hi

I am using grub2 at the moment so can not test hidden menu but I have some suggestions

1) using the live cd...mount and edit that menu to put a # in front of hiddenmenu

2) your menu has a separate line for UUID. I have not seen that before.
I could be wrong...but here is a link of a recent ubuntu agreeing with me...its a wee bit hard to read but is very gui.

http://www.howtogeek.com/howto/ubunt...fter-upgrades/

Note there is an overlap or overflow from one line to the next...so the line for kernel is showing as 2 lines ok?

a quick search shows an older menu but illustrates the issue clearer
http://ubuntuforums.org/showthread.php?t=278570

SUGGEST
you boot the live cd...mount the partition as previously discussed.

copy the first menu and rename its title...original

edit the original title...no uuid
and delete the entire line for uuid

edit
3) while in live cd mode...lets check that the UUID is correct

try looking at
/dev/disk/by-uuid

or use a terminal to try

Code:
blkid -s UUID
ls -l /dev/disk/by-uuid/
vol_id -u /dev/sda1
4) even if they are right....add a new entry
change the kernel line where it says root=uuid=string to root=/dev/sda1

and reboot to test if any work

good luck

Last edited by aus9; 05-12-2009 at 08:42 PM.
 
Old 05-14-2009, 11:08 PM   #21
hit1mn
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Angry

[QUOTE1) using the live cd...mount and edit that menu to put a # in front of hiddenmenu
[QUOTE]

I saw this and made the change...nogo


Code:
ubuntu@ubuntu:~$ sudo blkid -s UUID
/dev/sda1: UUID="da66530c-a986-4f37-b436-c0fcc9498855"
/dev/sda5: UUID="ee56eb17-97d3-4969-b456-e9b907d2248e"
/dev/sdb1: UUID="cb262e48-aa6e-4ddd-b7ba-e4c4008ac211"
/dev/sdc1: UUID="3b1f3323-095c-45ec-aba4-afd200f22fad"
ubuntu@ubuntu:~$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2009-05-13 22:02 3b1f3323-095c-45ec-aba4-afd200f22fad -> ../../sdc1
lrwxrwxrwx 1 root root 10 2009-05-13 22:02 cb262e48-aa6e-4ddd-b7ba-e4c4008ac211 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2009-05-13 22:02 da66530c-a986-4f37-b436-c0fcc9498855 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-05-13 22:02 ee56eb17-97d3-4969-b456-e9b907d2248e -> ../../sda5
ubuntu@ubuntu:~$ sudo vol_id -u /dev/sda1
da66530c-a986-4f37-b436-c0fcc9498855
ubuntu@ubuntu:~$ -
I commented out the UUID and changed the kernel line to root=/dev/sda1

reboot, blinking cursor.

Whatever the logic why this isn't working is beyond me. I must say as an ex ms user I have never taken more than a few hrs to recover from a disaster.

I'm about to eat the data I have on here, pull this drive and use one of the other drives just so I can make this thing productive. Getting really frustrated with this now. I have used a few distro's of linux over the last several years with helpless success. I know there is an answer to the fix but it really shouldn't be this complicated.

sorry for the rant..thanks again aus9 for being patient w this

any other suggestions before I pull the disk?

edit
I am fully willing to bring this drive back to OEM config if someone can suggest how I can get there. Writing zeros across the drive didnt solving anything either.

I dont have access to the machine atm but would fdisk /mbr from DOS help?

thanks

Last edited by hit1mn; 05-15-2009 at 11:33 AM.
 
Old 05-15-2009, 11:35 AM   #22
hit1mn
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Can any other gurus shed any light on this issue?

thanks
 
Old 05-17-2009, 04:49 AM   #23
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
sorry been busy

your uuid seem wrong don't they?

your menu was....900a5112-5162-4dea-bee1-19dfed99b54d


your independent test of sda1 was da66530c-a986-4f37-b436-c0fcc9498855

try reboot of live cd...mount as per before...edit so your first line as the bottom uuid and reboot to test.

without physically checking your machine I can offer no quick solutions.

if after this new test...it fails for you....use a live cd to mount the partition and copy any data off it then do a clean install.

BTW I am not a fan of ubuntu as a server.....I think slackware may be more stable
 
  


Reply

Tags
grub, knoppix, live, mbr, sidux, strings, ubuntu


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
Ubuntu 7.10 Dual Boot with XP, ubuntu partition deleted, grub 1.5 error 22 narchy Linux - Newbie 11 02-07-2011 04:54 AM
Ubuntu / CentOS / Grub issue lassik Linux - Newbie 6 04-30-2010 05:56 AM
HP DL585 boot issue with Ubuntu 8.10 Server amd64 Zuludawn Linux - General 0 11-04-2008 02:02 PM
Ubuntu issue / SATA / GRUB 22 carlitoboss Linux - Newbie 24 03-27-2007 07:28 AM


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

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