List Info

Thread: bsdlabel, now no boot




bsdlabel, now no boot
country flaguser name
United States
2008-03-18 13:45:51
I was playing last night on my home FreeBSD system which is
the only  
machine there that has internet access. And did something
wrong.

Had added two new SATA HD's and was playing with gstripe,
adjusting  
the stripe size. Default 4k stripe resulted in a filesystem
that runs  
at only 10 MB/sec or so.

Had run gstripe, bsdlabel, and newfs, 4 or 5 times with
different  
stripe sizes when suddenly the old was gone and I couldn't
create a  
new. Nothing in /dev/stripe/. This is FreeBSD 6.2-STABLE
circa July  
2007. "OK, something is messed up, lets reboot."
Didn't do the usual  
"F1 FreeBSD" boot, fell back to a 0:ad(0,a)/boot/
prompt asking what  
to boot. I didn't *think* I was playing with the disk label
on the  
PATA drive where FreeBSD is supposed to boot but clearly
I've hosed  
something. Machine rebooted without problems earlier when
the new  
drives were installed.

Booted the 6.1-RELEASE CD from which this system was
originally  
installed. Fiddled with the FDISK and labeler sections and
didn't do  
any good. Didn't do any harm. My original partition table is
still  
there along with the BSD slices.

Wasn't getting anywhere with the CD so I installed a minimal
binary  
6.1 on one of the SATA drives (ad4s1). While I was there I
set mount  
points for the PATA drive ad0s1 under /old/. Told it to
write the  
FreeBSD boot manager and everything. This works. Still can't
boot the  
PATA drive. But have mounted the old partitions. Then
umounted and ran  
"dump -0af" for each old filesystem into dump
images.

The boot manager is back (at least on the SATA drive) as F1
for  
FreeBSD and F5 for another drive, but F5 beeps and doesn't
change.

Think I have tried all the boot options in fdisk and
bsdlabel, nothing  
seems to work.

Then tried sysinstall from the minimal 6.1 and used the
"Write" option  
under fdisk to flush my update right now to disk and
received an error  
that it could not write the disk. Nothing was mounted from
that drive.  
Got same sort of error in the slice editor.

I don't think my Dell PowerEdge 400SC has any sort of
protection for  
the MBR in BIOS. Will look again tonight.

Noticed the PATA drive was painfully slow under 6.1. Know I
had DMA  
enabled manually in loader.conf under 6.2 and wondering if
FreeBSD can  
write sector 0 via DMA but BIOS is blocking it if DMA is not
used?

Cutting to the chase, my Windows-style partition table is
sane (does  
the FreeBSD "partition" need to be marked
bootable?), and my BSD slice  
table appears to be reasonable and sane. But the drive is
not bootable.

"fdisk -B ad0" didn't hurt nor help. No error
message.
"fdisk -Bi ad0" didn't hurt nor help. No error
message.
"bsdlabel -B ad0s1" didn't hurt nor help. No error
message.

The only error messages have been in sysinstall running from
the 6.1  
minimal installation.

Is probably a good time for me to wipe this drive and
install 7.0, but  
now that I have reached that conclusion and have nothing
else to loose  
I'd like to learn how to recover from this situation.

--
David Kelly N4HHE, dkellyHiWAAY.net
============================================================

Whom computers would destroy, they must first drive mad.



_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Warnings after overclock
user name
2008-03-18 15:32:03
Hello list,

I just overclocked my CPU a bit for the sake of it,
from 2.3GHz to ~2.8GHz.

Everything is nice and stable, but after reboot i get this
message:

calcru: runtime went backwards from 19330 usec to 16092 usec
for pid 597 (hald-runner)
calcru: runtime went backwards from 244138 usec to 203252
usec for pid 597 (hald-runner)
calcru: runtime went backwards from 1345442 usec to 1122955
usec for pid 596 (hald)
calcru: runtime went backwards from 10959 usec to 9124 usec
for pid 596 (hald)
...

I suspect it's got something to do with
kern.timecounter.hardware;
atm. it seems to be "ACPI-fast"; do i need to
change it to TSC?

Thanks.

-- 
Regards,
Ghirai.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Warnings after overclock
country flaguser name
United States
2008-03-18 15:36:07
Ghirai wrote:
> Hello list,
> 
> I just overclocked my CPU a bit for the sake of it,
> from 2.3GHz to ~2.8GHz.
> 
> Everything is nice and stable, but after reboot i get
this message:
> 
> calcru: runtime went backwards from 19330 usec to 16092
usec for pid 597 (hald-runner)
> calcru: runtime went backwards from 244138 usec to
203252 usec for pid 597 (hald-runner)
> calcru: runtime went backwards from 1345442 usec to
1122955 usec for pid 596 (hald)
> calcru: runtime went backwards from 10959 usec to 9124
usec for pid 596 (hald)
> ...

...so you mean everything is nice and stable except your
system no 
longer has stable timecounting.

> I suspect it's got something to do with
kern.timecounter.hardware;
> atm. it seems to be "ACPI-fast"; do i need to
change it to TSC?

I suspect your overclocked CPU.

Kris

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Warnings after overclock
country flaguser name
United States
2008-03-18 21:19:34
On Mar 18, 2008, at 3:32 PM, Ghirai wrote:

> Hello list,
>
> I just overclocked my CPU a bit for the sake of it,
> from 2.3GHz to ~2.8GHz.

You know that you should create a new message and address it
to the  
list rather than edit a reply to another thread the way you
sent the  
above?

No matter how hard you edit the following headers
(In-Reply-To: and  
References remained
in your message hidden from casual view. For  
those who read this list in collapsed threaded view would
never have  
seen your message under "bsdlabel, now no boot"
unless they were  
reading that thread.

Date: Tue, 18 Mar 2008 22:32:03 +0200
From: Ghirai <ghiraighirai.com>
To: freebsd-questionsfreebsd.org
Message-Id: <20080318223203.c70382e0.ghiraighirai.com>
In-Reply-To: <ABE0BB59-27A6-4F21-A098-EA8314133B7Ehiwaay.net>
References: <ABE0BB59-27A6-4F21-A098-EA8314133B7Ehiwaay.net>

--
David Kelly N4HHE, dkellyHiWAAY.net
============================================================
============
Whom computers would destroy, they must first drive mad.

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: bsdlabel, now no boot
country flaguser name
United States
2008-03-18 21:26:35
On Mar 18, 2008, at 1:45 PM, David Kelly wrote:

> Cutting to the chase, my Windows-style partition table
is sane (does  
> the FreeBSD "partition" need to be marked
bootable?), and my BSD  
> slice table appears to be reasonable and sane. But the
drive is not  
> bootable.
>
> "fdisk -B ad0" didn't hurt nor help. No error
message.
> "fdisk -Bi ad0" didn't hurt nor help. No
error message.
> "bsdlabel -B ad0s1" didn't hurt nor help. No
error message.
>
> The only error messages have been in sysinstall running
from the 6.1  
> minimal installation.
>
> Is probably a good time for me to wipe this drive and
install 7.0,  
> but now that I have reached that conclusion and have
nothing else to  
> loose I'd like to learn how to recover from this
situation.


"nothing else to *lose*", silly me.

Having had a fresh attack at my broken system tonight I
discovered the  
original PATA drive boots if I disable the SATA drives in
BIOS. What  
appears to be happening is that no matter the BIOS is told
to boot  
"IDE" (and doesn't have a SATA boot option) once
the SATA drives have  
enough formatting to look bootable to BIOS, the BIOS boots
the ad4  
SATA drive rather than the ad0 PIDE drive.  :-(

I was trying to geom stripe ad4 and ad6, not ad4s1 and
ad6s1. Made my  
gstripe with ad4s1 and ad6s1 so that the boot MBR stays
untouched.

System is now booting ad0 by starting at ad4 and hopping to
ad6, then  
to ad0.

--
David Kelly N4HHE, dkellyHiWAAY.net
============================================================
============
Whom computers would destroy, they must first drive mad.

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: bsdlabel, now no boot
user name
2008-03-19 09:31:18
On Tue, Mar 18, 2008 at 10:26 PM, David Kelly <dkellyhiwaay.net> wrote:
>  Having had a fresh attack at my broken system tonight
I discovered the
>  original PATA drive boots if I disable the SATA drives
in BIOS. What
>  appears to be happening is that no matter the BIOS is
told to boot
>  "IDE" (and doesn't have a SATA boot option)
once the SATA drives have
>  enough formatting to look bootable to BIOS, the BIOS
boots the ad4
>  SATA drive rather than the ad0 PIDE drive.  :-(
>
>  I was trying to geom stripe ad4 and ad6, not ad4s1 and
ad6s1. Made my
>  gstripe with ad4s1 and ad6s1 so that the boot MBR
stays untouched.
>
>  System is now booting ad0 by starting at ad4 and
hopping to ad6, then
>  to ad0.

Yes, you've discovered a "feature" of the 400SC (I
have 3).  If you
have PATA and SATA disks installed:

SATA disabled in BIOS -> PATA boots
SATA enabled in BIOS -> SATA boots, and stops if it can't
(PATA never attempted)

The best work around is to install a boot loader on your
SATA HD to
point to the PATA HD.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: bsdlabel, now no boot
country flaguser name
United States
2008-03-19 13:07:54
On Wed, Mar 19, 2008 at 10:31:18AM -0400, Walker wrote:
> On Tue, Mar 18, 2008 at 10:26 PM, David Kelly
<dkellyhiwaay.net> wrote:
> >
> >  System is now booting ad0 by starting at ad4 and
hopping to ad6,
> >  then to ad0.
> 
> Yes, you've discovered a "feature" of the
400SC (I have 3).  If you
> have PATA and SATA disks installed:
> 
> SATA disabled in BIOS -> PATA boots
> SATA enabled in BIOS -> SATA boots, and stops if it
can't (PATA never
> attempted)
> 
> The best work around is to install a boot loader on
your SATA HD to
> point to the PATA HD.

Yes, thats what is running now. Sadly I've already recycled
the two SATA
drives that came out and don't remember how they were
configured that
the PATA drive booted. Know I have used boot0cfg(8) in the
past but
don't recall if it was on this system. Using boot0cfg one
can set the
timeout to 0 so that the drive immediately hops to the
next.

However I'm thinking the Dell BIOS ignores the SATA drives
during boot
if the MBR is zeroed. With virgin SATA drives installed and
enabled but
not yet labeled the system booted off the PATA drive.

-- 
David Kelly N4HHE, dkellyHiWAAY.net
============================================================
============
Whom computers would destroy, they must first drive mad.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: bsdlabel, now no boot
user name
2008-03-19 19:35:31
On Wed, Mar 19, 2008 at 2:07 PM, David Kelly <dkellyhiwaay.net> wrote:
>  Yes, thats what is running now. Sadly I've already
recycled the two SATA
>  drives that came out and don't remember how they were
configured that
>  the PATA drive booted. Know I have used boot0cfg(8) in
the past but
>  don't recall if it was on this system. Using boot0cfg
one can set the
>  timeout to 0 so that the drive immediately hops to the
next.
>
>  However I'm thinking the Dell BIOS ignores the SATA
drives during boot
>  if the MBR is zeroed. With virgin SATA drives
installed and enabled but
>  not yet labeled the system booted off the PATA drive.

Thanks for that info.

IIRC, when I first installed a SATA with a PATA HD I got an
'operating
system not installed' message when the bios attempted to
boot off
SATA, and it stops there.

The next time I need to rebuild at 400SC I'll try zeroing
out the MBR.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )