Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Problem migrating from SCSI drives to SATA drives

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
subdriver
n00b
n00b
Posts: 29
Joined: Tue Mar 23, 2010 11:30 am

Problem migrating from SCSI drives to SATA drives

  • Quote

Post by subdriver » Mon Feb 23, 2015 11:40 pm

I have a fairly old PC running Gentoo with a 2.6.38 kernel. The machine was built on a stack of UW160 SCSI drives and an Adaptec 39160 controller and works fine. However, the drives are now rather on the small size so I have installed a SATA controller and a pair of SATA drives. The controller is based on the Sil3512 controller, so I've re-compiled the kernel to include support for sata_sil. That all works well, and I've partitioned the new drives and copied across the filesystems.
After doing this, it wouldn't boot, sticking at the grub> prompt resisting all attempts to boot it. I decided to clean things up, so I booted a CD running a 2.6.38 kernel and chrooted into my new disks, spent some time emerging newer versions of packages so I could get a more up-to-date portage installed, re-installed the grub bootloader and generated an initramfs; the initramfs was built without specifying any modules as the crucial drivers are in the kernel.
Now when I boot, I get a message stating "Could not find the root block device in ." I opted to go to the shell where I ran mount with the following result (only the relevant line shown) /dev/sda2 on /newroot type ext3 (ro)

My menu.lst file contains these entries for the kernel I'm using:

kernel /vmlinuz-2.6.38-gentoo root=/dev/sda2 init=/bin/bash rootfstype=ext3
initrd /initramfs-genkernel-x86-2.6.38-gentoo.

The /boot partition is sda1 and the root partition is sda2.
I don't understand why it's reporting it can't find the root block device, then successfully mounts it on /newroot (I've checked and the entire filesystem is as I expect it); any ideas what I could be missing here?
Top
russK
l33t
l33t
User avatar
Posts: 665
Joined: Tue Jun 27, 2006 3:44 am

  • Quote

Post by russK » Tue Feb 24, 2015 2:27 am

Since the kernel boots and you can get into a shell, with the new filesystem mounted on /newroot, I would suggest chroot-ing into the new filesystem and doing the grub2 install as if you are following the handbook at that point:

https://wiki.gentoo.org/wiki/Handbook:A ... Bootloader

HTH
Top
subdriver
n00b
n00b
Posts: 29
Joined: Tue Mar 23, 2010 11:30 am

  • Quote

Post by subdriver » Tue Feb 24, 2015 11:27 am

I don't think the kernel is booting, the environment is a busybox shell, so the initramfs has started but not started the kernel
Edit:I should have said an ash shell with the busybox tool kit.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Tue Feb 24, 2015 1:27 pm

https://forums.gentoo.org/viewtopic-p-7 ... ml#7677328
Top
s0be
Apprentice
Apprentice
User avatar
Posts: 240
Joined: Sat Nov 23, 2002 1:12 pm

  • Quote

Post by s0be » Tue Feb 24, 2015 5:42 pm

subdriver wrote:I don't think the kernel is booting, the environment is a busybox shell, so the initramfs has started but not started the kernel
Edit:I should have said an ash shell with the busybox tool kit.
To help you understand what goes on:

1. Bios boots bootloader after basic hardware configuration
2. Bootloader (probably grub) boots kernel
3. Kernel further initializes hardware
4. (optional) Kernel unpacks initrd/initramfs into memory
a initrd/initramfs sets up root partition (configures raid or unencrypts partition, etc)
b Initrd/initramfs uses switch_root or pivot_root to transfer to on disc partition
5. Kernel or Initrd starts /init(or whatever init is passed on the kernel command line) in the root partition

The kernel is definitely booting if you're getting to a shell in a busybox environment. It's just after that point (it's probably not finding the correct root partition) that the wheels are coming off the track.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Feb 24, 2015 7:22 pm

subdriver,

This message is important for what it does not say.

Code: Select all

"Could not find the root block device in ."
Between the word "in" and the period should be a list of all the block devices the kernel can see.
Here the list is empty, which means "none at all".

In turn, this points the finger at your kernel. Something needed to see your HDDs is missing.

For more help, please post the output of lspci --nn and put your kernel config file onto a pastebin site. Wgetpaste is your friend.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
subdriver
n00b
n00b
Posts: 29
Joined: Tue Mar 23, 2010 11:30 am

  • Quote

Post by subdriver » Tue Feb 24, 2015 11:32 pm

Once I understood that the kernel was booting, I looked for other reasons and realised that /bin wasn't mounting.
So, I looked at what I'd done when I moved the filesystem across, and realised that I had created a separate partition for /bin :oops:
So, I mounted up the bin partition on a temporary mountpoint, did mkdir /bin, copied all of the files across to /bin, tidied up and rebooted and it works! Just a few niggles with the mountpoints to sort out, but it seems to be all good
Thanks for the assistance.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic