On Saturday 28 October 2017 15:18:57 Jon Elson wrote: > On 10/28/2017 01:22 PM, Gene Heskett wrote: > > Greetings; > > > > I have partitioned and formatted this drive, and copied everything > > across from the 2T hard drive to this one, (using mc) then used > > fdisk to toggle the bootable flag, verified its set with gparted, > > and edited its copy of /etc/fstab to use the numbers obtained from > > blkid to mount it in fstab. > > > > And I have edited the /boot/grub/device.map to use the > > by-id syntax to define that SSD drive as opposed to the by-id of the > > 2T drive. Those are all visible in /dev/disk/by-id when the 2T is > > installed and a normal boot is done. > > > > Removeing the 2T, and plugging the ssd into its cables, IMO it ought > > to just boot. But where the initial grub loading line comes up with > > the 2T installed, all I am getting is a blinking cursor. So grub > > isn't even loading from it. > > OK, so sounds like GRUB is not loading from the boot > sector. here are my instructions to do this, from a working > Linux system. (You can do this by booting off a live CD, or > plugging the won't-boot drive into another system.) > > So, these are my instructions for making the drive bootable: > > mount disk copy : sudo mount /dev/sdb1 /mnt/disk > sudo chroot /mnt/disk > sudo grub-install /dev/sda > > Now, boot from copy of the disk, it will go to grub rescue > > (as it has no instructions on how to boot) > > list partitions : > ls > find and list the boot directory: > set root=(hd0,1)/boot > ls ( you will see the exact file > names in the /boot directory) > insmod linux > linux (hd0,1)/boot/vmlinuz-x.x.x-xx-generic root=/dev/sda1 > initrd initrd.img-x.xx.x-xx-generic > boot (this will do a one-time boot of the system) > > then, once the system is up : > > sudo grub-install /dev/sda > sudo update-grub > > Now, the system should be able to boot automatically. > > Jon > I had a couple guys tell me a bit simpler way, which I'll try first. printed for instructions while at a keyboard out there, thanks Jon. > ---------------------------------------------------------------------- >-------- Check out the vibrant tech community on one of the world's > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users
Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
