LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2016, 02:52 AM   #1
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Rep: Reputation: 22
Boot Problem on emergency HD swap


I have this old PC here that's been doing great with a nice gentoo install on it. Recently a high pitched whine started coming from it - the single HD in it sounds like it's going bad.

So I grab a 400GB I have here, put it in, partition it exactly like the other, and copy the entire boot/root partition (sda1) over. Shut down, remove old drive and make newdrive the boot disk.

I boot SystemRescueCD, chroot into sda1, run
Code:
grub-install /dev/sda
and
Code:
grub-mkconfig
... and it hangs shortly after the kernel gets going with this:
Code:
>> Activating mdev
>> Skipping module load; no modules in the ramdisk!
>> Determining root device ...
>> Detected real_root=/dev/sda1
>> Mounting /dev/sda1 as root...
>> Using mount -t auto -o ro
mount: mounting /dev/sda1 on /newroot failed: no such file or directory
!! Could not mount specified ROOT, try again
!! Could not find the root blockdevice in .
!! Please specifiy another value or:
!! - Press Enter for the same
!! - type 'shell' for a shell
!! - type 'q' to skip...
root block device::
It looks like kernel loads, but my initrd is messed up for some reason.

I used to be a master of this stuff back in LILO days, but now I'm a dotty old guy and everything is new. What's going on here? GRUB2 mystifies me.

Last edited by mdooligan; 08-25-2016 at 02:56 AM.
 
Old 08-25-2016, 10:09 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Use SystemRescueCD to examine /boot/grub/grub.cfg on your new hard drive. You may have references to the UUID of your old drive where you need references to the UUID of your new drive.

---------------------
Steve Stites
 
Old 08-25-2016, 05:26 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
What is this? /newroot
 
Old 08-25-2016, 10:09 PM   #4
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Original Poster
Rep: Reputation: 22
Thank you very much for the responses.

/newroot is the mount point inside initrd. I guess what it's saying is that it cannot find /dev/sda1 because /dev is not running because no modules have been loaded. It cannot find it's modules.

I made very sure the UUIDs matched up, and ran grub-mkconfig. It gave me this /boot/grub/grub.cfg:
Code:
...
[EDIT]
Well, I just went to fetch the grub.cfg from it, and I do believe it's releasing the magic smoke. The keyboard and mouse have stop working, just sitting at sysresccd x session, and I think I smell something from it.

No point in pursuing this any further, off to the recycler it goes. It is a bit old.

Thanks again for the responses. My apologies.

Do I mark this [solved] or can the post be removed?
 
Old 08-26-2016, 11:35 AM   #5
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Original Poster
Rep: Reputation: 22
.. as an addendum, the PC is old enough I think it requires grub2 legacy mode.

https://help.ubuntu.com/community/UE...or_Legacy_mode
 
  


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
GRUB emergency boot CD for a x64bit dual boot chasfgr Linux - Newbie 5 08-17-2010 02:51 PM
swap-files after emergency exit? ungua SUSE / openSUSE 8 08-23-2005 01:58 PM
Emergency - Can't Boot Jaw3000 Linux - Newbie 5 03-13-2004 12:06 PM
SWAP Partition Emergency- Please Help! scottpioso Linux - General 10 05-30-2003 06:55 PM
Emergency Boot Scott Jones Linux - Newbie 3 09-05-2002 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:22 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