DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th June 2012
caravel caravel is offline
Port Guard
 
Join Date: Jun 2012
Posts: 14
Thanked 0 Times in 0 Posts
Default GPT partition unbootable...

I attempted an install FreeBSD 9.0 last weekend. My hardware is pretty basic: Pentium 4 3.4GHz, 1.5GB of RAM, 40GB PATA HDD. I managed to get completely installed, though during partitioning some errors appeared and I removed the partition table and went for the "automatic" option - stupidly I created a GUID partition table which my BIOS does not recognise. It all installed, rebooted - the result is a disk which seems to freeze the system when connected whether as a single drive, master or slave. Thus I can't even boot up to zero out the boot sector, etc.

My question is, is this normal (for a GPT disk to cause a complete freeze during post on an older system without EFI)?

I'm wondering because I'm not ruling out a failed HDD either, but can't test the disk in another system to see if it's faulty or not.

Thanks in advance.

Last edited by caravel; 20th June 2012 at 07:58 PM. Reason: 40GB not 80GB
Reply With Quote
  #2   (View Single Post)  
Old 19th June 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 2,995
Thanked 214 Times in 189 Posts
Default

Your symptoms indicate a likely problem of communication with drive electronics. It matters not what you may have scribbled onto sectors. No MBR, no boot, as far as your BIOS is concerned. But you were expecting to boot from other media, and don't get that far -- the BIOS hang is most likely when it tries to communicate with the drive during hardware probing, which doesn't read from media.

Drive electronics communication failures have three likely causes -- for IDE (aka PATA) in probability order:
  1. Bad IDE connection or cable
  2. Bad drive electronics
  3. Bad IDE bus electronics on the motherboard.
Start there. Look for a bent pin, swap cables, etc.
__________________
OpenBSD LiveCDs/LiveDVDs

Last edited by jggimi; 19th June 2012 at 04:29 PM. Reason: clarity
Reply With Quote
  #3   (View Single Post)  
Old 20th June 2012
caravel caravel is offline
Port Guard
 
Join Date: Jun 2012
Posts: 14
Thanked 0 Times in 0 Posts
Default

Yes I was thinking a bad HDD also, but by coincidence the drive was working before I installed FreeBSD on it.

I tried 3 different cables, my other HDD boots up fine from the same cable, tried the master and slave connectors, checked all jumper settings so I would guess that goes towards ruling it out.

I agree it's probably bad drive electronics - I'm sure the BIOS would spit some error at least if it were an issue with the partition table. I will scrap the drive and install on another one.

Many thanks for your help jggimi
Reply With Quote
  #4   (View Single Post)  
Old 20th June 2012
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 2,801
Thanked 182 Times in 149 Posts
Default

Having had quite some issues in installing 9.0, you could try to install FreeBSD 8.3 and check whether that will boot from the disk.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #5   (View Single Post)  
Old 20th June 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 2,995
Thanked 214 Times in 189 Posts
Default

As I understand it, when that drive is plugged in, the BIOS does not complete POST. No OS or standalone program will boot.
__________________
OpenBSD LiveCDs/LiveDVDs
Reply With Quote
  #6   (View Single Post)  
Old 20th June 2012
caravel caravel is offline
Port Guard
 
Join Date: Jun 2012
Posts: 14
Thanked 0 Times in 0 Posts
Default

Yes POST just freezes when the drive is connected. I will try 8.3 if I can't get any results with 9.0.

Many thanks to you both.
Reply With Quote
  #7   (View Single Post)  
Old 20th June 2012
caravel caravel is offline
Port Guard
 
Join Date: Jun 2012
Posts: 14
Thanked 0 Times in 0 Posts
Default

Ok the plot thickens. I installed on a new 40GB PATA drive today - just to make sure I booted before hand, the POST completed and "boot failure" - so far so good.

I then installed as before; two partitions only 2GB of swap, but using a DOS MBR instead of GPT. The result - exactly the same result.

I now intend to check and see if either of these drives will boot in another system I have. If they do I'll wipe them and try FreeBSD 8.3 next.

//edit: Ok both drives boot up ok from another PC (which has windows xp) I managed to delete the partitions from the last drive I set up (with an MBR) but windows does not recognise the GPT drive and cannot delete/create partitions on it.

I will try FreeBSD 8.3

Last edited by caravel; 20th June 2012 at 07:56 PM.
Reply With Quote
  #8   (View Single Post)  
Old 21st June 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 2,995
Thanked 214 Times in 189 Posts
Default

Quote:
I then installed as before; two partitions only 2GB of swap, but using a DOS MBR instead of GPT. The result - exactly the same result.
OK, then the only logical explanation is that the BIOS is actually getting through POST, then failing to boot.

I had interpreted your problem description and test results to mean that during problem isolation testing that you had configured your BIOS to boot from alternate media (another hard drive, optical media, NIC, diskette) and the machine would not boot from that alternate media if the hard drive was attached. That is what led me to a hardware problem. If you did not test this, please do so, to confirm that BIOS completed POST with the drive attached, and that the symptom's root cause was just a hang of the OS on boot.

On a GPT drive, LBA #0 would contain a "Protective MBR" -- an MBR configured with the entire disk in use, and not bootable. Would the MBR program in the first 400 bytes do more than hang? I don't know. Unfortunately, the sum of my entire knowledge of GPT comes from Wikipedia.

I'm very confused by your test results with an MBR-bootable configuration. In that case, the MBR program should have chain loaded the PBR (first stage boot loader) and that should have chain loaded the second stage boot loader, and that should have loaded the kernel.
__________________
OpenBSD LiveCDs/LiveDVDs

Last edited by jggimi; 21st June 2012 at 03:23 PM. Reason: typos
Reply With Quote
  #9   (View Single Post)  
Old 21st June 2012
caravel caravel is offline
Port Guard
 
Join Date: Jun 2012
Posts: 14
Thanked 0 Times in 0 Posts
Default

The BIOS responds to nothing but CTRL+ALT+DEL during the POST with the drive attached - it hangs the instant the PATA drives are detected. I've configured the system to boot from the CDROM which makes no difference - the system does not get any further than the aforementioned device detection. With the drive connected I cannot get into BIOS setup or bring up the BIOS boot menu - so any BIOS configuration I do has to be with it disconnected. With the drive formatted off it all returns to normal.

I agree that it must get through POST and freeze instantly while the POST screen is still visible and the BIOS handing over to the bootloader. This may also explain why the BIOS hotkeys stop working.

I will do some more fiddling around this evening if possible as well as installing 8.3 to see if there's any difference.

I don't mind resetting the BIOS to factory defaults either or messing about with individual settings.

Thanks again for your help.
Reply With Quote
Old 21st June 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 2,995
Thanked 214 Times in 189 Posts
Default

You may want to see if your motherboard vendor has a BIOS update available.

Years ago, I had an AMD Socket 7 motherboard with two big LEDs that produced codes throughout POST and to the point where the BIOS transferred control to boot code read from media. Granted, I couldn't see the status code unless the case was open but it was a really nice feature.
__________________
OpenBSD LiveCDs/LiveDVDs
Reply With Quote
Old 21st June 2012
DaGr8Gatzby DaGr8Gatzby is offline
New User
 
Join Date: Aug 2008
Posts: 1
Thanked 0 Times in 0 Posts
Default

Did you try just resetting the label to msdos? Use gparted.
Reply With Quote
Old 22nd June 2012
shep shep is offline
VPN Cryptographer
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 427
Thanked 9 Times in 9 Posts
Default

Quote:
I then installed as before; two partitions only 2GB of swap, but using a DOS MBR instead of GPT. The result - exactly the same result.
Are they Western Digital Hard drives? These come pre-formated with a gpt in the first 2 sectors and also back up the gpt on the last 2 sectors of the disk. I did not have any desire to boot multiple OS so I zero out the first 2 sectors and the last 2 sectors on the drive with the dd command.
At that point the classic mbr boot sector worked If you do not do the last 2 sectors the gpt table will be restored.

More info here

Last edited by shep; 22nd June 2012 at 01:58 AM. Reason: added link
Reply With Quote
Old 22nd June 2012
caravel caravel is offline
Port Guard
 
Join Date: Jun 2012
Posts: 14
Thanked 0 Times in 0 Posts
Default

They're western digital drives, but I'm sure they're far too old to come formatted with a GPT? Both disks are the wd400jb

I will certainly try that however before reinstalling.

Thanks
Reply With Quote
Old 23rd June 2012
caravel caravel is offline
Port Guard
 
Join Date: Jun 2012
Posts: 14
Thanked 0 Times in 0 Posts
Default

I installed 9.0 again last night on 40GB seagate drive with the same result.

I also installed FreeBSD 8.3 on one of the WD drives with no problems. I'm posting from Firefox 10 with openbox on FreeBSD 8.3. I will have another go at 9.0 this weekend - I notice that 9.0 uses a newer installer called bsdinstall, whereas 8.3 uses sysinstall.

//edit: reinstalled 9.0 again, taking great care - same result, tried resetting factory defaults to BIOS - same. Anyway I am happy with 8.3, so going to stick with that for now.

Thanks for helping this noob everyone.

Last edited by caravel; 23rd June 2012 at 07:11 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot in other partition dgiorgio OpenBSD Installation and Upgrading 13 20th June 2012 11:07 PM
Partition help needed. ros2468 OpenBSD Installation and Upgrading 9 22nd March 2010 12:25 PM
Cannot activate partition in XP. bsdnewbie999 OpenBSD Installation and Upgrading 6 4th May 2009 05:21 PM
swap partition lumiwa FreeBSD General 6 11th September 2008 03:57 PM
/etc on a separate partition DarkEnergy FreeBSD Installation and Upgrading 13 20th May 2008 04:24 AM


All times are GMT. The time now is 07:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick