Re: How do I add a partition to Grub?

From: Andy Fraser (andyfraser31_at_hotmail.com)
Date: 04/27/04


Date: Tue, 27 Apr 2004 12:47:00 +0100

In alt.os.linux, Hartono Nugroho uttered these immortal words:

> My fdisk gives :
>
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 2550 20482843+ 7 HPFS/NTFS
> /dev/hda2 2551 5099 20474842+ f Win95 Ext'd (LBA)
> /dev/hda3 5100 6744 13213462+ 83 Linux
> /dev/hda5 2551 3314 6136798+ 83 Linux
> /dev/hda6 3315 3444 1044193+ 82 Linux swap
> /dev/hda7 3445 5099 13293756 83 Linux
>
> My mandrake bootfile is currently at /dev/hda5 so should we use hd0,4
> which is the fourth partition on hda?

GRUB starts numbering partitions and drives at 0. hda1 is hd0,0, hda2 is
hd0,1, hda3 is hd0,2 and so on. Therefore hd0,4 is the fifth partition on
the first drive or hda5.

-- 
Andy.


Relevant Pages

  • lvm boot partition and grub
    ... i have successfuly switched my system to lvm. ... "normal" partitions on hda and an empty hdb. ... and tmp in the root lvm partition so the other partitions ...
    (Debian-User)
  • Re: tool to resize partitions on cylinder boundaries?
    ... report (dmesg|grep hda) of what it says. ... The problem is that geometry the partition table was built with can differ ... from the geometry hard disk reports. ...
    (Debian-User)
  • FC6->FC7 Kernel Panic
    ... I have two IDE drives both LVM managed except for a small boot partition on the first drive. ... I can boot back to FC6 just fine, but get the kernel panic when I try the FC7 kernel. ... Device Boot Start End #cyls #blocks Id System ...
    (Fedora)
  • change hdb to hda
    ... floppy and carried on with it on hdb. ... Now I want move the drive with suse from hdb to hda, so I can add a second ... PS When googling on instructions for moving the home partition, ...
    (alt.os.linux.suse)
  • Re: Resizing NTFS partition to make room for FC10
    ... I have a 150GB ATA disk, /dev/hdb, containing winxp. ... I started by using ntfsresize to shrink the xp partition ... You've copied the MBR of hdb to the MBR of hda. ... That's why the hda disk "thinks" the disk is 150 GB. ...
    (Fedora)