LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-12-2006, 05:06 AM   #1
svar
Member
 
Registered: Jul 2003
Posts: 352

Rep: Reputation: 30
First Ubuntu try: Stuck on Grub


Ok, I'm new to Ubuntu; this is my first try, though I've used Slack and Suse
for
some 10 years now. I recently had a crash which destroyed the first hard
disk. Luckily I also have 2 more systems on my PC and I backup from each one
to the others. So hda was gone, but I had 2 more systems, one Slack, one Suse.
I could not boot, of course , as MBR was destroyed, so I set the CD-R as
master
and booted from SUSE CDs.
Now I got a new disk, and I want to install Kubuntu.
So I set
/dev/hdb1 ->/boot
/dev/hdb2 ->/root
/dev/hdb3->/home

for Ununtu
(also have /dev/hdc1 ->swap
/dev/hdc2-> /root
/dev/hdc3 /home for Suse

and /dev/hdd1 /root Slack
/dev/hdd2 /home Slack


I tried installing Kubuntu,
first I had problems, which I solved by making / bootable and ext3 instead of
reiser

I did not get any choice what kernel to install (2.6.11-2.6.15), though kubuntu
has them all, and neither did I get a choice for grub vs lilo
so I was asked where to put grub and typed (hd0), and on reboot I got
....
Waiting for device /dev/hdb2 to appear: ok
rootfs major=3 minor=66 devn=834
Mounting root /dev/hdb2
mount: no such device
umount2: Device or resource busy
kernel panic -not synicing: Attempted to kill init!

Can I get this to work without rewiring the hds?
 
Old 06-13-2006, 05:04 AM   #2
MarioT
Member
 
Registered: May 2004
Posts: 52

Rep: Reputation: 15
post your grub.conf
 
Old 06-13-2006, 12:22 PM   #3
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
There is no such file. I mean I logged into one of my other working distros , mounted
mount /dev/hdb2 /mnt/root and searched for grub* in /mnt/root.
Many grub* files, but no grub.conf. I guess Ubuntu did not create one when configuring grub...
What do I do next?

List of grub-files
/lib/grub (directory
/sbin/grub
/usr/share/doc/grub(directory)
/usr/share/man/man8/grub.8.gz
/sbin/grub-floppy
/usr/share/man/man8/grub-floppy.8.gz
/sbin/grub-install
/usr/share/man/man8/grub-install.8.gz
/var/lib/dpkg/info/grub.list
(3 files grub-md5)
/usr/share/doc/memtest86+/examples/grub-menu.lst
/sbin/grub-reboot
/usr/share/man/man8/grub-reboot.8.gz
/sbin-grub-set-default
/sbin/grub-terminfo
/usr/share/man/man8/grub-terminfo.8.gz
/usr/share/vim/vim64/syntax/grub.vim
 
Old 06-13-2006, 12:43 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,712
Blog Entries: 1

Rep: Reputation: 221Reputation: 221Reputation: 221
grub.conf and/or menu.lst are in /boot/grub. Also, what is hda on your system now. When you installed GRUB to (hd0), you installed it on hda. You don't mention an hda after you told us it crashed.
 
Old 06-14-2006, 11:12 AM   #5
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
ok, here we go:
First, ls /boot

abi-2.6.15-23-386 initrd-2.6.11.4-20a-default System.map-2.6.11.4-20a-default
backup_mbr initrd.img-2.6.15-23-386 System.map-2.6.15-23-386
boot lost+found System.map-ide-2.4.22
boot.0340 map vmlinuz
config-2.6.11.4-20a-default memtest86+.bin vmlinuz-2.4.22
config-2.6.15-23-386 message vmlinuz-2.6.11.4-20a-default
grub README.vmlinux-2.6.11.4-20a-default.gz vmlinuz-2.6.15-23-386
initrd symvers-2.6.11.4-20a-i386-default.gz

Second, ls /boot/grub
default e2fs_stage1_5 jfs_stage1_5 minix_stage1_5 stage1 xfs_stage1_5
device.map fat_stage1_5 menu.lst reiserfs_stage1_5 stage2


Third, cat /boot/grub/menu.lst^M
# menu.lst - See: grub(8), info grub, update-grub(8)^M
# grub-install(8), grub-floppy(8),^M
# grub-md5-crypt, /usr/share/doc/grub^M
# and /usr/share/doc/grub-doc/.^M
^M
## default num^M
# Set the default entry to the entry number NUM. Numbering starts from 0, and^M
# the entry number 0 is the default if the command is not used.^M
#^M
# You can specify 'saved' instead of a number. In this case, the default entry^M
# is the entry saved with the command 'savedefault'.^M
# WARNING: If you are using dmraid do not change this entry to 'saved' or your^M
# array will desync and will not let you boot your system.^M
default 0^M
^M
## timeout sec^M
# Set a timeout, in SEC seconds, before automatically booting the default entry^M
# (normally the first entry defined).^M
timeout 10^M
^M
## hiddenmenu^M
# Hides the menu by default (press ESC to see the menu)^M
#hiddenmenu^M
^M
# Pretty colours^M
#color cyan/blue white/blue^M
^M
## password ['--md5'] passwd^M
# If used in the first section of a menu file, disable all interactive editing^M
# control (menu entry editor and command-line) and entries protected by the^M
# command 'lock'^M
# e.g. password topsecret^M
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/^M
# password topsecret^M
^M
#^M
# examples^M
#^M
# title Windows 95/98/NT/2000^M
# root (hd0,0)^M
# makeactive^M
# chainloader +1^M
#^M
# title Linux^M
# root (hd0,1)^M
# kernel /vmlinuz root=/dev/hda2 ro^M
#^M
^M
#^M
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST^M
^M
### BEGIN AUTOMAGIC KERNELS LIST^M
## lines between the AUTOMAGIC KERNELS LIST markers will be modified^M
## by the debian update-grub script except for the default options below^M
^M
## DO NOT UNCOMMENT THEM, Just edit them to your needs^M
^M
## ## Start Default Options ##^M
## default kernel options^M
## default kernel options for automagic boot options^M
## If you want special options for specific kernels use kopt_x_y_z^M
## where x.y.z is kernel version. Minor versions can be omitted.^M
## e.g. kopt=root=/dev/hda1 ro^M
## kopt_2_6_8=root=/dev/hdc1 ro^M
## kopt_2_6_8_2_686=root=/dev/hdc2 ro^M
# kopt=root=/dev/hdb2 ro^M
^M
## default grub root device^M
## e.g. groot=(hd0,0)^M
# groot=(hd0,0)^M
^M
## should update-grub create alternative automagic boot options^M
## e.g. alternative=true^M
## alternative=false^M
# alternative=true^M
^M
## should update-grub lock alternative automagic boot options^M
## e.g. lockalternative=true^M
## lockalternative=false^M
# lockalternative=false^M
^M
## additional options to use with the default boot option, but not with the^M
## alternatives^M
## e.g. defoptions=vga=791 resume=/dev/hda5^M
# defoptions=quiet splash^M
^M
## altoption boot targets option^M

## multiple altoptions lines are allowed^M
## e.g. altoptions=(extra menu suffix) extra boot options^M
## altoptions=(recovery mode) single^M
# altoptions=(recovery mode) single^M
^M
## controls how many kernels should be put into the menu.lst^M
## only counts the first occurence of a kernel, not the^M
## alternative kernel options^M
## e.g. howmany=all^M
## howmany=7^M
# howmany=all^M
^M
## should update-grub create memtest86 boot option^M
## e.g. memtest86=true^M
## memtest86=false^M
# memtest86=true^M
^M
## should update-grub adjust the value of the default booted system^M
## can be true or false^M
# updatedefaultentry=false^M
^M
## ## End Default Options ##^M
^M
title Ubuntu, kernel 2.6.11.4-20a-default Default^M
root (hd0,0)^M
kernel /vmlinuz root=/dev/hdb2 ro quiet splash^M
initrd /initrd^M
savedefault^M
boot^M
^M
title Ubuntu, kernel 2.6.11.4-20a-default Default (recovery mode)^M
root (hd0,0)^M
kernel /vmlinuz root=/dev/hdb2 ro single^M
initrd /initrd^M
boot^M
^M
title Ubuntu, kernel 2.6.15-23-386^M
root (hd0,0)^M
kernel /vmlinuz-2.6.15-23-386 root=/dev/hdb2 ro quiet splash^M
initrd /initrd.img-2.6.15-23-386^M
savedefault^M
boot^M
^M
title Ubuntu, kernel 2.6.15-23-386 (recovery mode)^M
root (hd0,0)^M
kernel /vmlinuz-2.6.15-23-386 root=/dev/hdb2 ro single^M
initrd /initrd.img-2.6.15-23-386^M
boot^M
^M
title Ubuntu, kernel 2.6.11.4-20a-default^M
root (hd0,0)^M
kernel /vmlinuz-2.6.11.4-20a-default root=/dev/hdb2 ro quiet splash^M
initrd /initrd-2.6.11.4-20a-default^M
savedefault^M
boot^M
^M
title Ubuntu, kernel 2.6.11.4-20a-default (recovery mode)^M
root (hd0,0)^M
kernel /vmlinuz-2.6.11.4-20a-default root=/dev/hdb2 ro single^M
initrd /initrd-2.6.11.4-20a-default^M
boot^M
^M
title Ubuntu, kernel 2.4.22^M
root (hd0,0)^M
kernel /vmlinuz-2.4.22 root=/dev/hdb2 ro quiet splash^M
savedefault^M
boot^M
^M
title Ubuntu, kernel 2.4.22 (recovery mode)^M
root (hd0,0)^M
kernel /vmlinuz-2.4.22 root=/dev/hdb2 ro single^M
boot^M
^M
title Ubuntu, memtest86+^M
root (hd0,0)^M
kernel /memtest86+.bin ^M
boot^M
^M
### END DEBIAN AUTOMAGIC KERNELS LIST^M
^M
# This is a divider, added to separate the menu items below from the Debian^M
# ones.^M
title Other operating systems:^M
root^M
^M
^M
# This entry automatically added by the Debian installer for an existing^M
# linux installation on /dev/hdd3.^M
title Slackware Linux (Slackware 9.1.0) (on /dev/hdd3)^M
root (hd2,2)^M
kernel /vmlinuz root=/dev/hdd3 ^M
savedefault^M
boot^M
^M
^M
# This entry automatically added by the Debian installer for an existing^M
# linux installation on /dev/hdd3.^M
title Slackware Linux (Slackware 9.1.0) (on /dev/hdd3)^M
root (hd2,2)^M
kernel /vmlinuz root=/dev/hdd3 ^M
savedefault^M
boot^M

Also, cat /etc/fstab ( this is the SUSE system: /dev/hdb3 is /, /dev/hdc3 is /home, /dev/hdc2 is /var

/dev/hdb2 is / for Ubuntu, /dev/hdb6 is /home for ubuntu


/dev/hdb3 / reiserfs acl,user_xattr 1 1
/dev/hdb1 /boot ext3 acl,user_xattr 1 2
/dev/hdb2 /data1 auto noauto,user 0 0
/dev/hdb6 /data2 auto noauto,user 0 0
/dev/hdd1 /data3 auto noauto,user 0 0
/dev/hdd3 /data4 auto noauto,user 0 0
/dev/hdd4 /data5 auto noauto,user 0 0
/dev/hdc3 /home reiserfs defaults 1 2
/dev/hdc2 /var reiserfs acl,user_xattr 1 2
/dev/hdc1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrom /media/cdrom subfs noauto,user,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvd /media/dvd subfs noauto,user,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,user,fs=floppyfss,procuid,nodev,nosuid,sync 0 0

Last, /dev/hda should be the DVD-ROM:
BTW the device is there:
^M
linux:/home/me/CDRNEW77/COMP # cat /dev/hda^M
^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@TF^Z^A^Ni^C^S^V6.^Di^C^X^C^[!^Di^C^X^C!7^D<96>^@m^G^D^@^@^D^GmS^]^F^@^@^F^]Si^C^V^U^F^U^D^@^@^@^A^@^@^A^NBOMBERMA.RPM;1^@RR^E^A<89>NM"^A^@bombermaze-0.6.6-494.i586.rpmPX$^A$<81>^@^@^@^@<81>$^E^@^@^@^@^@^@^E^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@TF^Z^A^Ni^C^V^U^F ^U^Di^C^X^C^[!^Di^C^X^C!7^D^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<90>^@1^H^D^@^@^ D^H1^^@^@^@^@^i^C^S^T0^F^D^@^@^@^A^@^@^A^NBONNIE_1.RPM;1^@RR^E^A<89>NM^\^A^@bonnie-1.4-339.i586.rpmPX$^A$<81>^@^@^@^@<81>$^M
 
  


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
Stuck at GRUB New2Linux06 Linux - Newbie 3 10-06-2007 02:21 PM
Ubuntu stuck with the same driver crud as debian? Wolvenmoon Ubuntu 11 08-23-2005 02:08 PM
Stuck on Grub linuxnoob360 Linux - Newbie 1 09-01-2004 03:30 PM
Ok, new at this and stuck in grub! some1 Slackware - Installation 6 08-12-2004 06:58 PM
Can't install slackware - stuck in grub> rzavarella Slackware - Installation 14 02-18-2004 05:52 AM


All times are GMT -5. The time now is 07:36 AM.

Main Menu
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