Re: Hard drive geometry headache (slightly off topic)

2003-12-10 Thread Siegbert Baude
Frederick Bowes wrote:
I've solved the problem and repreat it here for future generations reference
(: It appears that the MBR was infact corrupt, causing fdisk to get
confused...
the following command made the hd appear blank and let it all work again:
  dd if=/dev/zero of=/dev/ad0 count=2000

(Yes i lost my data but the drive now works!) Thanks for ur help (:
It would be more precise to use

dd if=/dev/zero of=/dev/ad0 bs=512 count=1

as this will delete exactly the first block of the first IDE-disk, aka 
MBR. If your MBR is corrupt, but you still care for the data, you have 
better chances to recover this way.

Ciao
Siegbert
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Hard drive geometry headache (slightly off topic)

2003-12-09 Thread Frederick Bowes
 Now I had to move it to a new computer in which the bios detects a
 certian geometry, but then the system wont boot. No matter what I do
  I had the same problem back in 4.5.  I worked around the problem by
 formating the hard drive with a Win98(Oh Boy) recovery floppy then
 ...
Formatting/fdisking under windows 98 or xp cd's didnt work for me, caused
the same trouble.

I've solved the problem and repreat it here for future generations reference
(: It appears that the MBR was infact corrupt, causing fdisk to get
confused...
the following command made the hd appear blank and let it all work again:

  dd if=/dev/zero of=/dev/ad0 count=2000

(Yes i lost my data but the drive now works!) Thanks for ur help (:

Fred
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Hard drive geometry headache (slightly off topic)

2003-12-08 Thread Frederick Bowes
Hello!

I have a problem which i cannot seem to fix no matter what I do! I have a
120GB disk, which had windows XP/FreeBSD partions working fine on one
computer. Now I had to move it to a new computer in which the bios detects
a certian geometry, but then the system wont boot. No matter what I do
now, i cant get the system to boot off the disk, i have even tried
eraseing it with fdisk (freebsd and dos versions). Does anyone know how I
can save it?  I have tried everything and dont know where else to ask.

Frederick
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hard drive geometry headache (slightly off topic)

2003-12-08 Thread Mike Maltese
 I have a problem which i cannot seem to fix no matter what I do! I have a
 120GB disk, which had windows XP/FreeBSD partions working fine on one
 computer. Now I had to move it to a new computer in which the bios detects
 a certian geometry, but then the system wont boot. No matter what I do
 now, i cant get the system to boot off the disk, i have even tried
 eraseing it with fdisk (freebsd and dos versions). Does anyone know how I
 can save it?  I have tried everything and dont know where else to ask.

Check to see that the BIOS is using the same addressing mode as the old
board. I had a somewhat similar problem and it turned out the BIOS was in
Large mode. Switching to LBA solved the problem. Also, if you've fdisk'ed
the drive, chances are you've hosed the installations.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hard drive geometry headache (slightly off topic)

2003-12-08 Thread Frederick Bowes
 Now I had to move it to a new computer in which the bios
 detects a certian geometry, but then the system wont boot.
 No matter what I do now, i cant get the system to boot off
 the disk, i have even tried eraseing it with fdisk (freebsd
 and dos versions). Does anyone know how I can save it?
 I have tried everything and dont know where else to ask.

 Check to see that the BIOS is using the same addressing mode as the old
 board. I had a somewhat similar problem and it turned out the BIOS was in
 Large mode. Switching to LBA solved the problem. Also, if you've fdisk'ed
 the drive, chances are you've hosed the installations.

I stopped caring about the data on the disk (which is backed up, so just
an inconvenience.

I have tried setting LBA/Large/CHS and booting and installing freebsd.
Under each type, fdisk always reports that the geometry is incorect. Each
time the install works fine but then when trying to boot, it cant read the
hard disk!

I am guessing freebsd works out the correct drive geometry, but the bios
is not! Interestingly though, when set to LBA, the head/cyl/sector count
is equal to what the freebsd fdisk detects it to be.

(This is a new motherboard which works when booting/installing FreeBSD on
an old 2G hd i have lying around) the problem is only with the 80G drive

Fred
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hard drive geometry headache (slightly off topic)

2003-12-08 Thread Mike Maltese
 I am guessing freebsd works out the correct drive geometry, but the bios
 is not! Interestingly though, when set to LBA, the head/cyl/sector count
 is equal to what the freebsd fdisk detects it to be.

This is exactly what I was experiencing. Thought I'd throw that out there,
best of luck to you.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]