LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-16-2009, 03:13 AM   #1
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
160GB SATA HDD stops machine from booting


i rebooted my desktop computer last night after attempting to install windows XP on another partition, xp made me restart and now the drive stops my machine from getting past POST, when i unplug the drive i can boot into a live CD, but if i try to hotplug the drive i get nothing, can someone please tell me how to recover the MBR of this disk so that i can use it again?
 
Old 08-16-2009, 08:03 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

You could change the boot order in the BIOS to the cd 1st then use the LiveCD to restore your bootloader. It seems that XP overwrote the bootloader. Hopefully you didn't format the whole drive.

BTW, M$ is notorious for this. You should install you M$ product first then your Linux. Backup all the systems so you can restore when problems of this type occur.
 
Old 08-16-2009, 06:48 PM   #3
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
i know this, but the cd is the first boot device, POST fails, it doesn't get as far as a boot loader, when the HDD is plugged in i cant actually access the BIOS to change anything
 
Old 08-16-2009, 06:56 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

I assume the drive is a external USB or just a SATA on the buss.

Remove the drive. Then boot the 'LiveCD' and plug the hdd back after you have the system up. Check your logs to see if you have any errors or relevant information.
 
Old 08-16-2009, 07:10 PM   #5
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
ok, i'll post the dmesg output in a minute
 
Old 08-16-2009, 07:14 PM   #6
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
dmesg output does not change when i plug the drive in, the computer does not pick it up, just to clarify, this is an INTERNAL SATA 160GB HDD it is the only drive in the machine other than optical
 
Old 08-16-2009, 07:15 PM   #7
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
also when i say POST i mean the Power On Self Test of the BIOS fails at detecting the HDD and hangs, it boots perfectly if the drive is disconnected
 
Old 08-16-2009, 08:33 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

How do you have the hdd configured in the BIOS? Do you see it while in the BIOS? Just curious as to how you have things configured in the BIOS? How do you have your drive configured in the BIOS with type and what about AHCI? Tried Legacy?

I thought your statement about the POST was that the system was failing. So the machine just doesn't detect it.

Which Livecd? What about passing parameters to the kernel at boot?
 
Old 08-16-2009, 08:39 PM   #9
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
the machine detects it at post and hangs, it's an ubuntu 9.04 live cd, the drive is configured to S-ATA/P-ATA mode so that the bios prefers sata over pata, other options are PATA and SATA, i can only boot the machine past post if the drive is disconnected or sata mode is disabled
 
Old 08-16-2009, 08:54 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Do you see the drive in the BIOS setup screen while it is plugged in?

How do you have the drive jumpers set on the drive? What is the hdd manufacture and model?
 
Old 08-16-2009, 09:52 PM   #11
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
About finding the HDD...

If it POSTs...

I would try to burn a copy of PartedMagic 4.4 to see if it boots with the HDD present. PM 4.4 has Super Grub Disk for repair as a boot option . You might also try the latest SystemRescueCD.

If not...

I would also look to the interplay of the BIOS settings and how you have configured the HDD. As onebuck intimates, you can use the BIOS alternatives IDE/SATA/AHCI and the set-up configuration of the HDD to try to get the BIOS to co-operate with a live-cd to find the HDD. It is not supposed to disappear.

An advantage of using PartedMagic or SystemRescue is that, while playing with the BIOS and the HDD jumpers, you can use cheat codes to give yourself added variations, if that helps.

If I couldn't get either PM or SystemR to boot, I would try to set the BIOS to Fail-Safe Defaults and try again, changing the HDD to follow BIOS setting given under Fail-Safe.

I would be useful if you followed the querying admonition of the wise onebuck and supplied much more detailed information.

Last edited by thorkelljarl; 08-17-2009 at 10:12 AM.
 
Old 08-16-2009, 10:10 PM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Depending on the motherboard chipset, you may have a motherboard that is sataI and a drive that is sataII. Most of the sataII drives have a jumper to set the drive to sataI. I have seen several Seagate drives behave similarly.
 
Old 08-16-2009, 10:22 PM   #13
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
Guys, the thing doesnt boot if the drive is connected. Period, i cant boot it from anything!
 
Old 08-17-2009, 07:32 AM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Since you don't seem to follow up with things that have been suggested and all you reply is that is doesn't see or boot. I'm out of here.

You've been given a lot of help but you don't provide detailed feedback for us to aid you.
 
Old 08-17-2009, 10:37 AM   #15
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Impatience...

If you want more advice on your problem, you need to tell us what are your equipment specifications and settings, what you tried, and what the result were.

If you are not more perseverant, neither you nor we will make much progress. onebuck had many useful suggestion for ways forward; try some.

In practice, I would pull the HDD so I could get into Setup and start to experiment with the BIOS, reinstalling the HDD to see if it is recognized by a live-cd. The HDD was recognized before, it should be again. However, there are several variables. Why it isn't is a bit of a mystery. There is no standard answer.

Last edited by thorkelljarl; 08-17-2009 at 10:49 AM.
 
  


Reply

Tags
boot, hdd, mbr



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does 160GB SATA HDD support RHEL5 installation? vigram Linux - Software 10 09-04-2008 03:40 PM
Weird sudden problem with 160GB SATA HDD with ext2/3 CodeRipley Linux - Hardware 4 12-23-2007 08:13 PM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 03:47 AM
sata hdd takes too much time booting Ubuntu feisty deepclutch Linux - Hardware 4 07-06-2007 01:38 PM
New SATA stops me booting. petermcp Linux - Software 0 11-02-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration