Thread: Error: can not find file. Grub rescue>
i installed ubuntu 11.04 via wubi installer month ago (with vista). it's been working fine, today copying file flash drive , froze up. @ first progress bar, unity bar , desktop, , mouse. turned off on again find when chose ubuntu startup menu got following error (could still boot vista):
mount: mounting /dev/disk/by-uuid/a3c31122-6794-4fa6-a039-91d49dadfa8a on /root
failed: invalid argument
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /dev on /root/dev failed: no such file or directory
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /proc on /root/proc failed: no such file or directory
target filesystem doesn't have /sbin/init.
no init found. try passing init = bootarg.
busybox v1.13.3 (ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)
enter 'help' lit of built in commands.
(initramfs)
there numerous online posts describing error, , no definite answers. luckily had made "livecd" on usb drive.
output of sudo fdisk -l:
disk /dev/sda: 60.0 gb, 60011642880 bytes
255 heads, 63 sectors/track, 7296 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: **********
device boot start end blocks id system
/dev/sda1 * 1 7296 58602496 7 hpfs/ntfs
warning: gpt (guid partition table) detected on '/dev/sdb'! util fdisk doesn't support gpt. use gnu parted.
disk /dev/sdb: 4047 mb, 4047502848 bytes
4 heads, 32 sectors/track, 61759 cylinders
units = cylinders of 128 * 512 = 65536 bytes
sector size (logical/physical): 512 bytes / 512 bytes
i/o size (minimum/optimal): 512 bytes / 512 bytes
disk identifier: 0x00000000
device boot start end blocks id system
/dev/sdb1 * 1 61760 3952623+ b w95 fat32
(i assume warning , stuff /dev/sdb usb drive booted from)
can see, shows 1 partition, /dev/sda1. following advice of couple different forum posts, tried sudo mount /dev/sda1 /mnt, followed sudo grub-install --root-directory=/mnt/ /dev/sda and sudo update-grub.
there kind of error, can't remember...
now when turn on laptop goes through dell loading screen, gives me error (before boot menu, can't vista):
error: can't find file
grub rescue>
(grub rescue> kind of prompt, not sure though)
anyway, can't ubuntu or vista. can boot usb drive.
i'd not loose data. have idea should do?
you want avoid installing grub if using wubi. wubi boots via windows boot manager, , windows requires windows style bootloader boot.
check out wubi megathread problem #1, solution #1 or #2 vista booting again.
before - vista booting not wubi. fix wubi - seems you'll need fsck root.disk. boot live usb again, then:
that it.code:sudo mount /dev/sda1 /mnt sudo fsck /mnt/ubuntu/disks/root.disk sudo umount /mnt # reboot , try boot wubi ubuntu again sudo reboot
avoid hard power-offs on ubuntu. if seems it's hanging - isn't , can corrupt root.disk easily. in cases, windows remove - if file looks corrupted under ntfs. can lose on it.
instead, first try shut down safely alt+sysrq r-e-i-s-u-b (use prntscr if no sysrq)
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Error: can not find file. Grub rescue>
Ubuntu
Comments
Post a Comment