Originally Posted by monami
I am trying to install Ubuntu Linux,especially the grub using a Ubuntu Live cd.
There is a problem.I have a sata hdd.Now what wud be the hdd reference I shud give for this.
A) The steps I have followed r:-
1. Boot with any live CD (I've done it with Ubuntu Live DVD)
2. Get a root shell -> Applications / System Tools / Root Terminal
3. Make a folder -> mkdir /mnt/ubuntu
4. Check the Ubuntu partition -> fdisk -l (Mine is /dev/hda4)
This fdisk does not work.
That's because you've got a SATA disk, and possibly a completely different partition structure on your SATA disk. To see what partitions exist:
fdisk -l /dev/sda
5. Mount the root partition of Ubuntu -> mount -t ext3 /dev/sda2 /mnt/ubuntu
My /boot is automatically put on sda2 which is my ubuntu boot partition.
Because I'm not familiar with the document you are quoting, I don't know what the purpose of telling us that your /boot is automatically put on *any* partition has with your question, sorry.
6. Chroot the mounted partition -> chroot /mnt/ubuntu
7. Restore Grub / the initial MBR -> grub-install /dev/hda
( Now here,when I put sda instead of hda, I get an error:-Not found or not a block device!)
What shud I do? Shud I try hd0 instead of hda? or sd0?
It may be a problem with the type of SATA controller you have on your motherboard/addon card. The above fdisk command will help further as it will tell you if your machine recognizes your SATA disk and any partitions that live on it. If it exists, you may end up needing to use grub the command line tool instead of the automated grub-install script.
B) ANOTHER QUESTION:-
4. Type "root (hd0,6)", or whatever your harddisk + boot partition numbers are (my /boot is at /dev/sda7, which translates to hd0,6 for grub).
This is an instruction I got from one of the forums. I guess sda7 translates to hd0,6 because the physical partitions start from 0 and the logical ones from 1.Is this right?
So since my ubuntu /boot is in sda2 is sata drive 1, partition 2, is that written as (hd0,1)?
Pls help. Thks in advance.
That's pretty much correct. Except that physical/logical has nothing to do with, it's because in Linux (and a lot of things like that) the first one is 0. There is a bit of reasoning to it, but it's best to just accept it as is.
The problem I'm having is why you have to do any of this. The new (Dapper) Ubuntu install from the LiveCD is as simple as clicking the button on your desktop to install. Not much else was required other than Password info and things like that, Grub install was "taken care of" during the install process. Are you trying to install an older version?