View previous topic :: View next topic |
Author |
Message |
mhodak Veteran
Joined: 15 Nov 2003 Posts: 1218
|
Posted: Sat Jul 09, 2011 11:08 am Post subject: Cannot boot with root and /boot on different drives |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
mhodak Veteran
Joined: 15 Nov 2003 Posts: 1218
|
Posted: Sat Jul 09, 2011 11:31 am Post subject: |
|
|
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 |
|
|
mhodak Veteran
Joined: 15 Nov 2003 Posts: 1218
|
Posted: Sat Jul 09, 2011 8:09 pm Post subject: |
|
|
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 |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Sat Jul 09, 2011 8:16 pm Post subject: |
|
|
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 |
|
|
mhodak Veteran
Joined: 15 Nov 2003 Posts: 1218
|
Posted: Sat Jul 09, 2011 9:36 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|