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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
02-13-2006, 04:55 PM
|
#1
|
|
Member
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238
Rep:
|
How can I install Grub to /dev/sda1
I have formatted a 3.5" 20GB ide hard disk mounted in a USB caddy with seven partitions:
sda1: boot 32M
sda2: swap 512M
sda3: 2G
sda4 ext - sda5 1G; sda6 1G; sda7 12.5G
All save swap have been formatted ext2 and I want to try and make my thinkpad and dell be able to boot off this disk.
I tried to install grub to this device but it will not recognise the drive number
I tried things like
root (hd0,0)
install (sd0)
no go
root (hd1,0)
install (hd1)
no go ...
I wonder if this can actually be done this way - I have been reading a bit on how to make a USB boot disk and things still don't quite add up.
First step I would like is just to have grub command line so I can use this disk as a rescue and recovery disk - eventually with its own mini kernel and some tools etc...
Any tips?
Will
|
|
|
|
02-13-2006, 05:14 PM
|
#2
|
|
Member
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238
Original Poster
Rep:
|
I have rebooted to sus out the BIOS options more fully and find that if I select the USB HDD option at boot I get a grub command line!
I will try too boot to my existing HDD partitions/root from that just to confirm that what I am trying to do is possible.
I got errors about drive number when I tried to install grub though - so I am confused - this drive was just formatted so there is no grub on it (surely it is not hung over from a previous partitioning and multiboot exercise - could the mbr still have that original grub installed on it?)
Because when the last install was on this drive it had been in a laptop.
It would seem that the ThinkPad has no trouble allowing booting from USB drives but will a kernel panic when it tries to load its own USB drivers (/??) much more reading I am guessing - anyone know a tried and trusted way to do this/
?
Will
|
|
|
|
02-13-2006, 06:00 PM
|
#3
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,225
|
Grub supports tab completition, so just type "root (" then <tab> - it'll tell you what it can see. Same applies to "setup", which I think you should be using instead of "install".
Quote from the grub manual re "install";
"This command is fairly complex, and you should not use this command unless you are familiar with GRUB. Use setup (see setup) instead."
As for booting a kernel off it, I'd guess you'd need an initrd/initram. Haven't done it, so hopeffully someone else can tell you for sure.
|
|
|
|
02-13-2006, 09:55 PM
|
#4
|
|
Member
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, work = Ubuntu & openSuse
Posts: 273
Rep:
|
First you have to tell grub which device you want to work with::
grub> device (hd0) /dev/sda1
Then you can do root (....
And yes, syg00 is correct, use setup, not install.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|