Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot boot with root and /boot on different drives
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1218

PostPosted: Sat Jul 09, 2011 11:08 am    Post subject: Cannot boot with root and /boot on different drives Reply with quote

Guys,

first a bit of background: I added a new large, fast SATA drive into my aging desktop and would like to use this as my main drive and run my system from there. Because motherboard SATA link is flakey, the drive is connected via PCI card. It works fine, BIOS finds the drive, and Gentoo recognizes it without issues. The problem is, however, that BIOS only allows booting from IDE drives, but I thought that would not be much of an issue, since I can boot of the old IDE drive (sda) and have / on the new drive (sdb). So basically, I am trying to have want to have /boot on /dev/sda1, but mount / from /dev/sdb3.

I thought that would be easy, I copied all the data to a new drive, but I am having problem with grub at the boot step. Here is what I have in grub.conf:
Quote:
title Kernel-2.6.37-gentoo-r4 SATA root
root (hd0,0)
kernel /boot/kernel-2.6.37-gentoo-r4 root=/dev/sdb3


I thought this would work, but during boot process I get this:
Quote:

VFS: Cannot open root device "sdb3" or unknown-block (0,0)
Please append a correct "root=" boot option; here are the available partitions"


Then there is a list of partitions on sda (sda1,sda2 and sda3) and sr0 (whatever that is) but no sdb. At this point I get kernel panic and that's it.

Anybody knows what I am doing wrong?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Jul 09, 2011 11:16 am    Post subject: Reply with quote

Support for your new SATA card is not built into kernel, it won't work as module.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1218

PostPosted: Sat Jul 09, 2011 11:31 am    Post subject: Reply with quote

Jaglover wrote:
Support for your new SATA card is not built into kernel, it won't work as module.


You may be right, I have a couple of SATA related modules loaded:
Code:
# lsmod | grep ata
sata_via                5320  0
sata_sil                5348  0


Recompiling kernel now
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1218

PostPosted: Sat Jul 09, 2011 8:09 pm    Post subject: Reply with quote

Got things working, but not perfectly. One thing that happened after kernel recompile was that the SATA drive became /dev/sda and original IDE is now /dev/sdb. This caused me confusion about what to set root in grub.conf, but I got that figured out after couple of tries.

The issue I am having us that I get the following message during boot:

Code:
Ext3-fs (sda3): error: couldn't mount because of unsupported optional features (240)
Ext2-fs (sda3): error: couldn't mount because of unsupported optional features (240)
Ext4-fs (sda3): mounted file system with ordered data mode: Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 0:3,


That sounds bad (root mount readonly), but after boot everything looks OK and the root fs is certainly not readonly
Code:
/dev/root on / type ext4 (rw,noatime,commit=0)


The old drive had reiserfs3 for root, new one is ext4. That probably causes the error messages, but I am not sure how fix this.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Sat Jul 09, 2011 8:16 pm    Post subject: Reply with quote

IIRC it should mount root as read-only, and remount it later on.

the ext[234] confusion can be solved, by adding rootfstype=ext4 to the kernel line in grub.

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1218

PostPosted: Sat Jul 09, 2011 9:36 pm    Post subject: Reply with quote

Veldrin wrote:
IIRC it should mount root as read-only, and remount it later on.

the ext[234] confusion can be solved, by adding rootfstype=ext4 to the kernel line in grub.

V.


This worked, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum