[Durham] Removing LVM

Martin Ward martin at gkc.org.uk
Mon Feb 20 08:42:35 UTC 2012


On Monday 20 Feb 2012 at 01:07, Andrew Glass <andrewglass3 at gmail.com> wrote:
> Disk /dev/sdb: 33 MB, 33348608 bytes
> 14 heads, 55 sectors/track, 84 cylinders, total 65134 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes

14 * 55 * 84 = 64680 not 65134

On Monday 20 Feb 2012 at 06:14, Dougie Nisbet <dougie at highmoor.co.uk> wrote:
> I usually stick with 'cfdisk' for deleting and creating partitions.
> 
> cfdisk /dev/sdb
> 
> Can you delete the partition then create a new one using 'entire disk'?

It seems that the geometry in the partition table does not match the disk.
cfdisk's man page says:  "The geometry used by cfdisk is found as follows.
First the partition table is examined, to see what geometry was used by
the previous program that changed it. If the partition table is empty,
or contains garbage, or does not point at a consistent geometry,
the kernel is asked for advice."

So you might need to destroy the partition table with dd before using cfdisk,
or tell cfdisk the geometry uising the "g" command (255 heads and
63 sectors/track for a large modern disk).

-- 
			Martin

STRL Reader in Software Engineering and Royal Society Industry Fellow
martin at gkc.org.uk  http://www.cse.dmu.ac.uk/~mward/  Erdos number: 4
G.K.Chesterton web site: http://www.cse.dmu.ac.uk/~mward/gkc/
Mirrors:  http://www.gkc.org.uk  and  http://www.gkc.org.uk/gkc



More information about the Durham mailing list