Installation of Debian 5/6?

Dominik
Posts: 30
Joined: Wed Jul 21, 2010 6:05 pm

Re: Installation of Debian 5/6?

Post by Dominik »

I think there is no menu.lst anymore. update-grub generates /boot/grub/grub.cfg. This file is similar to the former menu.lst as far as i know.

My grub.cfg

Code: Select all

`--# cat /boot/grub/grub.cfg 
#
# 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
  load_env
fi
set default="2"
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 load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

if terminal_input console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_input
  terminal console
fi
if terminal_output console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_output
  terminal console
fi
set timeout=10
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_915resolution ###
insmod 915resolution
915resolution 49 1280 1024 16
### END /etc/grub.d/01_915resolution ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.34.1' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set e3fb72ae-3b54-4614-a871-ddda5a05e5ba
	echo	'Loading Linux 2.6.34.1 ...'
	linux	/boot/vmlinuz-2.6.34.1 root=/dev/sda2 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.34.1
}
menuentry 'Debian GNU/Linux, with Linux 2.6.34.1 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set e3fb72ae-3b54-4614-a871-ddda5a05e5ba
	echo	'Loading Linux 2.6.34.1 ...'
	linux	/boot/vmlinuz-2.6.34.1 root=/dev/sda2 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.34.1
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set e3fb72ae-3b54-4614-a871-ddda5a05e5ba
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=/dev/sda2 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set e3fb72ae-3b54-4614-a871-ddda5a05e5ba
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=/dev/sda2 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set e3fb72ae-3b54-4614-a871-ddda5a05e5ba
	echo	'Loading Linux 2.6.32 ...'
	linux	/boot/vmlinuz-2.6.32 root=/dev/sda2 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set e3fb72ae-3b54-4614-a871-ddda5a05e5ba
	echo	'Loading Linux 2.6.32 ...'
	linux	/boot/vmlinuz-2.6.32 root=/dev/sda2 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32
}
menuentry 'Debian GNU/Linux, with Linux 2.6.31-34-fitpc2' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set e3fb72ae-3b54-4614-a871-ddda5a05e5ba
	echo	'Loading Linux 2.6.31-34-fitpc2 ...'
	linux	/boot/vmlinuz-2.6.31-34-fitpc2 root=/dev/sda2 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.31-34-fitpc2
}
menuentry 'Debian GNU/Linux, with Linux 2.6.31-34-fitpc2 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos2)'
	search --no-floppy --fs-uuid --set e3fb72ae-3b54-4614-a871-ddda5a05e5ba
	echo	'Loading Linux 2.6.31-34-fitpc2 ...'
	linux	/boot/vmlinuz-2.6.31-34-fitpc2 root=/dev/sda2 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.31-34-fitpc2
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, Linux 2.6.31-34-fitpc2 (on /dev/sda7)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos7)'
	search --no-floppy --fs-uuid --set 1bfb6494-4227-4808-b47d-195632dfd744
	linux /boot/vmlinuz-2.6.31-34-fitpc2 root=UUID=1bfb6494-4227-4808-b47d-195632dfd744 ro
	initrd /boot/initrd.img-2.6.31-34-fitpc2
}
menuentry "Ubuntu, Linux 2.6.31-34-fitpc2 (recovery mode) (on /dev/sda7)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos7)'
	search --no-floppy --fs-uuid --set 1bfb6494-4227-4808-b47d-195632dfd744
	linux /boot/vmlinuz-2.6.31-34-fitpc2 root=UUID=1bfb6494-4227-4808-b47d-195632dfd744 ro single
	initrd /boot/initrd.img-2.6.31-34-fitpc2
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (on /dev/sda8)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos8)'
	search --no-floppy --fs-uuid --set e35eac8d-45fb-4fe3-804b-f7d587b7be5a
	linux /boot/vmlinuz-2.6.32-24-generic root=UUID=e35eac8d-45fb-4fe3-804b-f7d587b7be5a ro quiet splash
	initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (recovery mode) (on /dev/sda8)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos8)'
	search --no-floppy --fs-uuid --set e35eac8d-45fb-4fe3-804b-f7d587b7be5a
	linux /boot/vmlinuz-2.6.32-24-generic root=UUID=e35eac8d-45fb-4fe3-804b-f7d587b7be5a ro single
	initrd /boot/initrd.img-2.6.32-24-generic
}
### 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 ###

My /etc/default/grub (this file is used to build grub.cfg).
I disabled gfx-interface. Maybe that could also been the problem?

Code: Select all

`--# cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=2
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

basti2k
Posts: 7
Joined: Mon Oct 25, 2010 10:17 pm

Re: Installation of Debian 5/6?

Post by basti2k »

Thank you but in the end i didn't even needed it. I installed Grub to /dev/sdb1, because sda was my usb stick. Then Grub startet and I customized it like that.
hd(1,0) -> hd(0,0)

and that part

/boot/vmlinuz-2.6.26-2-686 root=/dev/sdb1 ro

to

/boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro

The problem seems to be the boot order, which is quite messed up when first installing from USB Stick and then booting from the place where the USB Stick should have been.

I did that with e and when Debian finally startet I edited this in the grub configuration from debian itselt. Btw Fit-PC + SSD rocks :D

Smoothly running Debian 5.0.6 on my Fit-PC now, may the uptime be with me :ugeek:

Post Reply

Return to “Other Linux distributions”