LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   new hard drive, grub and swap? (https://www.linuxquestions.org/questions/linux-hardware-18/new-hard-drive-grub-and-swap-138679/)

freychef 01-26-2004 12:26 AM

new hard drive, grub and swap?
 
I've been over the many threads here and this is my understanding of what I should do....

I'm looking to add a 2nd hard drive to my box which will be dedicated to Slackware. The 1st hard drive currently dual boots XP and Libranet. I use Grub to load both OS's.

Please confirm: Once 2nd HD is installed and Slack loaded, I just have to edit my Grub menu.lst to include the location of the 2nd HD and slack boot file? Yes?

And, second question, do I have to create a swap partition for Slack on the 2nd HD or can Slack use the current swap configuration on the 1st HD? I'm not very clear on this one.

Thanks for helping me clear this up.

320mb 01-26-2004 05:37 AM

Quote:

second question, do I have to create a swap partition for Slack on the 2nd HD or can Slack use the current swap configuration on the 1st HD? I'm not very clear on this one.
any and all linux distro's you install CAN use the same swap file.

ac1980 01-26-2004 08:10 AM

You'll have to know your slack kernel name before doing this, if it is /vmlinuz on hdb1 just add to menu.lst

Code:

title = Slackware
root (hd1,0)
kernel /vmlinuz

Be sure not to install another instance of grub on hdb1, since grub searches for menu.lst at boot time, it will use the first one it finds, and this may eventually drive you crazy ;)

PS: Having swap partition on a different disk will probably even increase performance (if you use swap a lot) if the disks are on different buses (e.g. hda and hdc) since disk head doesn't need to go back and forth.

freychef 01-26-2004 08:55 AM

Thanks for the replies,

I just needed some confirmation on these questions.

Cheers.


All times are GMT -5. The time now is 05:30 PM.