LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 09-22-2006, 12:20 PM   #1
whut-linux
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
How can I reinstall grub into my removable hard disk?


I used to have a pc with windows and red hat installed in the same hard disk. Now I used laptop and I changed my old hard disk into a removable hard disk and deleted the windows from it. Now I want to use the red hat OS from the removable hard disk(since I didn't delete it). I plug the usb port into my laptop and run the linux rescue command. But I cann't find the removable hard disk and cann't reinstall grub. As far as i know, i should first mount the removable hard disk and then reinstall the grub. Can anyone tell me how can i solve the problem? Thank you very much!
 
Old 09-22-2006, 02:01 PM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You need to use grub-install I guess..like "grub-install /dev/hda", but that's a guess for I've only seen that on some web pages and don't remember exactly, so you will want to google a bit to find out how it works. But that's what you're looking for I think
 
Old 09-22-2006, 02:21 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,805

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
You will need to mount the / partition, chroot its mount point then install grub.
However, you will have to rebuild the initial ramdisk (initrd) to include USB support before you will be able to boot from the drive.
 
Old 09-23-2006, 12:17 PM   #4
whut-linux
LQ Newbie
 
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
can you tell me how can i rebuild the initial ramdisk(initrd)? i tried the command
rdisk -l
all i can see is the content of my laptop, i can't find the information of my removable disk!
 
Old 09-23-2006, 12:30 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,805

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Here is an example see man pages mkinitrd for more details.
http://www.simonf.com/usb/

You can use $(uname -r) for your kernel image.
 
Old 09-23-2006, 04:24 PM   #6
dennisraz
LQ Newbie
 
Registered: May 2006
Location: cleveland ohio
Distribution: suse,alinux
Posts: 6

Rep: Reputation: 0
you should be able to reload redhat,just use the update command instead of new installation when booting from the redhat cd.
this should reload the bootloader without ruining your data.
 
  


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
Enabling rwx permissions on my removable USB hard disk? mejpark Suse/Novell 11 10-10-2006 01:08 PM
how to reinstall grub with no linux access or boot disk the ytse cem Linux - Newbie 4 02-08-2006 11:05 AM
GRUB Hard Disk Error joe_wilkins2001 Linux - Newbie 1 01-25-2004 04:29 PM
LAN backup to a removable hard disk chakkerz Linux - Networking 3 12-16-2003 06:11 PM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM


All times are GMT -5. The time now is 02:29 AM.

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