Re: Bug#21442: util-linux/e2fsprogs: fdisk ignores BSD slices, mkswap/mke2fs use wrong device for si

Yann Dirson (ydirson@a2points.com)
Mon, 27 Apr 1998 16:08:48 +0200 (CEST)


Hi there,

Here's a report from a Debian user. I gathered the additional info
that he's using kernel 2.1.96 with no additional patches.

I suspect the BLKGETSIZE ioctl being confused - it seems to me at
first glance to be a VFS problem.

[please keep the 21442-forwarded address in your followups]

Peter Tobias writes:
> Package: util-linux, e2fsprogs
> Version: 2.7.1-3, 1.10-10
>
> fdisk uses wrong device names for extended partitions when the hd
> also contains a BSD filesystem with slices. mkswap and mke2fs both
> use the wrong partitions (the BSD ones) for calculating the partition
> size when using the devices fdisk uses. More strangely they seem to
> use the _correct_ devices for doing the actual work (at least they
> didn't destroy the BSD slices).
>
>
> 2.5GB Harddisk with the following partitions:
>
> Partitions: Kernel-Device: fdisk-Device:
> 420 MB DOS /dev/hdb1 /dev/hdb1
> 350 MB BSD (FreeBSD) /dev/hdb2 /dev/hdb2
> 280 MB UFS Slice /dev/hdb5
> 70 MB Swap Slice /dev/hdb6
> 730 MB Extended /dev/hdb3 /dev/hdb3
> 670 MB Linux EXT2 /dev/hdb7 /dev/hdb5
> 50 MB Linux Swap /dev/hdb8 /dev/hdb6
> 1000 MB Linux EXT2 /dev/hdb4 /dev/hdb4
>
>
> As you can see the kernel and fdisk use different device names. If
> you use fdisk to get the device names for mkswap and mke2fs these
> tools will use the wrong devices for calculating the size of the
> partition, e.g.:
>
> mkswap /dev/hdb6 tries to create a 70MB swap partition (correct would
> be 50MB) and mke2fs /dev/hdb5 tries to create a 280MB filesystem (correct
> would be 670MB).
>
>
> Thanks,
>
> Peter
>
> --
> Peter Tobias <tobias@et-inf.fho-emden.de> <tobias@debian.org> <tobias@linux.de>
> PGP ID EFAA400D, fingerprint = 06 89 EB 2E 01 7C B4 02 04 62 89 6C 2F DD F1 3C

-- 
Yann Dirson  <ydirson@a2points.com>      | Stop making M$-Bill richer & richer,
alt-email:     <dirson@univ-mlv.fr>      |     support Debian GNU/Linux:
debian-email:   <dirson@debian.org>      |         more powerful, more stable !
http://www.a2points.com/homepage/3475232 | Check <http://www.debian.org/>

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