LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-15-2008, 12:03 PM   #16
linuxbee1
LQ Newbie
 
Registered: Mar 2008
Posts: 22

Original Poster
Rep: Reputation: 15

Do i need to change the /etc/fstab file?
 
Old 10-16-2008, 05:18 PM   #17
smbell100
Member
 
Registered: Sep 2007
Location: Shetland, UK
Distribution: Slackware, Mandrake, LFS
Posts: 59

Rep: Reputation: 16
Yes

Change all hdc references to hdb. This is what I would expect to be reported if the 40Gb drive is slave on the primary IDE.
 
Old 10-16-2008, 09:53 PM   #18
linuxbee1
LQ Newbie
 
Registered: Mar 2008
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you all for your replies and advices.

As mentioned in one of the reply I changed all the hdc references hdb in the fstab file. Similarly, changed the kernel line from /dev/hdc1 ro to /dev/hdb1 ro in the menu.1st file.

THE PROBLEM GOT SOLVED!! I am able to boot from 40GB HDD without any issues.

Last edited by linuxbee1; 10-16-2008 at 09:57 PM.
 
Old 10-17-2008, 01:43 PM   #19
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
title Debian GNU/Linux, kernel 2.6.18-6-686
root (hd0,0)

initrd /boot/initrd.img-2.6.18-6-686
savedefault

So grub is working then, that bit's all right.

Try changing kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/hdb1 ro to root=/dev/hda1 (which is what I meant to say above). In unlikely event it doesn't work try various fiddlings with file and are you sure 250 is formatted as ext3, not ext2 perhaps - fdisk -l.
 
Old 10-17-2008, 03:00 PM   #20
AlanPo
LQ Newbie
 
Registered: Jun 2008
Posts: 8

Rep: Reputation: 0
just do not put cdrom in primary IDE master. move it to slave, preferrably secondary.
this way you will avoid this mess with grub setup.
 
Old 10-22-2008, 04:55 AM   #21
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Sorry cocked up above. Difficult to diagnose stuff at a distance like this.

title Debian GNU/Linux, kernel 2.6.18-6-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/hdb1 ro
initrd /boot/initrd.img-2.6.18-6-686
savedefault

Should think that's correct. The problem now is that the OS thinking the first drive is the bigger hd is trying to mount it, like it used to mount the smaller.

So you're right /etc/fstab needs changing. Just replace all the hda's with hdb's.

For completeness. If we were talking sata drives: If small hd was in sata plug 1, and big hd -> sata 3; and cdrom-drive -> sata 2; then swop over the big hd and the cdrom-drive - their plugs. Then no need to fiddle with files (at least with Debian). Same thing may work with ide plugs or whatever they are called.

Last edited by lugoteehalt; 11-02-2008 at 06:59 AM.
 
  


Reply

Tags
boot, grub config



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
How to Change Grub Boot Order Johnny Faster Ubuntu 15 02-05-2010 12:14 PM
Have to change boot order in BIOS to boot ubuntu/winxp Minn3h Linux - Software 7 04-01-2006 05:17 PM
RHEL install hdd in wrong order? how change jmral23 Linux - Software 2 08-16-2005 04:28 PM
how to change boot order Boomba Linux - Newbie 2 01-23-2004 07:33 AM
Change boot order? panicboy Linux - Software 6 01-21-2004 05:55 PM

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

All times are GMT -5. The time now is 09:34 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
Open Source Consulting | Domain Registration