*BSD News Article 75675


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!news.vbc.net!alpha.sky.net!news.sprintlink.net!news-chi-13.sprintlink.net!newsreader.sprintlink.net!news.sprintlink.net!news-stk-3.sprintlink.net!news.sprintlink.net!new-news.sprintlink.net!news.sgi.com!enews.sgi.com!news.mathworks.com!newsfeed.internetmci.com!aldehyde.netone.com!news.sprintlink.net!news-fw-12.sprintlink.net!news.iglobal.net!usenet@iglobal.net
From: schen@mozart.compsci.com (Sean Siyuan Chen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Bad disk label--Partition restore/repair required for Seagate ST15150N.
Date: 07 Aug 1996 19:22:32 -0500
Organization: CIS
Lines: 48
Message-ID: <x720hi4tdj.fsf@mozart.compsci.com>
NNTP-Posting-Host: 207.43.207.253
X-Newsreader: Gnus v5.1

Hi,

I've one P100/32MB system running FreeBSD 2.1-STABLE with one Seagate
ST15150N 4GB HD on a Adaptec 2940 SCSI host adapter. The disk is partitioned
as the following:

	0.	10MB	FAT		DOS
	1.	1000MB	FreeBSD		/
	2.	64MB	FreeBSD		swap
	3.	3021MB	FreeBSD		/var

Yesterday, after an administrative shutdown, when the system reboot,
fsck failed openning /dev/rsd0s4e complaining "Invalid Argument". The system's
/etc/fstab is as following:

/dev/sd0a                       /               ufs     rw 1 1
/dev/sd0s4e                     /var            ufs     rw 1 1
/dev/sd0s3b                     none            swap    sw 0 0
proc                            /proc           procfs  rw 0 0

After removing /dev/sd0s4e entry from /etc/fstab. The system successfully
boot up with warning "/kernel: sd0s3: cannot find label (I/O error)". 
Apparently, it's running without the swap space partition. Everything under
/ is fine.

I did fdisk from DOS, it still has the above partition layout. Under FreeBSD
fdisk, it has the correct cylinder/tracck/sector info and the configuration
for the first two partition is still correct. There are 4095 cylinders with
1MB each. However, partition 2 will not go beyond cylinder 1024 no matter
how I set it. Further, I did "disklabel sd0" and it shows only 2048000 sector
(512Byte/Sec) available totally, which is the same as given by
"disklabel /dev/rsd0s2". "disklabel /dev/rsd0" does give correct geometry
info (8388315 sectors), but when I try "disklabel -r /dev/rsd0", it failed
with message "Bad pack magic number (label is damaged, or pack is unlabeled)".

So, does it mean that only the disk label is damaged? Can I restore the two
other partitions without affection the root partition? Or, at least be
able to keep the root partition while format the two remaining one.

Thanks in advance for any help.


Sean
-- 
Sean Siyuan Chen				
Computer & Infomation Sciences,Inc.	| Email: schen@compsci.com
3401 East University, Suite 104		| Phone: 817-484-1165
Denton, TX76208				| Fax:   817-484-0586