Deleted Ubuntu Partition, Grub Error 22

Semua mengenai teknik instalasi Ubuntu termasuk teknik instalasi aplikasinya dan migrasi dari Windows.
Post Reply
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Deleted Ubuntu Partition, Grub Error 22

Post by zitux » 09 Jun 2010, 23:23

dual boot ini kasus na :D
sambil googling klo ada yg bisa bantu :grin:
install lucid di sda2 <--jalan gak ada masalah
selanjutnya install ubuntu 8.10 :grin: coba2 :D di sda8 <---jalan gak ada masalah
otomatis grup ngikut yg 8.10
setelah bosan format tuh patisi masuk lucid format delete dah sda8 nya :grin:

restart.........


Grub Error 22

klo ada yg pernah ngalami share sini ya
tq


User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Post by ninja » 09 Jun 2010, 23:33

8.10 sama lucid kan beda grubnya bro...
coba install grubnya lucid :)

sambil nyimak


User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Post by thrvers » 09 Jun 2010, 23:36

'
instalnya lewat mana yah?? kn error

coba repair grub (bukan grub2) barangkali aj bisa :D

cmiiw


User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Post by zitux » 09 Jun 2010, 23:47

cara install grub nya lucid bro ninja ?
cara repair grub bor travers ?


User avatar
juupu
Posts: 14
Joined: 30 May 2010, 07:44
Location: jkt-sel
Contact:

Post by juupu » 09 Jun 2010, 23:50

mungkin bisa dengan live CD.

run terminal trus ketik :

Code: Select all

sudo -i
mount /dev/sda2 /mnt
grub-install --root-directory=/mnt/ /dev/sda


User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Post by ninja » 10 Jun 2010, 00:10

thrvers wrote:'
instalnya lewat mana yah?? kn error

coba repair grub (bukan grub2) barangkali aj bisa :D

cmiiw
ngerepairnya gmna bro thrvers? yang 8.10 nya kan udah ke format alias di delete :grin:

coba pake cra bro juupu


CMIIW


User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Post by zitux » 10 Jun 2010, 00:19

Code: Select all

ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# mount /dev/sda2 /mnt
root@ubuntu:~# grub-install --root-directory=/mnt/ /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /mnt//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
(hd1)	/dev/sdb
root@ubuntu:~#
restart
masuk comand line grub
selanjutnya bro juupu ?


User avatar
juupu
Posts: 14
Joined: 30 May 2010, 07:44
Location: jkt-sel
Contact:

Post by juupu » 10 Jun 2010, 00:27

sudah coba restart ?
apakah masih belum bisa masuk ke grub ?

kalo belum bisa coba pake live cd lagi trus cek apakah /dev/sda2 sudah di set active.

contoh:

Code: Select all

stevan@kurogane:~$ sudo fdisk -l
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1127     9052596    7  HPFS/NTFS
/dev/sda2            1128        9729    69095534+   f  W95 Ext'd (LBA)
/dev/sda5            1128        1713     4707013+  83  Linux
/dev/sda6            1714        2234     4184901    7  HPFS/NTFS
/dev/sda7            2235        3509    10241406    b  W95 FAT32
/dev/sda8            3510        8937    43600378+   7  HPFS/NTFS
/dev/sda9            8938        9128     1534176    7  HPFS/NTFS
/dev/sda10  *        9129        9666     4321453+  83  Linux
* = active


User avatar
k4341
Posts: 297
Joined: 23 May 2010, 02:35
Location: Cirebon
Contact:

Post by k4341 » 10 Jun 2010, 00:45

kalau masih belum bisa install grub coba kesini forums/ubbthreads.php/topics/24400/Re_U ... #Post24400


User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Post by zitux » 10 Jun 2010, 00:52

Code: Select all

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b463f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         510     4096543+  82  Linux swap / Solaris
/dev/sda2   *         511        5704    41720805   83  Linux
/dev/sda3            5705       31200   204796620    5  Extended
/dev/sda5            5705        8254    20482843+  83  Linux
/dev/sda6            8255       11441    25599546   83  Linux
/dev/sda7           11442       12078     5116671   83  Linux
/dev/sda8           12079       24826   102398278+  83  Linux

Disk /dev/sdb: 3997 MB, 3997138944 bytes
123 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 7626 * 512 = 3904512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008248f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1023     3900668    c  W95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
     phys=(1023, 122, 62) logical=(1022, 122, 62)
ubuntu@ubuntu:~$ 
seprtinya sda2 sudah aktiv

cara bro kabai sudah saya coba
dari sini


User avatar
juupu
Posts: 14
Joined: 30 May 2010, 07:44
Location: jkt-sel
Contact:

Post by juupu » 10 Jun 2010, 01:05

kalo dari link nya bro k4341 untuk yang grub2 brarti di sini

search yang : METHOD 3 - CHROOT

kayaknya ada yang miss di setting /boot/grub/grub.cfg , mirip kayak punyaku kemarin.

coba aja cara yang di link diatas. Dia bakal nulis grub.cfg baru


User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Post by zitux » 10 Jun 2010, 01:21

coba install grub2
Attachments
Screenshot-1.png
Screenshot-1.png (85.39 KiB) Viewed 1169 times


User avatar
juupu
Posts: 14
Joined: 30 May 2010, 07:44
Location: jkt-sel
Contact:

Post by juupu » 10 Jun 2010, 01:29

lo ? g perlu diinstall bro.
kan udah ada install an grub2 nya di sda2.
tinggal restore aja, tulis ulang di mbr.


User avatar
juupu
Posts: 14
Joined: 30 May 2010, 07:44
Location: jkt-sel
Contact:

Post by juupu » 10 Jun 2010, 01:40

lengkapnya mungkin kayak gni bro:

run live cd, trus jalanin terminal

Code: Select all

sudo mount /dev/sda2 /mnt
sudo mount --bind /dev  /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys  /mnt/sys
sudo chroot /mnt
update-grub
grub-install /dev/sda

sudo grub-install --recheck /dev/sda
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/usr
sudo umount /mnt

reboot
met berjuang bro...ane tunggu kabar baeknya ntar siang.
ngorok dlu....


User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Post by zitux » 10 Jun 2010, 01:52

Code: Select all

ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt
ubuntu@ubuntu:~$ sudo mount --bind /dev  /mnt/dev
ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
ubuntu@ubuntu:~$ sudo mount --bind /sys  /mnt/sys
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found memtest86+ image: /boot/memtest86+.bin
ls: cannot access /casper-rw-backing: No such file or directory
ls: cannot access /casper-rw-backing: No such file or directory
ls: cannot access /casper-rw-backing: No such file or directory
ls: cannot access /casper-rw-backing: No such file or directory
ls: cannot access /casper-rw-backing: No such file or directory
ls: cannot access /casper-rw-backing: No such file or directory
done
root@ubuntu:/# grub-install /dev/sda
Installation finished. No error reported.
root@ubuntu:/# sudo grub-install --recheck /dev/sda
sudo: unable to resolve host ubuntu
Installation finished. No error reported.
root@ubuntu:/# sudo umount /mnt/dev
sudo: unable to resolve host ubuntu
umount: /mnt/dev: not found
root@ubuntu:/# sudo umount /mnt/proc
sudo: unable to resolve host ubuntu
umount: /mnt/proc: not found
root@ubuntu:/# sudo umount /mnt/sys
sudo: unable to resolve host ubuntu
umount: /mnt/sys: not found
root@ubuntu:/# sudo umount /mnt/usr
sudo: unable to resolve host ubuntu
umount: /mnt/usr: not found
root@ubuntu:/# sudo umount /mnt
sudo: unable to resolve host ubuntu
umount: /mnt: not mounted
root@ubuntu:/# 
[size:20pt]soLved[/size]
Dah bisa kembali ke lucid ane :grin:
tanpa harus install ulang :D

terima kasih buat bro jupuu dan kabai :grin:


User avatar
Epul
Posts: 1095
Joined: 20 Feb 2010, 07:51
Location: sumenep madura
Contact:

Post by Epul » 10 Jun 2010, 11:06

wow... nih lebih canggih lagi... ijin ctrl + S gan...


User avatar
metabee
Posts: 11
Joined: 27 May 2010, 06:37

Post by metabee » 10 Jun 2010, 16:58

mampir ke thred ane donk.........forums/ubbthreads.php/topics/25312/help ... #Post25312
Plese help me ( about GRUB error 15)


User avatar
rubikcube
Posts: 130
Joined: 07 Aug 2010, 10:09
Location: Samarinda, Indonesia
Contact:

Post by rubikcube » 23 Aug 2010, 08:58

juupu wrote:mungkin bisa dengan live CD.

run terminal trus ketik :

Code: Select all

sudo -i
mount /dev/sda2 /mnt
grub-install --root-directory=/mnt/ /dev/sda
thanks bro, ubuntu ane kembali lagi :D


User avatar
Gunjackson
Posts: 48
Joined: 16 Sep 2010, 16:28
Location: Pontianak, Indonesia
Contact:

Post by Gunjackson » 12 Jan 2011, 01:32

Mantap Nih . . .

Izin ctrl+D dlu . . .
wkwkwk . . .


User avatar
tutnut
Posts: 483
Joined: 02 Jul 2010, 22:05
Location: denpasar
Contact:

Post by tutnut » 12 Jan 2011, 07:30

mantapp , minta ijin copy


User avatar
akunp2
Posts: 37
Joined: 10 Jan 2011, 10:00
Location: bandung

Post by akunp2 » 16 Jan 2011, 13:04

gan kalo punya ane bgini gan
/usr/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.


User avatar
akunp2
Posts: 37
Joined: 10 Jan 2011, 10:00
Location: bandung

Post by akunp2 » 16 Jan 2011, 14:07

yah ini
semua setelah saya mengikuti metode kedua di situs ini
[spoiler]https://help.ubuntu.com/community/Grub2 ... m%20LiveCD[/spoiler]

akunp2 wrote:gan kalo punya ane bgini gan
/usr/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.


User avatar
akunp2
Posts: 37
Joined: 10 Jan 2011, 10:00
Location: bandung

Post by akunp2 » 16 Jan 2011, 17:22

akunp2 wrote:yah ini
semua setelah saya mengikuti metode kedua di situs ini
[spoiler]https://help.ubuntu.com/community/Grub2 ... m%20LiveCD[/spoiler]

akunp2 wrote:gan kalo punya ane bgini gan
/usr/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.



terima kasih mas aptfast ternyata solusinya begini
grub-install --force --root-directory=/mnt/ /dev/sda
begitu kalo ga salah


User avatar
riyanpermadi30
Posts: 208
Joined: 07 Jul 2010, 16:52
Location: malang
Contact:

Post by riyanpermadi30 » 16 Jan 2011, 20:29

oyi sip aq juga dulu group ilang tp cari goo***gl* ama kayak yg diposting atas bisa aq pakex 10.4


User avatar
akunp2
Posts: 37
Joined: 10 Jan 2011, 10:00
Location: bandung

Post by akunp2 » 17 Jan 2011, 17:38

gan ane dapet masalah lagi gan!!


ane udah pernah install ubuntu lucid lynx di kompi

trus

bapak ane bilang "udah gih bapak ngak ngerti linux , tambahin xp gih !"

ya udah dah di install xp

eh ternyata grub loader ilang


pas baca di forum ini liat komand yang di atas


----^-----
--/-|-\---
-/--|--\--
----|-----
----|-----
----|-----
----|-----
----^-----
--/-|-\---
-/--|--\--
----|-----
----|-----
----|-----
----|-----
----^-----
--/-|-\---
-/--|--\--
----|-----
----|-----
----|-----
----|-----

perintahnya kan gini :

[color:#3366FF]sudo -i
mount /dev/sda2 /mnt [size:17pt][color:#FF0000]---> tentunya Ane sesuain partisi mana yang ada linux nya[/color][/size]
grub-install --root-directory=/mnt/ /dev/sda
[/color]
kalo ane dapet hasilnya begini

ubuntu@ubuntu:~$ [color:#FF0000]sudo fdisk -l[/color]
omitting empty partition (5)

Disk /dev/sda: 160.0 GB, 160041885696 bytes
18 heads, 4 sectors/track, 4341414 cylinders
Units = cylinders of 72 * 512 = 36864 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x44eacaed

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1428223 51416026 7 HPFS/NTFS
/dev/sda2 1428224 2903591 53113213 f W95 Ext'd (LBA)
/dev/sda3 1833865 2903526 38507805 7 HPFS/NTFS
/dev/sda4 2903592 4341409 51761430 7 HPFS/NTFS
/dev/sda5 1428225 1766704 12185271 83 Linux
/dev/sda6 1766705 1833865 2417751 82 Linux swap / Solaris
ubuntu@ubuntu:~$ [color:#3366FF]sudo -i[/color]
root@ubuntu:~# [size:20pt][color:#FF0000]mount /dev/sda5 /mnt[/color][/size]
root@ubuntu:~# [color:#3366FF]grub-install --root-directory=/mnt/ /dev/sda[/color]
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
/usr/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.
nah lo gan??


User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Post by thrvers » 17 Jan 2011, 17:53

'
akunp2 wrote:.........
perintahnya kan gini :
[color:#3366FF]sudo -i
mount /dev/sda2 /mnt
grub-install --root-directory=/mnt/ /dev/sda
[/color]
................

dari fdisk diatas kan sudah ketahuan :D linux di sda5 [/] dan sda6 [swap]

jadi:
$ sudo mount /dev/sda5 /mnt
$ sudo grub-install --root-directory=/mnt /dev/sda


= CMIIW =


User avatar
akunp2
Posts: 37
Joined: 10 Jan 2011, 10:00
Location: bandung

Post by akunp2 » 17 Jan 2011, 17:54

ya mas saya memang install grubnya di /dev/sda5 (liat yang di biru-in dalam quote!)


User avatar
akunp2
Posts: 37
Joined: 10 Jan 2011, 10:00
Location: bandung

Post by akunp2 » 17 Jan 2011, 18:09

menurut cara ke tiga : kan begini

sudo mount /dev/sda2 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
update-grub
grub-install /dev/sda

sudo grub-install --recheck /dev/sda
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/usr
sudo umount /mnt

reboot




kalau saya jalanin sesuai cara ketiga malah muncul begini




ubuntu@ubuntu:~$ sudo fdisk -l
omitting empty partition (5)

Disk /dev/sda: 160.0 GB, 160041885696 bytes
18 heads, 4 sectors/track, 4341414 cylinders
Units = cylinders of 72 * 512 = 36864 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x44eacaed

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1428223 51416026 7 HPFS/NTFS
/dev/sda2 1428224 2903591 53113213 f W95 Ext'd (LBA)
/dev/sda3 1833865 2903526 38507805 7 HPFS/NTFS
/dev/sda4 2903592 4341409 51761430 7 HPFS/NTFS
/dev/sda5 1428225 1766704 12185271 83 Linux
/dev/sda6 1766705 1833865 2417751 82 Linux swap / Solaris
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount --bind /dev/pts /mnt/dev/pts
ubuntu@ubuntu:~$ sudo mount --bind /proc/ /mnt/proc/
ubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/sys/
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# update-grub
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
Generating grub.cfg ...
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
Found linux image: /boot/vmlinuz-2.6.32-27-generic
Found initrd image: /boot/initrd.img-2.6.32-27-generic
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
error: cannot open `/dev/sdb' while attempting to get disk size.
ls: cannot access /media/4E08942508940E59: No such file or directory
ls: cannot access /media/4E08942508940E59: No such file or directory
ls: cannot access /media/4E08942508940E59: No such file or directory
ls: cannot access /media/4E08942508940E59: No such file or directory
ls: cannot access /media/Documents: No such file or directory
ls: cannot access /media/Documents: No such file or directory
ls: cannot access /media/Documents: No such file or directory
ls: cannot access /media/Documents: No such file or directory
ls: cannot access /media/DC2C99B82C998DE0: No such file or directory
ls: cannot access /media/DC2C99B82C998DE0: No such file or directory
ls: cannot access /media/DC2C99B82C998DE0: No such file or directory
ls: cannot access /media/DC2C99B82C998DE0: No such file or directory
done
root@ubuntu:/# ^C
root@ubuntu:/#


User avatar
M3L3R
Posts: 1335
Joined: 18 Jan 2010, 22:40
Location: Jogja
Contact:

Post by M3L3R » 17 Jan 2011, 18:12

coba tekan alt+f2 terus ketikkan :

gksudo gedit /boot/grub/device.map

isinya apa ?


Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests