[Çözüldü] Grub'ta Ubuntu görünmez oldu

Başlatan kerub, 30 Mayıs 2012 - 13:45:55

« önceki - sonraki »

0 Üyeler ve 3 Ziyaretçi konuyu incelemekte.

kerub

Sabit diskim ikiye bölünmüş durumda. Birinde Ubuntu 12.04 yüklü idi. Diğerine daha sonra Mageia 2 kurdum. Açılışta grub menüsünde Ubuntu görünmüyor. Sadece Mageia görünüyor. Ne yapmalıyım? Teşekkürler...
Saygılarımla, sevgilerimle...

if

Ubuntu canlı medyası üzerinden yeniden grub2 yüklemesi yapın.

kerub

Alıntı yapılan: if - 30 Mayıs 2012 - 13:59:52
Ubuntu canlı medyası üzerinden yeniden grub2 yüklemesi yapın.

Ubuntu 12.04 DVD'si var elimde. Onunla olur mu? Birde nasıl yeniden grub2 yüklemesi yapılıyor? Teşekkürler.
Saygılarımla, sevgilerimle...

heartsmagic

Elindeki DVD olur. Grub için forumda arama yaptığımızda karşımıza ilk çıkan başlık:
http://forum.ubuntu-tr.net/index.php?topic=13415.0

Soru ve sorunlar için önce forumda arama yapabilirsin.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

kerub

boot-repair canlı cd'si ile onardım. Şu an Ubuntu açılıyor. Ancak bu seferde diğer linux dağıtımı açılmaz oldu. Onu (Mageia 2.0) seçince "Kernel panic-not syncing:VFS: unable to mount root" şeklinde bir hata veriyor.
Saygılarımla, sevgilerimle...

heartsmagic

sudo fdisk -l
sudo blkid
cat /boot/grub/grub.cfg
çıktıları lazım şu durumda.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

kerub

#6
ubuntu@ubuntu:~$ sudo fdisk -l
[sudo] password for ubuntu:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005c441

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   488488454   244243203+  83  Linux
/dev/sda2       488493054   976771071   244139009    5  Extended
/dev/sda5       488493056   976771071   244139008   83  Linux]


ubuntu@ubuntu:~$ sudo blkid
/dev/sda1: UUID="39f003cb-326d-4227-a0c3-9a6d3d6571fe" TYPE="ext4"
/dev/sda5: UUID="cde44d9d-ee4f-4aa6-9085-b368789fea4c" TYPE="ext4"


ubuntu@ubuntu:~$ 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
  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='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root cde44d9d-ee4f-4aa6-9085-b368789fea4c
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos5)'
  search --no-floppy --fs-uuid --set=root cde44d9d-ee4f-4aa6-9085-b368789fea4c
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=10
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
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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
menuentry 'Ubuntu, with Linux 3.2.0-25-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root cde44d9d-ee4f-4aa6-9085-b368789fea4c
linux /boot/vmlinuz-3.2.0-25-generic-pae root=UUID=cde44d9d-ee4f-4aa6-9085-b368789fea4c ro   quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-25-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-25-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root cde44d9d-ee4f-4aa6-9085-b368789fea4c
echo 'Loading Linux 3.2.0-25-generic-pae ...'
linux /boot/vmlinuz-3.2.0-25-generic-pae root=UUID=cde44d9d-ee4f-4aa6-9085-b368789fea4c ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-25-generic-pae
}
### 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='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root cde44d9d-ee4f-4aa6-9085-b368789fea4c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root cde44d9d-ee4f-4aa6-9085-b368789fea4c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "linux (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 39f003cb-326d-4227-a0c3-9a6d3d6571fe
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=39f003cb-326d-4227-a0c3-9a6d3d6571fe splash quiet vga=788
initrd (hd0,0)/boot/initrd.img
}
menuentry "linux-nonfb (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 39f003cb-326d-4227-a0c3-9a6d3d6571fe
linux /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=39f003cb-326d-4227-a0c3-9a6d3d6571fe
initrd (hd0,0)/boot/initrd.img
}
menuentry "failsafe (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 39f003cb-326d-4227-a0c3-9a6d3d6571fe
linux /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=39f003cb-326d-4227-a0c3-9a6d3d6571fe failsafe
initrd (hd0,0)/boot/initrd.img
}
### 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 ###
Saygılarımla, sevgilerimle...

if

@kerub, /dev/sda1 Mageia'nın kurulu olduğu kısım görünüyor. sudo mkdir /media/mageia
sudo mount -t ext4 -o defaults /dev/sda1 /media/mageia
ls -la /media/mageia/boot/grub
çıktısını alayım.

kerub

ubuntu@ubuntu:~$ sudo mkdir /media/mageia
[sudo] password for ubuntu:
ubuntu@ubuntu:~$ sudo mount -t ext4 -o defaults /dev/sda1 /media/mageia
ubuntu@ubuntu:~$ ls -la /media/mageia/boot/grub
total 244
drwxr-xr-x 2 root root   4096 May 30 08:59 .
drwxr-xr-x 4 root root   4096 May 30 15:34 ..
-rw-r--r-- 1 root root     15 May 30 08:59 device.map
-rw-r--r-- 1 root root   8680 May 30 08:59 e2fs_stage1_5
-rw-r--r-- 1 root root   7976 May 30 08:59 fat_stage1_5
-rw-r--r-- 1 root root   7224 May 30 08:59 ffs_stage1_5
-rwxr-xr-x 1 root root    115 May 30 08:59 install.sh
-rw-r--r-- 1 root root   8792 May 30 08:59 iso9660_stage1_5
-rw-r--r-- 1 root root   8688 May 30 08:59 jfs_stage1_5
-rw------- 1 root root    538 May 30 08:59 menu.lst
-rw-r--r-- 1 root root   1101 Oca 12  2011 menu.lst.example
-rw-r--r-- 1 root root   7376 May 30 08:59 minix_stage1_5
-rw-r--r-- 1 root root   9764 May 30 08:59 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 May 30 08:59 stage1
-rw-r--r-- 1 root root 115592 May 30 08:59 stage2
-rw-r--r-- 1 root root   7492 May 30 08:59 ufs2_stage1_5
-rw-r--r-- 1 root root   6824 May 30 08:59 vstafs_stage1_5
-rw-r--r-- 1 root root   9632 May 30 08:59 xfs_stage1_5
Saygılarımla, sevgilerimle...

if

@kerub, cat /media/mageia/boot/grub/menu.lst içeriğini alayım.

kerub

ubuntu@ubuntu:~$ sudo cat /media/mageia/boot/grub/menu.lst
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=39f003cb-326d-4227-a0c3-9a6d3d6571fe  splash quiet vga=788
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=39f003cb-326d-4227-a0c3-9a6d3d6571fe
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=39f003cb-326d-4227-a0c3-9a6d3d6571fe  failsafe
initrd (hd0,0)/boot/initrd.img



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 30 Mayıs 2012 - 18:27:31

@if: Kernel panic uyarısından önce bir de "vga=788 is deprecated" diye uyarı veriyordu.
Saygılarımla, sevgilerimle...

if

initrd (hd0,0)/boot/initrd.img satırını gksu gedit /media/mageia/boot/grub/menu.lst ile açıp initrd /boot/initrd.img şeklinde düzenleyin. Sonra sudo umount /dev/sda1
sudo update-grub2

kerub

#12
ubuntu@ubuntu:~$ sudo update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-25-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-25-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
Found Mageia 2 (2) on /dev/sda1
done


dedi. Bir deneyeyim. Döneceğim. Teşekkürler.


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 30 Mayıs 2012 - 18:36:13

@if: Oldu. Teşekkürler. Şu an Mageia'dan yazıyorum. Tekrar teşekkürler...
Saygılarımla, sevgilerimle...