LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-14-2001, 03:54 AM   #1
pholm01
LQ Newbie
 
Registered: Dec 2001
Location: southern Sweden
Distribution: Red Hat and Debian
Posts: 3

Rep: Reputation: 0
Linux boot from 2nd HDD in T21


I have successfully installed RH 7.2 on my T21. After the installation I moved the disk to the ultrabay and booted. I'm using GRUB and it find the correct disk and starts booting. After the message 'Mounting root filesystem' I get 'attempting to access beyond end of device' which soon results in 'Kernel Panic: No init found'.
My first disk is 30GB and the Linux one in the ultrabay is 6.4GB. The latter is defined as /dev/hdc during the boot.
Has anyone succeeded in booting from the ultrabay?
As I have no external cdrom my only solution is to install Linux while the target disk is in the primary position and then move it to the ultrabay afterwards.
My optimal solution would be to have 2 entries in the GRUB menu.lst, one
for each disk position.
 
Old 12-14-2001, 03:57 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
sounds like grub is on the 30 G drive and it does not know where the linux disk is because you moved it.
 
Old 12-14-2001, 04:15 AM   #3
pholm01
LQ Newbie
 
Registered: Dec 2001
Location: southern Sweden
Distribution: Red Hat and Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Nope, GRUB is on the 6.4GB disk.
 
Old 12-14-2001, 05:00 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
if grub is coming up on boot then it is just a matter of telling grub where the hard drive with linux on it is.


one thing you could do is put it back like it was when you installed it, put another drive in the bay and see what the drive is located as. Then setup grub to load linux on that drive.

Last edited by DavidPhillips; 12-14-2001 at 05:02 AM.
 
Old 12-14-2001, 08:41 AM   #5
pholm01
LQ Newbie
 
Registered: Dec 2001
Location: southern Sweden
Distribution: Red Hat and Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Problem solved!
First I updated the GRUB config file with a new entry:
title Red Hat from Ultrabay
kernel /vmlinuz-2-4.7-10 ro root=/dev/hdc2
initrd /initrd-2.4.7-10.img
Secondly I duplicated the swap path in the /etc/fstab and changed hda3 to hdc3.
Having two entries for swap makes it possible to run the system from either disk
positions.
I now have a very flexible solution just as I wanted.
Thanks David you pointed me in the right direction!
/Peter
 
  


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
Setting up Linux on a 2nd HDD? jacatone Linux - Newbie 4 03-06-2004 10:12 PM
2nd hdd for linux 54az Linux - Newbie 7 02-06-2004 05:12 PM
Windows 2000 Boot issue after install of Fedora Core on 2nd HDD jchannell Linux - Newbie 0 01-14-2004 07:31 PM
/boot duplicate (2nd hdd wont mount) dsiguy Linux - General 4 09-25-2003 01:46 PM
installing SuSe Linux on 2nd (windows 98) HDD camtheoz Linux - General 1 05-16-2002 03:58 PM


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