Re: sfdisk

Trevor Johnson (trevor@jpj.net)
Sun, 17 May 1998 21:12:11 -0400 (EDT)


Andries Brouwer wrote:

> I have put sfdisk-3.07.tar.gz on ftp.win.tue.nl:/pub/linux/util/fdisk .
> Several small changes, but the reason I announce this is that

Thank you--it reads my FreeBSD 2.2.6 slice just fine:

Disk /dev/hda: 64 heads, 63 sectors, 973 cylinders
Units = cylinders of 2064384 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 62 63- 126976+ 6 DOS 16-bit FAT >=32M
/dev/hda2 120 349 230 463680 a5 BSD/386
/dev/hda3 350 972 623 1255968 83 Linux native
end: (c,h,s) expected (972,63,63) found (971,63,63)
/dev/hda4 63 119 57 114912 5 DOS Extended
/dev/hda5 120 136 17 34272
/dev/hda6 137 139- 3- 4096
/dev/hda7 139+ 155- 17- 32768
/dev/hda8 155+ 349 195- 392544
/dev/hda9 63+ 73 11- 22144+ 83 Linux native

Disk /dev/hdc: 64 heads, 63 sectors, 621 cylinders
Units = cylinders of 2064384 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hdc1 0+ 9 10- 20159+ 83 Linux native
/dev/hdc2 10 29 20 40320 83 Linux native
/dev/hdc3 30 279 250 504000 83 Linux native
/dev/hdc4 * 280 620 341 687456 83 Linux native

Here's what version 3.05 said:

Disk /dev/hda: 64 heads, 63 sectors, 973 cylinders
Units = cylinders of 2064384 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 62 63- 126976+ 6 DOS 16-bit FAT >=32M
/dev/hda2 120 349 230 463680 a5 BSD/386
/dev/hda3 350 972 623 1255968 83 Linux native
end: (c,h,s) expected (972,63,63) found (971,63,63)
/dev/hda4 63 119 57 114912 5 DOS Extended
/dev/hda5 63+ 73 11- 22144+ 83 Linux native

Disk /dev/hdc: 64 heads, 63 sectors, 621 cylinders
Units = cylinders of 2064384 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hdc1 0+ 9 10- 20159+ 83 Linux native
/dev/hdc2 10 29 20 40320 83 Linux native
/dev/hdc3 30 279 250 504000 83 Linux native
/dev/hdc4 * 280 620 341 687456 83 Linux native

I tried mounting my FreeBSD partitions under Linux 2.1.102, and found that
the new fdisk's idea of how they should be numbered is in agreement with
the kernel's.
___
Trevor Johnson

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu