Issues after installing Ubuntu Studio Natty 64-bit

Ralf Mardorf ralf.mardorf at alice-dsl.net
Sat May 28 18:21:49 UTC 2011


On Sat, 2011-05-28 at 18:21 +0100, Matt Wheeler wrote:
> On 26 May 2011 22:20, Ralf Mardorf <ralf.mardorf at alice-dsl.net> wrote:
> > Without editing it, the menu here would be unusable. The files that
> > should be edited can't be used to set up a good grub.cfg.
> 
> I made a post about re-ordering things in grub2 a while ago [0]. The
> code snippet might need a little tweaking to work with newer Ubuntus,
> but maybe it will help anyway.
> 
> If the problems you have with your boot menu are caused by specific
> scripts in /etc/grub.d you can disable them individually by removing
> the executable bit.
> 
> If you want to add static parts to your menu you can put them in
> /etc/grub.d/40_custom (if you want custom parts before the
> autogenerated Ubuntu kernels you could copy 40_custom to 07_custom and
> put your stuff in there, but then you'd lose automatically updating
> entries for the default option).
> 
> 
> [0] http://funkyhat.org/2010/01/19/putting-rt-kernels-first-in-grub2/
> 
> -- 
> Matt Wheeler
> m at funkyHat.org

Thank you Matt :)

I wish to be able to configure everything. Individual names, sub-menus,
no splash-videos, screen resolution for the messages etc. and the way I
do it, by editing grub.cfg is the easiest way and perhaps only way too.

The temporarily grub.cfg for my new Ubuntu install isn't ok until now.
It might be that I just need to command out something, e.g. 'set
gfxpayload=$linux_gfx_mode' and 'quiet splash vt.handoff=7', but perhaps
I need to edit much more.

Once I edited update-grub2 to save 'grub.cfg.date_and_time' instead of
'grub.cfg'. But this isn't reliable, regarding to upgrades, it's better
to have a backup of grub.cfg. Btw. it's also annoying that when
installing upgrades, that update-grub2 is launched several times, taking
minutes to detect imaginary Linux installs or existing kernels, that
should be excluded from the menu.

At the moment grub.cfg isn't important. I'm struggling with the
non-working mouse wheel for Maverick and Natty, a very, very slow motion
GNOME when switching between Evolution and Firefox by the GNOME panel
for Natty only, sometimes it's fast, but often very slow. The fact that
the theme isn't stable, sometimes I get the WM only and need to log out
and log in, the fact that having XFCE parallel installed will cause
issues for GNOME, the fact that my old audio card isn't working
regarding to the fact that PA is enabled, ... all in all I tend to
switch the distro, the fact that 32-apps that without issues work on
e.g. 64-bit Suse, even don't work on a 32-bit Ubuntu etc. ... there are
issues, issues, issues that aren't caused by Linux, the hardware, me,
just by Ubuntu.

It's a pity, because excepted of the missing kernel-rt, Ubuntu Studio
audio is very good. Those developers and packagers do very good jobs.

I guess on Monday I'll get my new audio card, so today and tomorrow I'll
set up a MIDI/ audio work station. Regarding to my needs I need to build
Jack from svn, to get no MIDI jitter and other things, so I'm not happy
about needlessly complicated stuff.

FWIW, my temporarily, experimental, unfinished grub.cfg is attached.

Bye,

Ralf


-------------- next part --------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
  set have_grubenv=true
  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
}

#function load_video {
#  insmod vbe
#  insmod vga
#  insmod video_bochs
#  insmod video_cirrus
#}

insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 63e80d5e-c650-4a99-9b7a-c56c2a2d5404
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root 63e80d5e-c650-4a99-9b7a-c56c2a2d5404
set locale_dir=($root)/boot/grub/locale
set lang=en_GB
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 ###
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
submenu "Natty real-time" {
menuentry 'Ubuntu Studio 11.04, Kernel 2.6.33.9-rt31' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set=root 63e80d5e-c650-4a99-9b7a-c56c2a2d5404
	linux	/boot/vmlinuz-2.6.33.9-rt31 root=UUID=63e80d5e-c650-4a99-9b7a-c56c2a2d5404 ro   crashkernel=384M-2G:64M,2G-:128M quiet splash vt.handoff=7
	initrd	/boot/initrd.img-2.6.33.9-rt31
}
menuentry 'Ubuntu Studio 11.04, Kernel 2.6.33.9-rt31 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set=root 63e80d5e-c650-4a99-9b7a-c56c2a2d5404
	echo	'Loading Linux 2.6.33.9-rt31 ...'
	linux	/boot/vmlinuz-2.6.33.9-rt31 root=UUID=63e80d5e-c650-4a99-9b7a-c56c2a2d5404 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.33.9-rt31
}
}
menuentry 'Ubuntu Studio 11.04, Kernel 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set=root 63e80d5e-c650-4a99-9b7a-c56c2a2d5404
	linux	/boot/vmlinuz-2.6.38-8-generic root=UUID=63e80d5e-c650-4a99-9b7a-c56c2a2d5404 ro
	initrd	/boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu Studio 11.04, Kernel 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail	
set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set=root 63e80d5e-c650-4a99-9b7a-c56c2a2d5404
	echo	'Loading Linux 2.6.38-8-generic ...'
	linux	/boot/vmlinuz-2.6.38-8-generic root=UUID=63e80d5e-c650-4a99-9b7a-c56c2a2d5404 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set=root 63e80d5e-c650-4a99-9b7a-c56c2a2d5404
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set=root 63e80d5e-c650-4a99-9b7a-c56c2a2d5404
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Edubuntu 10.10,      Kernel 2.6.33.9-rt31" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos8)'
	search --no-floppy --fs-uuid --set=root ded93dfb-37ae-48cf-a3a3-b613aa5704fd
	linux /boot/vmlinuz-2.6.33.9-rt31 root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd ro
	initrd /boot/initrd.img-2.6.33.9-rt31
}
menuentry "Edubuntu 10.10,      Kernel 2.6.33.9-rt31 (recovery mode)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos8)'
	search --no-floppy --fs-uuid --set=root ded93dfb-37ae-48cf-a3a3-b613aa5704fd
	linux /boot/vmlinuz-2.6.33.9-rt31 root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd ro single
	initrd /boot/initrd.img-2.6.33.9-rt31
}
menuentry "Edubuntu 10.10,      Kernel 2.6.33.7.2-rt30" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos8)'
	search --no-floppy --fs-uuid --set=root ded93dfb-37ae-48cf-a3a3-b613aa5704fd
	linux /boot/vmlinuz-2.6.33.7.2-rt30 root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd ro
	initrd /boot/initrd.img-2.6.33.7.2-rt30
}
menuentry "Edubuntu 10.10,      Kernel 2.6.33.7.2-rt30 (recovery mode)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos8)'
	search --no-floppy --fs-uuid --set=root ded93dfb-37ae-48cf-a3a3-b613aa5704fd
	linux /boot/vmlinuz-2.6.33.7.2-rt30 root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd ro single
	initrd /boot/initrd.img-2.6.33.7.2-rt30
}
menuentry "Edubuntu 10.10,      Kernel 2.6.35-28-generic" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos8)'
	search --no-floppy --fs-uuid --set=root ded93dfb-37ae-48cf-a3a3-b613aa5704fd
	linux /boot/vmlinuz-2.6.35-28-generic root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd ro crashkernel=384M-2G:64M,2G-:128M
	initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry "Edubuntu 10.10,      Kernel 2.6.35-28-generic (recovery mode)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos8)'
	search --no-floppy --fs-uuid --set=root ded93dfb-37ae-48cf-a3a3-b613aa5704fd
	linux /boot/vmlinuz-2.6.35-28-generic root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd ro single
	initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry "openSUSE 11.2,       Kernel 2.6.31.6-rt19" {
	insmod ext2
	set root='(hd0,7)'
	linux /boot/vmlinuz-2.6.31.6-rt19 root=/dev/sda7
	initrd /boot/initrd-2.6.31.6-rt19
}
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


More information about the Ubuntu-Studio-users mailing list