LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-14-2014, 02:11 PM   #1
Jayson Wonder
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Rep: Reputation: 0
Booting After Moving Hard Drive To Another Computer


Hello All,

I am trying to solve an issue with my Kali Linux system. I had to remove my hard drive from one netbook to another, they are very similar in models and hardware should be the same to my knowledge. My system is now getting a hung on boot. Grub seems to be loading the image but it just hangs with a flashing "-".

I think this may be a driver problem? Can anyone recommend who to resolve this? I cannot bot but I can get into grub interface and I could boot from an old Xubunto live USB. Any suggestions would be appreciated.

Thanks,
 
Old 10-14-2014, 04:11 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
If you can get into grub then you may be able to get it to find out where kali.

Why just just reload? Kali is really not a newbie distro, may not be fully secure.
 
Old 10-14-2014, 04:52 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,482

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
That's not much information to go on. Do you have a Live CD/flash drive of any Linux system? If you do, go to the 'bootinfoscript' site (jsut google it) and download and run the script and post the output, a results.txt file. Instructions are in a link in the Description box on their page.

Did the old notebook have only the one drive? Same for the new notebook? Do you see a Grub boot menu at all?

Last edited by yancek; 10-14-2014 at 05:03 PM.
 
Old 10-14-2014, 05:16 PM   #4
Jayson Wonder
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
That's not much information to go on. Do you have a Live CD/flash drive of any Linux system? If you do, go to the 'bootinfoscript' site (jsut google it) and download and run the script and post the output, a results.txt file. Instructions are in a link in the Description box on their page.

Did the old notebook have only the one drive? Same for the new notebook? Do you see a Grub boot menu at all?

Yes I see grub and I can get in to the grub command line. I see my partitions and the image etc. I think it hangs because of maybe drivers or something. Both netbooks had a bay for only 1 drive. I have a live USB flash drive as mentioned. Ill try the bootinfoscript
 
Old 10-15-2014, 03:44 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
I'd think that some reference has changed in grub or in locations in distro.
 
Old 10-15-2014, 07:49 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You should use labels or UUIDs in the grub.cfg and /etc/fstab config files. The /dev/ names can be unpredictable on some hardware. The symptoms seem to suggest this is what's happening. That should be the only thing that you need to change to be able to boot it, as long as there's no chipset quirks. As in 32bit vs. 64bit or non-pae kernel needs.
 
Old 10-16-2014, 04:33 PM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If you moved hdd from 1 machine to anotherI would say it's a case of not having the correct graphics driver.
You can boot to recovery mode via "Advanced Options" at grub menu to see what graphics you have.
 
Old 10-16-2014, 07:36 PM   #8
Jayson Wonder
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Well all of this advice seem really helpful. So far I have entered grub command prompt. I tried to run update-grub but had no success. It say is is an unknown command. I also looked at the grub config file but it says I should not edit this file and there are scripts to do this with.

Is there an better approach to get grub to update and recognize the drive for booting.

I actually think it is a video driver issue is possible. What is the safest way to boot up using generic video driver at boot.

Just an reminder, I only have access to grub command prompt. I do have a USB stick that I can use to boot into a live session.

I am finding various information on the web but I am not sure the safest way as I do not want to loose the install totally.

Thanks,
 
Old 10-16-2014, 07:43 PM   #9
Jayson Wonder
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
If you moved hdd from 1 machine to anotherI would say it's a case of not having the correct graphics driver.
You can boot to recovery mode via "Advanced Options" at grub menu to see what graphics you have.
What exactly an I looking for? I went in to grub and edit mode and I can only see load_video. Should I disable this?
 
Old 10-16-2014, 11:21 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Boot the live system. Mount the device. Get the details on the partion(s) with blkid. Change the (mount point)/boot/grub/grub.cfg and change the (mount point)/etc/fstab on the mounted media. Although depending on the version of grub, changing the /etc/fstab and running update-grub could work (if chroot-ed to the install). But it's simpler to just change both config files on the mounted system than it is to chroot and run things on said media.
 
Old 10-16-2014, 11:27 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You can use "e" in grub to enter edit mode to change the boot items. But if the /etc/fstab is in the way that's not much good. You're looking for the line in grub.cfg that reads something like:

linux /boot/vmlinuz root=/dev/sda1

to change it to something like

linux /boot/vmlinuz root=UUID=ffffffff-ffff-ffff-ffff-ffffffffffff

Where the UUID is what matches the data from blkid. Roughly the same syntax for LABEL=xxx... You're basically swapping the /dev/... for UUID=... or LABEL=... in grub.cfg and fstab.
 
Old 10-17-2014, 02:20 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You should have atleast 2 entries at grub. use the arrow-down key to go to Advanced Options press <Enter> select rescue mode.
 
Old 10-17-2014, 08:36 AM   #13
Jayson Wonder
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
You should have atleast 2 entries at grub. use the arrow-down key to go to Advanced Options press <Enter> select rescue mode.
I have tried to go into this mode and unfourtunately I get the same hung system with a flashing "-". Should this be taking me to some other options?

Thanks,
 
Old 10-17-2014, 12:37 PM   #14
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
It should've taken you to a text console.
 
Old 10-18-2014, 08:46 PM   #15
Jayson Wonder
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
It should've taken you to a text console.
Oddly enough it does not. I. An get into grub command prompt using c or I can get into edit mode using e from grub boot screen.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Moving FreeBSD hard drive to new computer - won't boot DJOtaku *BSD 3 01-13-2009 12:36 PM
Moving FreeBSD hard drive to new computer - won't boot DJOtaku *BSD 2 01-13-2009 09:33 AM
moving a hard drive to another computer fakie_flip Linux - Software 6 06-23-2006 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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