PDA

View Full Version : [xubuntu] Xubuntu grub problem



shasko
December 18th, 2010, 10:39 PM
Hi I have freshly installed Xubuntu on my HP compaq nx9010 laptop and grub doesn't boot system. Only minimal BASH-like line scripting is supported. How can I fix it? Thanks for help

wilee-nilee
December 18th, 2010, 10:48 PM
So from a booted live Ubuntu cd or thumbdrive lets see the bootscript read out; in my signature just click on it and follow the instructions. Come back to the thread and click on the # in the reply panel this makes code tags paste all the text in between.

shasko
December 18th, 2010, 10:59 PM
Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for /boot/grub.
=> Syslinux is installed in the MBR of /dev/sdb

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Fat32
Boot sector info: According to the info in the boot sector, sdb1 starts
at sector 0. But according to the info from fdisk,
sdb1 starts at sector 62.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 2,048 619,509,759 619,507,712 83 Linux
/dev/sda2 619,511,806 625,141,759 5,629,954 5 Extended
/dev/sda5 619,511,808 625,141,759 5,629,952 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 4002 MB, 4002910208 bytes
124 heads, 62 sectors/track, 1016 cylinders, total 7818184 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 * 62 7,811,007 7,810,946 c W95 FAT32 (LBA)


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda: PTTYPE="dos"
/dev/sda1 d5631b44-19a5-4519-beac-20b7f60b01b7 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 684f9553-206a-4f40-8f0a-3d9ce2579454 swap
/dev/sdb: PTTYPE="dos"
/dev/sdb1 4315-D2D2 vfat

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda1 /mnt ext4 (rw)
/dev /mnt/dev none (rw,bind)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d5631b44-19a5-4519-beac-20b7f60b01b7
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d5631b44-19a5-4519-beac-20b7f60b01b7
set locale_dir=($root)/boot/grub/locale
set lang=sk
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d5631b44-19a5-4519-beac-20b7f60b01b7
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d5631b44-19a5-4519-beac-20b7f60b01b7 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d5631b44-19a5-4519-beac-20b7f60b01b7
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=d5631b44-19a5-4519-beac-20b7f60b01b7 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d5631b44-19a5-4519-beac-20b7f60b01b7
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d5631b44-19a5-4519-beac-20b7f60b01b7
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=d5631b44-19a5-4519-beac-20b7f60b01b7 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=684f9553-206a-4f40-8f0a-3d9ce2579454 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

=================== sda1: Location of files loaded by Grub: ===================


124.7GB: boot/grub/core.img
236.3GB: boot/grub/grub.cfg
124.7GB: boot/initrd.img-2.6.32-21-generic
124.6GB: boot/vmlinuz-2.6.32-21-generic
124.7GB: initrd.img
124.6GB: vmlinuz

wilee-nilee
December 18th, 2010, 11:05 PM
So if I have this correct you power on and get the grub2 menu and then you end up at a command line login is this correct.

Lets have some more specifics the script basically looks okay to me but it is a long script and it is easy to miss stuff, and not know what every stanza does.

shasko
December 18th, 2010, 11:09 PM
No, I dont get to grub2 menu. I've seen command line after power up.

wilee-nilee
December 18th, 2010, 11:13 PM
No, I dont get to grub2 menu. I've seen command line after power up.

Power on then immediately hold down the shift key and see if the grub menu shows.

Is the install cd a live cd? If so did it boot onto a live desktop for the install.

How much ram does this computer have? That computer came with as little as 256 ram.

shasko
December 18th, 2010, 11:21 PM
Yes, it's live CD and I've installed it from usb. I've holded shift but no grub menu shown. Only command line with grub> at the begin. There's no problem with RAM, because I can boot from live CD without any problems. If I type boot on grub command line it returns error: no loaded kernel. I think that I have to configure grub, but i don't know how.

wilee-nilee
December 18th, 2010, 11:29 PM
Ram does matter but lets just reload the mbr boot the live Xubuntu cd and run these commands and follow the instructions. If you only have 256 ram Xubuntu will not run with any efficiency.

In the live cd's terminal run these two commands.

sudo mount /dev/sda1 /mnt

sudo grub-install --root-directory=/mnt/ /dev/sda

Reboot to the Xubutu install and hopefully Xubuntu will boot if it does; in the installed Xubuntu in its terminal run.

sudo update-grub

shasko
December 18th, 2010, 11:46 PM
No, it doesn't boot after first two commands. I've lost all my patience.

I can install kubuntu 10.04. I've tryed it before and there wasn't any problems except that i don't like KDE. I nedd to know how can I get from kubuntu to ubuntu or xubuntu without any affect of kubuntu.
Can u help me with this?

wilee-nilee
December 18th, 2010, 11:58 PM
No, it doesn't boot after first two commands. I've lost all my patience.

I can install kubuntu 10.04. I've tryed it before and there wasn't any problems except that i don't like KDE. I nedd to know how can I get from kubuntu to ubuntu or xubuntu without any affect of kubuntu.
Can u help me with this?

I don't understand the last question.

shasko
December 19th, 2010, 12:04 AM
the question is how can I change the derivation of ubuntu from kubuntu-desktop to ubuntu-desktop and totally uninstall KDE...

Sorry, I'm not from English speaking country.

wilee-nilee
December 19th, 2010, 12:17 AM
the question is how can I change the derivation of ubuntu from kubuntu-desktop to ubuntu-desktop and totally uninstall KDE...

Sorry, I'm not from English speaking country.

Here is link for removing whole desktops and reverting to another, see playing around on the left side.
http://www.psychocats.net/ubuntu/index

Don't worry about the translation. It was the transition from a system not working to this question with no context of a install. Is this on another computer, or do you only have one cd and can't download a new Kubuntu or another cd?

If you trying to fix the not working Xubuntu by installing another desktop, I suspect this wont work. If your not even getting a grub menu with the shift key held down immediately at power on the install is probably broken, maybe the cd as well. You can do a MD5SUM check on the cd and the ISO.
https://help.ubuntu.com/community/HowToMD5SUM

kansasnoob
December 19th, 2010, 03:03 AM
I somewhat suspect this is a problem with X rather than grub, but we can't be sure. Some patience will be required :)

shasko
December 19th, 2010, 09:57 AM
I've tried to install kubuntu ad then install ubuntu instead of kubuntu from kubuntu terminal. Everything was fine until i've installed actualizations. Then i've had the same problem with grub...

HarcourtMarketing
October 16th, 2011, 02:41 AM
No, it doesn't boot after first two commands. I've lost all my patience.

I can install kubuntu 10.04. I've tryed it before and there wasn't any problems except that i don't like KDE. I nedd to know how can I get from kubuntu to ubuntu or xubuntu without any affect of kubuntu.
Can u help me with this?

I think you can use the package installer to install all the xfce files needed to run that desktop and when you log in, just make it as default.

I run xfce exclusively no matter deb or rpm distro.

But, can/do install Gnome and KDE along side to see 'again' why I use that cute mouse.

Some folks say to install only what you need. Un-install what you don't use. I am sure they are right. Conflicts do occur between desktop environments. Living proof of that. haha

Pretty easy to start out with xubuntu, then add KDE and Gnome fine and dandy based programs and tweaks as you like.

But, XFCE seems pretty much faster and less troublesome. Until, the others including any Win comes out with full blown 3D smell-a-screen, we just want stuff to work, every boot.

http://www.xubuntu.org/