Subject: Re: [2.0-RC1] shutdown is not clean
To: None <port-sparc64@netbsd.org>
From: None <sigsegv@rambler.ru>
List: port-sparc64
Date: 10/03/2004 22:33:16
Michael Gerhards wrote:
> On Sun, 03 Oct 2004 21:17:18 +0100, sigsegv@rambler.ru wrote:
>
>>>So I guess there is a problem concerning a proper umount of all
>>>partitions. Is there any known bug? Or might there be some
>>>misconfiguration on my system?
>>
>>what kind of errors you get?
>
>
> For example:
> /dev/wd0d: UNREF FILE I=3086345 OWNER=root MODE=140666
>
> There are also some more messages like this, but they disappeared too
> fast to write them down. Is there any possibility to read them again
> after booting? "dmesg" ends before these messages.
>
> To me this looks like as if the system wasn't shut down properly. Or am
> I wrong?
>
>
>>Assuming your disk is /dev/wd0 , what does "disklabel /dev/wd0" and
>>"fdisk /dev/wd0" show?
>
>
> disklabel /dev/wd0:
>
> /dev/wd0c:
> type: unknown
> disk: ultra10
> label:
> flags:
> bytes/sector: 512
> sectors/track: 255
> tracks/cylinder: 16
> sectors/cylinder: 4080
> cylinders: 38323
> total sectors: 156357840
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0 # microseconds
> track-to-track seek: 0 # microseconds
> drivedata: 0
>
> 8 partitions
> # size offset fstype [fsize bsize cpg/sgs]
> a: 2048160 0 4.2BSD 1024 8192 46552 # Cyl. 0-501
> b: 4198320 2048160 swap # Cyl. 502-1530
> c: 156357840 0 unused 0 0 # Cyl. 0-38322
> d: 40963200 47209680 4.2BSD 1024 8192 46552 # Cyl. 11571-21610
> e: 66136800 88172880 4.2BSD 1024 8192 46448 # Cyl. 21611-37820
> f: 2048160 154309680 4.2BSD 1024 8192 46552 # Cyl. 37821-38322
> g: 40963200 6246480 4.2BSD 1024 8192 46552 # Cyl. 1531-11570
>
>
> fdisk /dev/wd0:
> fdisk: not found
>
> Seems as if fdisk wasn't installed?! Why? I did a full installation...
>
> Michael
>
>
>
OK I'm only guessing, but the disklabel shows "sectors/track 255" most
disks have 63 sectors/track, I don't know if that's gonna cause any
problems. If you're having some filesystem corruption you may want to
scan the surface of your hard disk for bad sectors etc. What you can
also do is blank out the disk and reinstall NetBSD, maybe fdisk or
disklabel got confused
dd if=/dev/zero of=/dev/rwd0c bs=64k
this will destroy all data on disk, it takes about 30min for a 40GB disk
may be that will help