From the grub prompt trying using the <tab> key to see what choices you have.Quote:
Originally Posted by Rikko
grub> root (<tab>
Tomy
Printable View
From the grub prompt trying using the <tab> key to see what choices you have.Quote:
Originally Posted by Rikko
grub> root (<tab>
Tomy
Thanks Tomy, that got me a little farther.. Now I'm getting a "Partition type is 0x7" (or something very similar - I've since booted back into Windows)... Maybe I'm misunderstanding Grub but I thought it could just be placed into the MBR without needing any partition space.Quote:
Originally Posted by Tomy
Or can I mix up the setup() and root() commands to install Grub into sda1's MBR but store the actual files needed on /hdb1?
Geez, just when you thought you know something about computers... :)
For some reason the Live CD method doesn't work for me. I boot from the Live CD and open a terminal, which tells me "command not found" when I type "grub."Quote:
Originally Posted by Tomy
Anyone know what this is about?
I had that as well - the Live CD doesn't seem to actually have the grub command available..Quote:
Originally Posted by j.hill
Do you already have Ubuntu installed on a physical drive and just want to reinstall Grub? If so, you just need to mount it. My steps:
Drop to a root terminal
mkdir hda1
mount /dev/hda1 hda1 (mounts that device into ./hda1)
cd hda1/sbin
./grub
Replace hda1 with whatever the physical drive that Ubuntu is installed on happens to be.
Worked for me - I'm just stuck trying to actually install Grub on my NTFS partition somewhere.
So if my computer is using the notation "hd0" for this sort of thing, I would typeQuote:
Originally Posted by Rikko
?Code:mkdir hd0
Seems almost too easy.
Will this conflict in any way with the current location of Grub? And, if this works, will I still edit the Grub menu in /boot/grub/menu.lst?
And is there any danger of seriously screwing up my computer with this method? I'm still an abject n00b, so I'm sort of reluctant to try anything risky.
Can't I just reinstall Grub through Synaptic?
at the cd hda5/sbin step I'm getting this error:Quote:
Originally Posted by Rikko
Quote:
bash: cd: hda5/sbin: No such file or directory
I'm stuck on steps 3 and 4. For step 3, the computer gives me the following ambiguous message: does this mean that I've successfully mounted what needed mounting?Quote:
Originally Posted by rpakdel
Then, when I try to chroot, I get this:Code:root@ubuntu:/home/ubuntu # mount -t ext3 /dev/hda/ubuntu
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
This last bit really confuses me. Obviously /bin/bash exists; I'm using a bash shell to give the chroot command.Code:chroot: cannot run command `/bin/bash': No such file or directory
What does it all mean?
you can use use ultimate boot cd to rewrite the mbr it's very easy.
download and burn as an iso at http://ubcd.sourceforge.net/download.html .
:) I wanted to get rid of lilo after I tried xandros. Xandros leaves lilo on your mbr, it worked great, it has a lot of tools to :)
You had specified the wrong mount syntax. It should be
sudo mkdir /mnt/ubuntu
sudo mount -t ext3 /dev/hda[0 .. whatever here ] /mnt/ubuntu
Make sure you know which partition you are trying to mount
sudo fdisk -l
-----
Quote:
Originally Posted by j.hill