LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-21-2005, 09:34 PM   #1
jfbertrand
LQ Newbie
 
Registered: May 2002
Posts: 17

Rep: Reputation: 0
install GRUB on another harddrive.


Hi all, I'm running into a pickle trying to install grub on another drive connected to the same system.

Here's what I have:
hdb - hard drive,
hdc - CompactFlask card

I want to setup a small linux system to boot from my CompactFlash, but I can't seem to passed grub-install.

Here's what I did so far,
mkfs.ext2 /dev/hdc
fdisk /dev/hdc
Create a single linux partition (w/ bootable flag on)

Now I've tried afew way to get grub to install, first one:

# grub-install hd1
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

But after I do this, my file system becomes full:
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdb2 18113556 9715888 7477548 57% /
/dev/hdb1 101086 11044 84823 12% /boot
none 250460 0 250460 0% /dev/shm
/dev/hdc 50506920 49713809 0 100% /mnt/hdc


I'll investigate more, but this is wher I am so far...

Thanks,
JF
 
Old 03-11-2005, 07:25 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
grub-install is a shocker but me thinks grub can not boot usb drives or other such fancies

do a search on the hcl list for your flash card and see what success U can expect?
 
Old 03-11-2005, 08:11 AM   #3
cain_eve
Member
 
Registered: Nov 2004
Posts: 93

Rep: Reputation: 15
if I do this I will

grub-install /dev/sda1

and then vi /boot/grub/grub.conf modify it and change root=/dev/sda1

but first you should know if the flashdisk is scsi?

and I think grub is not support for scsi boot up unless your bios support it.
 
Old 03-12-2005, 02:07 PM   #4
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
Don't use fdisk on Compact Flash.
Just
Code:
mkfs.ext2 /dev/hdc
mount /dev/hdc /mnt/temp
cd /mnt/temp
mkdir grub
cd grub
cp /usr/share/grub/i386-pc/stage* /usr/share/grub/i386-pc/e2fs_stage1_5 /boot/grub/menu.lst .
cd ~
umount /mnt/temp
grub
    > root (hd2)
    > setup (hd2)
    > quit
 
Old 03-12-2005, 07:18 PM   #5
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
Not now, John!

I don't have these playthings but well done on helping poster.
I have taken the liberty of looking at some of your other posts, to steal your ideas.....heh heh
anyhow if you care to read my tutorial you can boot from a grub cdr.

I am taken the liberty of including your idea in the tutorial but it won't appear in the answer link for some time, with credit of course. here
http://www.linuxquestions.org/questi...postid=1208786

can you spare some time to proof read it? (your bit not necessarily the whole lot, heh heh)
 
Old 03-14-2005, 06:25 PM   #6
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
Quote:
Originally posted by aus9
can you spare some time to proof read it?
I've read that tutorial. Great job!
 
Old 03-15-2005, 05:54 AM   #7
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
Not now, John!

what I meant err is the liberty of saying your way to format thumb usb drives
any probs with what I have written

have I missed out some stuff......feel free to be blunt I am used to it
 
Old 03-16-2005, 04:09 PM   #8
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
Quote:
Originally posted by aus9
Not now, John!

what I meant err is the liberty of saying your way to format thumb usb drives
any probs with what I have written

have I missed out some stuff......feel free to be blunt I am used to it
I'd prefer plain english, mate.
I needed some time to discover what err, probs etc. was...
Well, you can also mention that it's waste of memory space just to hold boot loader on 128 MB (or more) Flash Disk.
So Flash disk could be formated with FAT32 file system and be used for transfering files, also.
So, other way of doing the sam job would be:
Code:
mkdosfs -F 32 /dev/hdc
mount /dev/hdc /mnt/temp
cd /mnt/temp
mkdir grub
cd grub
cp /usr/share/grub/i386-pc/stage* /usr/share/grub/i386-pc/fat_stage1_5 /boot/grub/menu.lst .
cd ~
umount /mnt/temp
grub
    > root (hd2)
    > setup (hd2)
    > quit
 
Old 03-18-2005, 05:37 AM   #9
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
bonzer John

I was thinking that some people may prefer to have a emergency usb drive instead of a cdr?

my nephew has a usb thumb drive already formatted when he bought it as a MS format to transfer files so I am not worried about those (l)users.

My poor english request was to see if the syntax was acceptable to you?
 
Old 03-18-2005, 12:01 PM   #10
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
Quote:
Originally posted by aus9
My poor english request was to see if the syntax was acceptable to you?
Sure.
 
Old 03-22-2005, 06:41 AM   #11
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
John

finally added your MS suggestion but ignoring giving our tender reader any advice.....well ok I can give them lots advice but they don't listen.......heh heh........to the howto.

thankyou for your patience
 
  


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
GRUB on external harddrive Norky Linux - Software 1 02-16-2005 07:23 AM
Using Grub to boot Win from 2nd harddrive Steve2001 Linux - Software 5 02-06-2005 11:56 PM
Grub Error +New Harddrive RemusX2 Linux - Hardware 3 09-08-2004 08:58 AM
Install from harddrive? SouLZeR0 Mandriva 4 04-27-2004 07:22 PM
GRUB~Harddrive failed Manarius Linux - Hardware 1 08-03-2003 07:40 PM


All times are GMT -5. The time now is 03:23 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