LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2019, 01:04 AM   #1
davide445
Member
 
Registered: Dec 2018
Distribution: KDE Neon
Posts: 110

Rep: Reputation: 1
Reconfigure Grub after disk migration


Currently using a dual boot system with windows on one drive and KDE Neon (Ubuntu 18.04 LTS + latest KDE) on another, I have had Grub installed when I installed Linux the first time.

Now purchased a new NVMe SSD I will migrate my whole C drive with Windows installation and where Grub lie.

I expect Grub will be not maintained during the disk migration where I will use Paragon Drive Copy to clone the old Windows installation into the new disk.

Need I to "reinstall" grub? Since I didn't installed it in the first place Im not sure how to manage this.
 
Old 11-27-2019, 02:58 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Ubuntu has great doco, especially on handling grub issues.
But you might get lucky - if not it should simply be a matter of chroot-ing into your system and running grub-install followed by update-grub.
 
1 members found this post helpful.
Old 11-28-2019, 01:59 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
There's also Grub Rescue, contained in this disk.
 
2 members found this post helpful.
Old 11-28-2019, 02:30 AM   #4
davide445
Member
 
Registered: Dec 2018
Distribution: KDE Neon
Posts: 110

Original Poster
Rep: Reputation: 1
What I didn't understand is if being my grub installed in a different disk from the Linux installation need to be managed in a different way.
 
Old 11-28-2019, 07:52 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You don't indicate which version of windows you are using or whether you are using UEFI to boot. The default install of Ubuntu on an EFI machine is to install the Grub efi files to the first EFI partition it finds and if you have windows 10, Grub EFI files are likely on the windows drive on its EFI partition in an ubuntu directory. Running sudo fdisk -l and/or sudo parted -l will show where your EFI partition(s) are. Mounting them will show where the ubuntu EFI files are.
 
Old 11-28-2019, 08:50 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
If your system is uefi it is hard to say, not all uefi firmware/bios are created equal.
 
Old 12-10-2019, 02:51 PM   #7
davide445
Member
 
Registered: Dec 2018
Distribution: KDE Neon
Posts: 110

Original Poster
Rep: Reputation: 1
Tested today just adding the new disk (with no formatting, no disk migration, nothing) and Windows boot is generating an error and need a reboot.
Removing the disk all is back to normality.
I suppose something need to be changed in grub since Linux boot is working fine.
Tomorrow will check about UEFI boot status.
 
Old 12-11-2019, 12:05 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by myself
But you might get lucky
Or not.
That indicates that the firmware is enumerating the new drive first, and all the EFI variables in the NVRAM are pointing to addresses on that new (empty) drive. Nothing to do with grub as the firmware can't even find it. No idea on your Paragon software, but for Linux, just chroot into your system and grub-install to the new drive - it updates those (Linux relevant) variables for you. Best to get Windoze copied over first I would think.
 
Old 12-16-2019, 11:02 AM   #9
davide445
Member
 
Registered: Dec 2018
Distribution: KDE Neon
Posts: 110

Original Poster
Rep: Reputation: 1
Ok In Linux first formatted in NTFS the new drive and next performed grub-install and next boot-repair, got the same error rebooting in Windows.
Digging a bit more resulted that might be a drivers problem so trying to boot in safe mode I was able to boot in Windows.
Uninstalled Nvidia drivers using Display Driver Uninstaller and I was able to boot normally in Windows.
Uninstalled physically Nvidia GPU for safety and now working only with the primary AMD one, working on the sda drive clone using Paragon Drive Copy, will see how is coming out.

Last edited by davide445; 12-16-2019 at 11:03 AM.
 
  


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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
IMAP Mailbox Migration utility for Gmail/iCloud and Calendar Migration tips TB0ne LinuxQuestions.org Member Success Stories 0 03-10-2013 12:33 PM
Mysql 4-5 migration as well as character set migration from latin1 to utf8? helptonewbie Linux - Server 3 05-15-2008 05:15 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Reconfigure Boot Disk Aerick Linux - Newbie 4 04-28-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:45 PM.

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