LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 01-23-2010, 09:58 PM   #1
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Rep: Reputation: 15
Just added a new sata drive to my gentoo box and...


I started with one sata drive with my root partition on it:

/dev/sda1 boot
/dev/sda2 swap
/dev/sda3 root

and I've just added TWO new sata drives via a pci sata controller (mobo doesn't have 2 more sata ports so I used a sata controller with 2 sata ports)

now the system fails to boot saying /dev/sda3 is not a valid root partition. I've already figured out that linux has decided to make one of the two new sata drives /dev/sda instead of doing something NOT retarded like making the NEW sata drives /dev/sdB and /dev/sdC.

In grub I edit the root=/dev/sda3 to root=/dev/sdc3 and it gets past the part it stopped at earlier and gets further along with booting.

However NOW it stops saying fsck.ext3 cannot clean /dev/sda3.... obviously another incorrect reference to the now invalid root partition name.

How can I fix this annoying issue?
 
Old 01-23-2010, 11:52 PM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
I had a vaughly similar problem like this: Existing hard drive in hole 1 on mother board, existing DVD drive in hole 2.

Plug in a new hd into hole 3.

Grub thinks it's sdb, i.e. the second hd, as I wished, but Debian thinks it's sda.

All that was needed was to plug the new hd into 2 and put the DVD drive into 3.

Don't know if this might help? Aren't you being a bit ambitious putting them both in? Perhaps get one working and then put the second in??
 
Old 01-24-2010, 01:10 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
You probably need to adjust your /boot/grub.conf file and your /etc/fstab file to match the current state of things.
 
Old 01-27-2010, 09:09 AM   #4
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Original Poster
Rep: Reputation: 15
Thanks. Actually I ended up fixing it after complaining on the forums about it by changing /etc/fstab to use /dev/sdc3 as root and then I updated my grub conf later.

It's just annoying that new hardware can hijack existing hardware devices which will _always_ cause problems and need configs updated.

Anyway thanks for the replies!
 
Old 01-27-2010, 05:14 PM   #5
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by alphisb0t View Post
Thanks. Actually I ended up fixing it after complaining on the forums about it by changing /etc/fstab to use /dev/sdc3 as root and then I updated my grub conf later.

It's just annoying that new hardware can hijack existing hardware devices which will _always_ cause problems and need configs updated.

Anyway thanks for the replies!
Thanks for letting us now. Also, please consider marking the thread as solved. The option is available in the "thread tools" menu I think.
 
  


Reply



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
Unable to detect sata dvd drive in my fedora box Ashish Sood Linux - General 8 11-16-2009 04:02 AM
GRUB--sata drive added to existing IDE setup? zkdabek Linux - Hardware 1 10-08-2009 11:31 AM
Added IDE drive to SATA-based system, and found it was sloooow jjge Linux - Hardware 1 03-28-2007 06:26 AM
Added new SATA drive and now FC5 fails to boot dbarabash Linux - Hardware 2 10-28-2006 12:31 PM
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 02:22 PM.

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