Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit
Thanks. Here it is.
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6d70e729
Device Boot Start End Blocks Id System
/dev/sda1 1 4659 37423386 83 Linux
/dev/sda2 4660 4864 1646662+ 5 Extended
/dev/sda5 4660 4864 1646631 82 Linux swap / Solaris
It looks like you have running ubuntu. If you want to reinstall grub2 in case it's messed up, boot with the ubuntu cd, Try Ubuntu option, and in terminal execute:
sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
That will reinstall it on the MBR of /dev/sda using the mounted /dev/sda1 as root (which is your root partition). Easier then using the /media commands and it gets the same result.
Reboot without the cd and check if anything has changed.
If still not working, report what exactly is the problem because you continued another thread and it's difficult to follow what exactly is your problem.
PS. Note that if ubuntu is the only OS on your computer you will not see grub menu at start. Ubuntu will just start. That's because there is no other OS to select anyway. It should start normally and work.
Last edited by darkod; December 17th, 2009 at 10:43 AM.
Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit
Thanks, Darko.
I've tried re-installing grub. That installed grub, but didn't solve my problem. I've moved my problem to a new thread at http://ubuntuforums.org/showthread.p...70#post8513870 where you can get more detail.
One of things that's annoying in all this is that it takes 30 minutes for ubuntu to boot from the CD, so every time I try a new idea and then reboot, it means another 30 minutes of waiting! Unless, of course, the problem is fixed, but, alas, so far I haven't achieved those dizzying heights.
I am very excited about ubuntu, however. Can't wait to get it going!
Thanks for the help.
Lewis
Hey, This post really saved my night, i have been working on getting back to my ubuntu 9.10 system all day since installing XP on a dual boot. I think I inadvertently installed grub2 when I had grub legacy leftover from my 9.04, anyway this method got me back!!! I love it.
i also have same problem as adonet #18
lets wait for harmanCode:ubuntu@ubuntu:~$ sudo grub-setup -f -d /media/ro910/boot/grub -m /media/ro910/boot/grub/device.map /dev/sdb11 grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea. 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. grub-setup: error: Cannot read `/grub/core.img' correctly ubuntu@ubuntu:~$
Last edited by rahul_bhise; February 28th, 2010 at 08:14 AM.
Try installing GRUB2 to the MBR of a hard disk instead of to a partition boot sector and see if that works.
Ubuntu user since 2004 (Warty Warthog)
Please help. This is getting frustrating.
I have one hard drive and one operating system on that one drive. No dual boot, no raid, no windows, no usb boot. Just 9.10 installed on one 40 gb drive. After trying the various techniques from this forum, I'm now stuck at Grub loading, error, grub rescue prompt. No menu list to choose from or edit (e).
Here is the output of 'sudo fdisk -l'
Tried this (which worked in the past):Code:ubuntu@ubuntu:~$ sudo fdisk -l Disk /dev/sda: 40.0 GB, 40000000000 bytes 255 heads, 63 sectors/track, 4863 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xd0f4738c Device Boot Start End Blocks Id System /dev/sda1 * 1 4677 37567971 83 Linux /dev/sda2 4678 4863 1494045 5 Extended /dev/sda5 4678 4863 1494013+ 82 Linux swap / Solaris ubuntu@ubuntu:~$
now it gives me this when I try that:Code:sudo mount /dev/sda1 /mnt sudo grub-install --root-directory=/mnt/ /dev/sda
Never did that before.cp: not writing through dangling symlink `/mnt//boot/grub/gfxterm.mod'
And when I try and reboot it gets stuck at grub loading, can't find file, grub rescue.
(This started with a spontaneous reboot(don't know why), which of course didn't reboot properly and dumped me at the initramfs prompt)
davesbrain is online now Report Post Edit/Delete Message
The first thing to do would be to run a file system check.
If the file system check is able to be completed with no problems you can try to boot, but if it fails with an error message, make a note of the error.
You can run a file system check by right-clicking on your partition from GParted Partition Editor in your Ubuntu Live CD.
If you like the command line you may like to use this command,
This command will either fix your file system or at least report useful information if it encounters errors which require further investigation.Code:sudo e2fsck -C0 -p -v -f /dev/sdx,y
The command GParted runs is almost the same and it also reports useful info if you click for the drop-down menus in the file system check dialog box GParted.
Ubuntu user since 2004 (Warty Warthog)
It's now 2 AM. When I booted with live cd for internet help, I opened my home directory (not the live cd home) to be clear, and it was EMPTY! Perhaps a noob thing, but all my stuff should have been there. EMPTY! So I thought at that point I might as well just do a clean install from fresh. Install went smoothly, applied all updates. When it was finished a reboot was required...wait for it......INITRAMFS!
I'm beginning to think this is just garbage. Our IBM 8088 downstairs boots up just fine.
Any ways, I do appreciate the help. This is ridiculous.
Boot
Up
My
Box
Bookmarks