Bug#668906: util-linux: fdisk fails on kfreebsd
Package: util-linux
Version: 2.20.1-4
Severity: important
User: debian-bsd@lists.debian.org
Hi!
I can't create any partitions on this raid device (msdos partition
table) with fdisk. Creating a partition with parted finally succeeded
Regards
Christoph
# fdisk /dev/twed0
last_lba(): I don't know how to handle files with mode 20640
You will not be able to write the partition table.
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n
Partition type:
p primary (2 primary, 0 extended, 2 free)
e extended
Select (default p): p
Partition number (1-4, default 3):
Using default value 3
First sector (101562368-1465185023, default 101562368):
Using default value 101562368
Last sector, +sectors or +size{K,M,G} (101562368-1465185023, default 1465185023): +50G
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): w
fdisk: unable to write /dev/twed0: Bad file descriptor
root@elephant /etc/exim4
15:23 1 # fdisk -l /dev/twed0
last_lba(): I don't know how to handle files with mode 20640
Disk /dev/twed0: 750.2 GB, 750174732288 bytes
255 heads, 63 sectors/track, 91203 cylinders, total 1465185024 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
Disk identifier: 0x000a4204
Device Boot Start End Blocks Id System
/dev/twed0p1 2048 97656831 48827392 a5 FreeBSD
/dev/twed0p2 97656832 101562367 1952768 82 Linux swap / Solaris
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-i386 (i386)
Kernel: kFreeBSD 9.0-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages util-linux depends on:
ii debconf [debconf-2.0] 1.5.42
ii dpkg 1.16.2
ii initscripts 2.88dsf-22.1
ii install-info 4.13a.dfsg.1-9
ii libblkid1 2.20.1-4
ii libc0.1 2.13-27
ii libncurses5 5.9-4
ii libslang2 2.2.4-7
ii libtinfo5 5.9-4
ii libuuid1 2.20.1-4
ii lsb-base 4.1+Debian0
ii tzdata 2012b-1
ii zlib1g 1:1.2.6.dfsg-2
util-linux recommends no packages.
Versions of packages util-linux suggests:
pn dosfstools <none>
pn kbd | console-tools <none>
pn util-linux-locales <none>
-- debconf information:
util-linux/noauto-with-nonzero-passnum:
Reply to: