Home > blank0n, docs, edufiesta, GNU/Linux, Grub, tips, ubuntu > Memperbaiki Grub di Blankon maupun Ubuntu

Memperbaiki Grub di Blankon maupun Ubuntu


Wkeekek … baru sekitar 1 hari aja mo posting ttg elearning gak mod … Lebih enakan posting ginian. Khan ini juga termasuk dalam elearning loh …. Coba bayangin, seandainya untuk mengatasi grub yang error aja mesti ketemu sama dosen di kelas. Dan ketemunya pun mesti hari besok, seandainya sekarang ini adalah malam hari 😆 . khan …. cpe de ……

Ah udah lah, yang penting majuuuuuu teruss .. pantang mundur … :mrgreen:

wew ... nge hot ...

wew ... nge hot ... bgt

woke. Belum lama ini aq install blankon, tapi ada yang aneh sesuatu menimpa pada lappy ku . 😀 .. Seperti biasanya, kejadian-kejadian aneh pasti ada :mrgreen:

Grub error 15
File not Found ...
please enter to continue ....

wakss…. kataku ,,, ….

oke kita liat config dari menu.lst na blankon yg uda ke install. Boot Live CD na … n masuk terminal.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# cat /media/disk/boot/grub/menu.lst
cat: /media/disk/boot/grub/menu.lst: No such file or directory
root@ubuntu:/home/ubuntu#

waks ..
ndak ada .. 😀

oke langsung ke pemecahan:


sda10 = blankon
sda4 = knoppix

/media/disk/ <– letak sda10 setelah mounting di live cd blankon

pemecahan 1:

Saya biasanya menggunakan grub ( /usr/sbin/grub )

grub> find /boot/grub/stage1
(hd0,3)
(hd0,9)


grub> root (hd0,9)


grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
Running "embed /boot/grub/reiserfs_stage1_5 (hd0)"... 19 sectors are embedded
.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+19 p (hd0,9)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

hasil:


ubuntu@ubuntu:~$ ls /media/disk/boot/grub/
default fat_stage1_5 minix_stage1_5 stage2
device.map installed-version reiserfs_stage1_5 xfs_stage1_5
e2fs_stage1_5 jfs_stage1_5 stage1
ubuntu@ubuntu:~$

koq ndak ada menu.lst ??? :mrgreen:

pemecahan 2:

pake grub-install


root@ubuntu:/home/ubuntu# /usr/sbin/grub-install --root-directory=/media/disk/ /dev/sda
Due to a bug in xfs_freeze, the following command might produce a segmentation
fault when /media/disk//boot/grub is not in an XFS filesystem. This error is harmless and
can be ignored.
xfs_freeze: specified file ["/media/disk//boot/grub"] is not on an XFS filesystem
Installation finished. No error reported.
This is the contents of the device map /media/disk//boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.


(fd0) /dev/fd0
(hd0) /dev/sda
root@ubuntu:/home/ubuntu#

hasil:


root@ubuntu:/home/ubuntu# ls /media/disk/boot/grub/
default fat_stage1_5 minix_stage1_5 stage2
device.map installed-version reiserfs_stage1_5 xfs_stage1_5
e2fs_stage1_5 jfs_stage1_5 stage1
root@ubuntu:/home/ubuntu#

setelah saya teliti ternyata panic nya tidak dapat mengenali root=/dev/sda10 . UUID isn’t correct. what is UUID ??? :mrgreen:

pemecahan ketiga:

ide muncul begitu saja, tidak ada referensi dari website / situs manapun. Tapi referensi manual tetap ada, yaitu diantara man grub, grub-install, dan update grub :mrgreen: . okis,,

ketika saya jalankan update-grub hasilnya nampak seperti berikut:


root@ubuntu:/# update-grub
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###

ya buat saja direktori grub di /boot 😀 . tapi apakah tidak salah xixixi. /boot <– ini khan boot dari live cd ;p . terus ?? .. let’s go ..

root@ubuntu:/home/ubuntu# cd /
root@ubuntu:/# ln -s /media/disk/boot/grub /boot/grub
root@ubuntu:/# update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-2.6.24-16-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
root@ubuntu:/#

ok, sudah slesai .. ?? blum xixixi.


error 15 , file not found

UUID na uda bener lum ?? xixixi

ubah parameter root=root=/aufs dengan root=UUID=cf8fd19c-7a5e-4c84-a6e4-5d3ff7cc8a51

lenkgapnya:

title BlankOn 3.0 Lontara, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=cf8fd19c-7a5e-4c84-a6e4-5d3ff7cc8a51 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

dari mna dapet UUID na ?? wekkeke. sy newbie bgt ndak kenal geometry partisi ;p
dari sini:

uuid

uuid

uda deh boot ulang gak dijamin mak nyuss… :mrgreen: resiko kernel panic tanggung sendiri ;p

intina membuat parameter dari root dengan UUID agar dikenali kernel. Just it !!. Tapi jika grub hilang atau ndak ada ya dengan pemecahan 1,2, dan 3 tentunya 😉

referensi:

1. Man grub

2. Man mount

3. Man man

gambar diambil dari sini (bkin hotss … 😆 )

keywords: grub, error, blankon, ubuntu, uuid

Advertisements
  1. T
    August 2, 2008 at 7:31 pm

    your posts are funny, guess i could understand the language !

  2. August 4, 2008 at 1:51 am

    hi T,

    i was problem solving grub error on my blankon (ubuntu based). There are 3 way to fix it.

    1. /usr/sbin/grub
    2. /usr/sbin/grub-install
    3. update-grub

    on third point, i was succesfully restore my MBR on grub.

    good luck 😉

  3. August 5, 2008 at 11:12 am

    kl di slackware, saya install ulang lilo dah..ngga mudeng manualnya..tp lbh fleksibel grub dibanding lilo utk multi boot ktnya ya..cmiiw

  4. August 6, 2008 at 5:34 pm

    yuhu lebih enakan grub. ..

    kalo lilo mesti update terus kalo file /etc/lilo.conf na di ubah ..

    kalo grub ya tinggal ubah aja … update-grub na paling hanya digunain untuk restore MBR or like that lah .. 😉

  5. September 9, 2008 at 3:13 pm

    eh anu… itu yang ngangkat pake baju putih fotonya di perbanyak dong om…
    hihihi

  6. September 9, 2008 at 3:33 pm

    ana anu… tau cewek juga kau den…
    tapi sep dah mbak ‘putih’-nya…

  7. September 10, 2008 at 5:49 pm

    @mas udienz … sampeyan tertrnyata tertarik tuh akhwat juga tah ?? emang bikin gak kukuh tuh akhwat .. wakkwkakakkak …

    @ashadebi puti2 … selembut hati .. :mrgreen:

  8. November 7, 2008 at 5:49 pm

    @deanet mas…. kirim salam ama yang pake kaca mata…. 😀

  9. November 14, 2008 at 8:17 pm

    @pias .. ok . sy salamin .. tp kpn yakh sy bs ketemu ma orgnya :mrgreen: .. smuanya berkactamata 😆

  10. February 26, 2009 at 2:04 am

    heh mas deanet masak kayak gitu di bilang akhwat…!!!tuh kan barang obral,murahan tahu ga??hee2..oiya kyaknya yg dibahas disini pada ga nyambung semua…salam buat mas deanet…

  11. February 26, 2009 at 9:25 am

    wekekke…. biarin 😛 …
    yup.. sante ae …
    ok lam balik dr gw 😆

  1. September 7, 2008 at 10:21 am
  2. September 7, 2008 at 10:25 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s