LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 07-22-2009, 03:10 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 115

Rep: Reputation: 15
Install grub on a USB hard disk (not disk on key)


My embedded target is PC104 with Pentium-M.
The host is running RHEL.
I built grub from scratch on the host with a toolchain built using Kegel's crosstool.
The host "sees" the USB disk as /dev/hsdb1
But when I entered: grub-intall /dev/hsdb1, the installation failed.
What is the reason for this ? Even DOS can be installed on a bootable USB disk.

I also tried to run mke2fs on the USB hard disk. I got "command not found" error. I searched for mke2fs in all folders.

Thanks.
 
Old 07-22-2009, 05:20 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,228

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
I would doubt RHEL sees disks by that name. Presuming that should be /dev/sdb1, that is a partition, not the disk itself - which would be "/dev/sdb".
With systems like that I prefer to work as root - saves pathing issues. Else use the following
Code:
/sbin/fdisk -l
/sbin/mke2fs <partition-designator>
 
Old 07-22-2009, 07:39 PM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 115

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
I would doubt RHEL sees disks by that name. Presuming that should be /dev/sdb1, that is a partition, not the disk itself - which would be "/dev/sdb".
With systems like that I prefer to work as root - saves pathing issues. Else use the following
Code:
/sbin/fdisk -l
/sbin/mke2fs <partition-designator>
What is the next step ?
grub-install <partition-designator> ?
Thanks !
 
Old 07-22-2009, 09:08 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,228

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Depends what you're trying to do. If you want that disk to be bootable, you'll need to install in the MBR of the device, not the boot sector record of the partition.
Whatever guide you are following should detail what's required.
 
Old 07-22-2009, 10:30 PM   #5
zvivered
Member
 
Registered: Sep 2007
Posts: 115

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
Depends what you're trying to do. If you want that disk to be bootable, you'll need to install in the MBR of the device, not the boot sector record of the partition.
Whatever guide you are following should detail what's required.
I want to create a partition on the disk , format it with ext2, make it bootable and then install grub on it. what is the sequence for doing it ?
 
  


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
Adding second hard disk with windows to boot with grub on first hard disk rushadrenaline Linux - Hardware 3 07-08-2009 04:39 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
How to Install Linux on a USB Hard Disk poda LQ Suggestions & Feedback 2 05-17-2005 07:59 AM
How to Install Linux on a USB Hard Disk poda Linux - Laptop and Netbook 1 05-17-2005 12:48 AM
install a usb external hard disk jik Linux - Newbie 3 08-03-2004 04:21 AM


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

Main Menu
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