Project

General

Profile

Actions

Bug #1278

closed

disklabel64 can't label new partition

Added by corecode almost 13 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The kernel won't let disklabel write the label unless I've touched the slice before:

sweatshorts % sudo dd if=/dev/zero of=/dev/ad6
^C25372+0 records in
25371+0 records out
12989952 bytes transferred in 2.380336 secs (5457192 bytes/sec)
1 sweatshorts % sudo fdisk -IB /dev/ad6
  • Working on device /dev/ad6 *
    fdisk: invalid fdisk partition table found
    Warning: ending cylinder wraps, using all 1's
    sweatshorts % sudo fdisk -IB /dev/ad6
  • Working on device /dev/ad6 *
    Warning: ending cylinder wraps, using all 1's
    sweatshorts % sudo disklabel64 -w ad6s1 auto
    disklabel64: ioctl DIOCWDINFO64: label magic number or checksum is wrong!
    (disklabel or kernel is out of date?)
    1 sweatshorts % dd if=/dev/ad6s1 of=/dev/null count=100
    100+0 records in
    100+0 records out
    51200 bytes transferred in 0.013747 secs (3724455 bytes/sec)
    sweatshorts % sudo disklabel64 -w ad6s1 auto
    sweatshorts %
Actions #1

Updated by alexh about 12 years ago

Works as expected now, so I'm closing this.

9:09:04 :~ master
  1. dd if=/dev/zero of=/dev/ad0
    ^C31225+0 records in
    31224+0 records out
    15986688 bytes transferred in 3.294755 secs (4852163 bytes/sec)
    3.30s=0.00s+2.58s
    9:09:26 :~ master
    1 # fdisk -IB /dev/ad0
    • Working on device /dev/ad0 *
      fdisk: invalid fdisk partition table found
      Warning: ending cylinder wraps, using all 1's
      9:09:38 :~ master
  2. fdisk -IB /dev/ad0
    • Working on device /dev/ad0 *
      9:10:01 :~ master
  3. disklabel64 -w ad0s1 auto
    9:10:41 :~ master #
Actions #2

Updated by martin1234 almost 3 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF