Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 1998 09:52:18 -0400 (EDT)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/7756: disklabel misbehaving on seriously sick disks
Message-ID:  <199808271352.JAA07837@rtfm.ziplink.net>

next in thread | raw e-mail | index | archive | help

>Number:         7756
>Category:       bin
>Synopsis:       disklabel misbehaving on seriously sick disks
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 27 07:00:00 PDT 1998
>Last-Modified:
>Originator:     Mikhail Teterin
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	A disk with hosed partition table(s)

>Description:

	My attempts to
		disklabel -r -w sd1 auto
	where resulting in "No space on device" and similar non-sense.
	When I tried to use disklabel from 2.2.6-STABLE, it simply
	segfaulted. It seemed from reading the man-page, that `-w'
	should just write the table out after figuring the parameters
	out _without reading the disk_.

>How-To-Repeat:

	Hard -- you need to hose your disk in some special way.
	My machine did it for me and would not tell me how.

>Fix:
	
	Nuke the first several sectors with ``dd if=/dev/zero ...''
	I had a swap partition on that disk prior to the precious
	file system I tried to restore, so I did not worry about
	nuking too much.

	After this, I was able to auto-create the disklabel and
	edit it to access my FS. I used to mount it as sd1s1e.
	Well, now it is /dev/sd1e, but I prefer it this way --
	shorter...
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808271352.JAA07837>