View Single Post
  #5  
Old 16th June 2011, 14:35
lucho115 lucho115 is offline
Junior Member
 
Join Date: Sep 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Which distribution do you use?

What's in /etc/fstab and /boot/grub/grub.cfg?
Falko thanks for post here, iam using ubuntu 10.04.2 server, and the files:

/etc/fstab
Code:
# /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
/dev/mapper/mysql-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
#UUID=8f67c746-fcb9-4735-a3c3-deb113204ae7 /boot           ext2    defaults        0       2
/dev/md0 /boot           ext2    defaults        0       2
/dev/mapper/mysql-swap_1 none            swap    sw              0       0
/boot/grub/grub.cfg
Code:
#
# 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 raid
insmod mdraid
insmod lvm
insmod ext2
set root='(mysql-root)'
search --no-floppy --fs-uuid --set 20055c28-f960-44bc-80d4-1a0bd714ab5a
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 raid
insmod mdraid
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 6348ca9c-7027-4d2b-9452-05745c0f2acb
set locale_dir=($root)/grub/locale
set lang=es
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, con Linux 2.6.32-32-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod raid
	insmod mdraid
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 6348ca9c-7027-4d2b-9452-05745c0f2acb
	linux	/vmlinuz-2.6.32-32-generic-pae root=/dev/mapper/mysql-root ro   quiet
	initrd	/initrd.img-2.6.32-32-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.32-32-generic-pae (modo recuperaciĆ³n)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod raid
	insmod mdraid
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 6348ca9c-7027-4d2b-9452-05745c0f2acb
	echo	'Cargando Linux 2.6.32-32-generic-pae ...'
	linux	/vmlinuz-2.6.32-32-generic-pae root=/dev/mapper/mysql-root ro single 
	echo	'Cargando el disco RAM inicial...'
	initrd	/initrd.img-2.6.32-32-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.32-28-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod raid
	insmod mdraid
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 6348ca9c-7027-4d2b-9452-05745c0f2acb
	linux	/vmlinuz-2.6.32-28-generic-pae root=/dev/mapper/mysql-root ro   quiet
	initrd	/initrd.img-2.6.32-28-generic-pae
}
menuentry 'Ubuntu, con Linux 2.6.32-28-generic-pae (modo recuperaciĆ³n)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod raid
	insmod mdraid
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 6348ca9c-7027-4d2b-9452-05745c0f2acb
	echo	'Cargando Linux 2.6.32-28-generic-pae ...'
	linux	/vmlinuz-2.6.32-28-generic-pae root=/dev/mapper/mysql-root ro single 
	echo	'Cargando el disco RAM inicial...'
	initrd	/initrd.img-2.6.32-28-generic-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 6348ca9c-7027-4d2b-9452-05745c0f2acb
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root='(md0)'
	search --no-floppy --fs-uuid --set 6348ca9c-7027-4d2b-9452-05745c0f2acb
	linux16	/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 ###
i will wait for help. tks.
Reply With Quote