Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My ubuntu server doesn't boot when I connect sata drive, once I disconnect it it boots fine.

(I'm booting from USB drive)

What I did:

I installed SATA drive, booted normally, with fdisk created partition, formated to ext4 and rebooted. After reboot it doesn't start.

Any ideas?

I have no monitor to see why it's stoping or if there is any error msg.

I'm afraid it's bios that tries to boot from sata drive instead of usb...

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Hard drives tend to have boot priority ahead of USB drives. If so it is unlikely, the system will attempt to boot the USB device.

Try installing grub2 on the hard disk. You should either create a small boot partition on the disk, or configure Grub to boot the USB device. You may have to adjust the device id to reflect reordering the BIOS does when the disk is installed at boot time.

share|improve this answer
    
same hard disk, same usb boot drive on my laptop loads just fine together! Do you still think it's grub? –  Sandro Dzneladze Nov 5 '11 at 17:14
    
#BillThor is not saying it's grub. –  Jay Bazuzi Nov 5 '11 at 18:04
    
absolutely right, I installed GRUB on HDD. And it boots fine now. Thanks! –  Sandro Dzneladze Nov 6 '11 at 12:24
add comment

It sounds like the HDD has higher boot priority than USB. This is a good security default, protecting against both deliberate attacks via USB and a USB drive boot virus.

You have a couple options:

  • Go in to your BIOS settings and change the boot order. Obviously you'll need a console of some kind. Some server hardware supports a remote console, on the serial port or the LAN port, or via an out-of-band management card. If you don't have that, you'll need a crash cart.

  • install a boot loader on the HDD and use that to boot the USB drive. If that's OK with you, then why not install the OS on the HDD and skip the USB drive?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.