LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2009, 05:57 AM   #1
macroninesta
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Rep: Reputation: 0
How to make linux boot from primary Slave?


Hi,

I've been using the linux redhat 6.2 for quite sometime.. Now for some reason i have move this hardiskk which was connected as a Primary Master all these days to Pr.Slave.

I dont want to reinstall anything on linux.. As i have lots of data on it.

I just connected this hardisk as Primary Slave and tried to boot the system.... The lilo boots normally but fails while mountng the root filesystem.

"VFS: Unable to mount the root filessystem 03:01.

I am in deep trouble now..plz

Can anyone tell me in detail what are the changes i should make to lilo.conf or anyother files to make it boot from Pr.Slave..

Your support will be highly appreciable.

Thanks
Nesta.
 
Old 06-14-2009, 06:20 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Change all /dev/hda* entries in /etc/fstab to /dev/hdb*

Or

Use volume ID's instead
 
Old 06-14-2009, 07:26 AM   #3
macroninesta
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tuttle View Post
Change all /dev/hda* entries in /etc/fstab to /dev/hdb*

Or

Use volume ID's instead

Thanks for your response.

i tried to replace the entries to hdb* but still i have the same problem

/************* My fstab ***************/
/dev/hda1 / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,owner 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0

none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode620 00

/dev/hda5 swap swap defaults 0 0
/***************************************/

modified to

/*********************************/
/dev/hdb1 / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,owner 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0

none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode620 00

/dev/hdb5 swap swap defaults 0 0
/************* My fstab ***************/



Now when i boot the system shows the following error and im not able to reedit the changes to fstab..it says its only a readonly file.

Error:
-------
Checking root filesystem
Possiblyy non-existent or swap device?
fsck.ext2: Device not configured while trying to open /dev/hdb1

**** An erro occurred during the file system check.
**** Dropping you to a shell; the system will reboot
**** when you leave the shell.
Give the root password for maintenance.

----------------------------------------------


Now i am totally stuck.. i cant go further or revert to original one.. PLlllllzzzzzzzzzzz help...
 
Old 06-14-2009, 07:34 AM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
you can still edit the file with a bootable linux cdrom...

damn! forgot:

boot a linux cdrom

mount /dev/hdb1 /mnt
mount proc -t proc /mnt/proc
chroot /mnt

then edit /etc/lilo.conf to reflect the changes (hda* -> hdb*) then run lilo.
 
Old 06-14-2009, 10:55 AM   #5
macroninesta
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tuttle View Post
you can still edit the file with a bootable linux cdrom...

damn! forgot:

boot a linux cdrom

mount /dev/hdb1 /mnt
mount proc -t proc /mnt/proc
chroot /mnt

then edit /etc/lilo.conf to reflect the changes (hda* -> hdb*) then run lilo.

Thanks!! Sorry for the naive question..
After booting from linux cd what option should i select.. all the options lead to a new installation GUI.

FYI.. I'm using Redhat 6.2 linux CD..

or from the LILO: can i execute something.??
 
Old 06-15-2009, 02:02 AM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
hmmm.... can't remember what to do at the lilo prompt, it's not interactive like grub...
All you need is a working terminal, if the redhat cd won't allow it (I'm sure it will) then try a simple little distro like puppy linux.

To access a new terminal, use this after the cdrom has booted:

If you are in graphical interface (X is running) use CTRL+ALT+F1 thru F6

If you are in non-graphical mode (text only mode) use ALT+F1 thru F6

You should be able to login as root and issue the commands outlined in my previous post.

Last edited by Tuttle; 06-15-2009 at 02:03 AM.
 
Old 06-15-2009, 07:00 AM   #7
maria amirtha raja
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Which program used in mac OS?
 
Old 06-15-2009, 07:45 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Now that, this thread was and is about Lilo and editing it. What do you exactly want from here? If your question is not related to this topic then just start a new thread. Its not a good idea to hijack threads that are not related to your issues.
And when asking a question try to give as much information as possible. Just asking what programs used will tell nothing about your issues. Also if your issue is related to mac then you should also try to figure them out in mac forums.

And read this stuff for sure. It will help you:
http://catb.org/esr/faqs/smart-questions.html
 
  


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
Can i boot from a Primary Slave? shazam75 Linux - Hardware 1 06-22-2008 07:57 PM
CAN I MAKE A SECONDARY _(slave) DNS FROM A PRIMARY (master)?? eder_michael11 Linux - General 0 05-29-2006 01:24 PM
Running Fedora 4 on primary master and cant acsess my xp files on primary slave roxberry1 Linux - Newbie 5 01-29-2006 12:37 PM
Dual boot primary Linspire & XP primary slave? watmonki Linspire/Freespire 5 11-01-2005 09:16 PM
boot loader, MBR, redhat9 on primary slave, winxp on primary master samik Linux - Hardware 4 10-15-2003 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration