Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Run gentoo off an external drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
nadin
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2003
Posts: 103

PostPosted: Thu Nov 10, 2005 9:34 pm    Post subject: Run gentoo off an external drive Reply with quote

Hey,

I work mainly in an windows environment, and so i havent had the need to use gentoo, but the partitioning on my drive suck and i am runing out of disk space (i am using a laptop), so my gentoo installation might be in jeperdy. However I was thinking of doing the following,

I was going to purchase another laptop drive, with the usb encloser. If the drive my laptop has 2 paritions, one for /boot and the other for windows, can i easily configure grub to boot of the sda1 or whatever which contains gentoo on the external usb disk.

My laptop does not have the ability to boot of usb normally hence why i need grub on the original drive. Is it difficult to do this? I read some where that i might need to use initrd with my kernel. If i do is it hard to do? I have compiled a dozen kernels but never had to do anything with initrd.

Thanks,

Nadin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Fri Nov 11, 2005 6:17 pm    Post subject: Reply with quote

nadin,

You no longer need an initrd to boot from USB.
Be sure to build into your kernel all the usb support you need to boot and attach the root filesystem.
The last trick is the rootdelay=<sec> kernel line parameter in grub.conf.

Normally, root would be mouted before USB is started, which is a really bad idea if root is on a USB drive.
The rootdelay parameter, tells the kerenl to wait before attempting to mount root, meanwhile other kernel things are started, including USB. Values of rootdelay between 7 and 30 are reported to work but its a case of trial and error.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Nov 12, 2005 5:32 pm    Post subject: Re: Run gentoo off an external drive Reply with quote

nadin wrote:
My laptop does not have the ability to boot of usb normally hence why i need grub on the original drive.

If this is the case, then you will also need the kernel on the internal harddrive. GRUB is only able to load files (i.e. your kernel) from devices that are supported by the BIOS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum