<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/16/2011 08:10 AM, Jerry Geis wrote:
<blockquote cite="mid:4E733CAB.4050205@pagestation.com" type="cite">
<pre wrap="">
On 09/16/2011 06:59 AM, Steve Clark wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 09/15/2011 06:03 PM, Jerry Geis wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">I think the fdisk in 6 tries to align on 4k boundaries. Does fdisk -c do the
same thing?
</pre>
</blockquote>
<pre wrap="">Scott - thanks I just tried -cu and same result.
jerry
_______________________________________________
CentOS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
</pre>
</blockquote>
<pre wrap="">have you tried sfdisk?
</pre>
</blockquote>
<pre wrap="">Steve - I had not - but asking sfdisk to list the device on centos has
the wrong geometry to start
with just like fdisk does. it should be 255 heads and 63 sectors.
sfdisk -v
sfdisk (util-linux-ng 2.17.2)
sfdisk -l /dev/sde
Disk /dev/sde: 1022 cylinders, 247 heads, 62 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 1022/247/62).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sde1 * 0+ 974- 975- 7830616+ b W95 FAT32
end: (c,h,s) expected (974,221,63) found (1023,254,63)
/dev/sde2 0 - 0 0 0 Empty
/dev/sde3 0 - 0 0 0 Empty
/dev/sde4 0 - 0 0 0 Empty
----------------
This is centos 5
sfdisk -v
sfdisk (util-linux 2.13-pre7)
sfdisk -l /dev/sdb
Disk /dev/sdb: 974 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 * 0+ 851 852- 6843658+ 83 Linux
/dev/sdb2 852 973 122 979965 82 Linux swap / Solaris
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
</pre>
</blockquote>
<font face="sans-serif">Hmm...<br>
I have an automated script that installs C6 on devices - I have
used it on sata drives, ssds and<br>
CF. The first thing I do is dd of=$DRIVE if=/dev/zero bs=1024
count=1 to wipe out the existing<br>
partition table then I do<br>
<br>
# 1MB = 2048 512byte sectors<br>
DSIZE=`sfdisk -s -uS $DRIVE`<br>
DSIZE=$((DSIZE*2))<br>
Log "DSIZE is $DSIZE"<br>
#OFFSET=2048<br>
OFFSET=8<br>
SWAP=1000000<br>
BOOT=600000<br>
PSIZE=$(((DSIZE-(OFFSET+BOOT+SWAP+10))/2))<br>
PSIZE=$((PSIZE+(PSIZE%2)))<br>
PSTART=$((PSIZE+BOOT+SWAP+OFFSET))<br>
Log "PSIZE is $PSIZE"<br>
Log "PSTART is $PSTART"<br>
# partition the disk for /boot, swap, /<br>
#/sbin/sfdisk -q -uS $DRIVE << EOF<br>
#8,600000,L,*<br>
#,1000000,S<br>
#,,L<br>
#EOF<br>
/sbin/sfdisk -f -q -uS $DRIVE << EOF<br>
$OFFSET,$BOOT,L,*<br>
$((OFFSET+BOOT)),$SWAP,S<br>
$((OFFSET+BOOT+SWAP)),$PSIZE,L<br>
$PSTART,,L<br>
EOF<br>
<br>
I am creating two linux partitions and a swap partition.<br>
The swap is fixed and the two linux partitions are approximately<br>
equal. <br>
I have had no problem booting C6 after doing this.<br>
<br>
</font><br>
<div class="moz-signature">-- <br>
Stephen Clark<br>
<b>NetWolves</b><br>
Sr. Software Engineer III<br>
Phone: 813-579-3200<br>
Fax: 813-882-0209<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:steve.clark@netwolves.com">steve.clark@netwolves.com</a><br>
<a class="moz-txt-link-freetext" href="http://www.netwolves.com">http://www.netwolves.com</a><br>
</div>
</body>
</html>