LinuxQuestions.org
Register a domain and help support LQ
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 12-25-2012, 05:06 PM   #1
asd0z
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 0
Angry Boot problems


Hi everyone

I have bought new external HDD. I want to install linux on it and is ready for experiments.

There are several problems with the disk:

1. the disk has USB3 => BIOS or grub2 can be unable to boot from USB3 (i dont know about support status; it is ok to start with USB2 port).

2. the disk is more than 2TB (3TB actually) => have to use GPT (but it is ok to start with MBR label).

3. and the worst thing disk is 4096 (4KB) sector size. (seems like both: physical and logical ).

4. BIOS doesn't recognize disk and turn its power off.


I want to start with booting OS located at external disk from another grub by chainloading.

The problem is grub2 does not see second drive (hd1). But grub2 can see other USB flash without external power (thumb drive) by the way. But with new HDD I turn on PC, USB HDD starts spin up, work for a while and spin down. USB HDD visible in OS but not in grub2.



How to force grub2 to see USB HDD and scan it for partitions?


OS: Fedora 17
Drive: SEAGATE Expansion STBV3000200 USB 3.0, 3.5" 3Tb

Last edited by asd0z; 12-25-2012 at 05:07 PM.
 
Old 12-25-2012, 05:25 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 12,084

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
"
4. BIOS doesn't recognize disk and turn its power off."

You have to fix this first. Bios must see the drive as either an internal hard drive choice or some other usb type choice.
 
1 members found this post helpful.
Old 12-25-2012, 07:34 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 241Reputation: 241Reputation: 241
from the grub command line (grub2 anyway). Not sure about any usb3 tidbits, but this is how I boot my laptop (chainloaded I suppose) from a grub boot cd. Bios does not support booting usb directly on said laptop. And I run linux on a cruzer 8GB flash stick for that old laptop.

grub> insmod uhci
grub> insmod ohci
grub> insmod usb
grub> ls

If your device isn't powered and listed (partition) at this point, you've got other concerns.

grub> insmod part_msdos
grub> insmod ext2
grub> configfile (usb0a,msdos2)/boot/grub/grub.cfg

The device,partition is as listed via the "ls" on the first half. And the configfile has to be 100% correct as in UUID's (partition specific), or it's almost pointless. And of course /etc/fstab for the linux in question with UUID's since usb is even more quirky than a motherboard with both SATA and PATA (IDE) drives. And it might have been me, or update-grub that put /dev/ into the grub.cfg. The source of my epic fail on first attempts. As in works on one machine (sometimes) and never on another (the actual destination machine). Using UUIDs across the board fixed that quirk.

Baring all this you might see if plop boot manager gives you any joy. The most braindead solution I've seen, although not the most intelligent, just a generic list with no sensing of what is actually there. But it worked for me out of the box until I dotted all the i's and crossed the t's on the grub2 solution.
 
1 members found this post helpful.
Old 12-25-2012, 10:25 PM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,220

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
from the grub command line (grub2 anyway). Not sure about any usb3 tidbits, but this is how I boot my laptop (chainloaded I suppose) from a grub boot cd. Bios does not support booting usb directly on said laptop. And I run linux on a cruzer 8GB flash stick for that old laptop.

grub> insmod uhci
grub> insmod ohci
grub> insmod usb
grub> ls

If your device isn't powered and listed (partition) at this point, you've got other concerns.

grub> insmod part_msdos
grub> insmod ext2
grub> configfile (usb0a,msdos2)/boot/grub/grub.cfg

The device,partition is as listed via the "ls" on the first half. And the configfile has to be 100% correct as in UUID's (partition specific), or it's almost pointless. And of course /etc/fstab for the linux in question with UUID's since usb is even more quirky than a motherboard with both SATA and PATA (IDE) drives. And it might have been me, or update-grub that put /dev/ into the grub.cfg. The source of my epic fail on first attempts. As in works on one machine (sometimes) and never on another (the actual destination machine). Using UUIDs across the board fixed that quirk.

Baring all this you might see if plop boot manager gives you any joy. The most braindead solution I've seen, although not the most intelligent, just a generic list with no sensing of what is actually there. But it worked for me out of the box until I dotted all the i's and crossed the t's on the grub2 solution.
To the OP, if it worked with you this post by Shadow 7 is rare and excellent: it deserves an appreciation.

Last edited by malekmustaq; 12-25-2012 at 10:26 PM.
 
Old 12-26-2012, 04:04 AM   #5
asd0z
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
"
4. BIOS doesn't recognize disk and turn its power off."

You have to fix this first. Bios must see the drive as either an internal hard drive choice or some other usb type choice.
I cannot do anything with it: sometimes helps to wait POST and reboot but not in my case. BIOS update hasn't helped too. That is why i want make boot loader to see this disk.

I will try insmod *.
 
Old 12-26-2012, 09:20 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 241Reputation: 241Reputation: 241
# grub-mkrescue -o grub_eltorito.iso
$ k3b grub_eltorito.iso

To make a basic grub boot disk (with grub2 already installed on your existing system). And the things that you can insmod can be found as .mod files in /boot/grub/. (in theory)

$ ls /boot/grub/*.mod
 
Old 12-26-2012, 11:53 AM   #7
asd0z
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Rep: Reputation: 0
I have tried this from my internal hdd grub2:

Code:
menuentry "usb3" {
insmod uhci
insmod ohci
insmod usb
# following modules not exist in my system, but they were in usb ubuntu server tutor
insmod xhci_hcd
insmod usbhid
insmod hid
insmod usb_storage

ls
insmod part_msdos
insmod ext2
insmod ntfs
ls
}

Negative result. Grub2 see only (hd0) which is internal. It doesn't try to power on external disk while loading new modules.

(Shadow_7, is rescue act something different, should i try it?)

OS obviously sent some commands to USB HDD to power it on. Grub2 should be able to do the same. It either has some unknown command for this or it is just not implemented.
 
Old 12-26-2012, 12:37 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 241Reputation: 241Reputation: 241
It looks like usb3 might have some relation to efi and xnu. So you could try insmod'ing in grub the following modules (in addition to the usb ones).

grub> insmod efiemu
grub> insmod xnu
grub> insmod xnu_uuid

And see if that gives any additional joy.

Most of my tech is old, usb3 is not in my arsenal to play with at the moment. But if it is supported insmod for all *.mod files in /boot/grub should load the module(s) needed for usb3 support. At which point the ls command (in grubs command line mode) should show what it calls the device. If there is support and it works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems with liveCD boot - system dual-boot WINXP and Linux Mint lesley57 Linux - Newbie 4 01-07-2012 03:05 PM
Dual Boot: Linux Boot Problems with LILO on Mandrake 10.0 verity Linux - General 7 10-13-2006 05:48 AM
Marvell Yukon Network driver problems, Lilo Windows boot Problems mellowdog Slackware - Installation 7 01-25-2006 03:18 AM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 10:14 PM
Boot problems, NTLDR missing but trying to boot on second hard drive Outabux Linux - Newbie 0 04-09-2003 06:29 PM


All times are GMT -5. The time now is 11:43 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration