Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

new ssd in dell optiplex 745, won't even load grub

35 views
Skip to first unread message

Gene Heskett

unread,
Oct 28, 2017, 2:40:04 PM10/28/17
to
Greetings all;

I've partitioned and formatted this 64GB SSD, copied everything from both
working partitions of a 2TB drive to it, filling it up to a whopping
18%, edited the SSD's version of /etc/fstab to use the proper blkid's to
mount it including swap, and edited /boot/grub/device.map to point at
the /dev/disk/by-id description/identifier of the drive. And set the
first partitions boot flag.

But pull the 2TB, and plug its cables into the SSD, and grub is not
loading.

What did I miss?

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>

deloptes

unread,
Oct 28, 2017, 2:50:03 PM10/28/17
to
Gene Heskett wrote:

> But pull the 2TB, and plug its cables into the SSD, and grub is not
> loading.
>
> What did I miss?

In such case I boot from ubuntu usb and do

mount /dev/sdaX /mnt
mount /dev/sdaY /mnt/boot
mount -B /proc /mnt/proc
mount -B /sys /mnt/sys
mount -B /dev /mnt/dev

chroot /mnt

grub-install /dev/sda

where sdaX is your root and sdaY is your boot (if you have such, else ommit)

I hope this helps

regards

PS: Also check bios if it points to boot from the SSD - some optiplex are
picky
Perhaps do this first

Roberto C. Sánchez

unread,
Oct 28, 2017, 2:50:03 PM10/28/17
to
On Sat, Oct 28, 2017 at 02:31:36PM -0400, Gene Heskett wrote:
> Greetings all;
>
> I've partitioned and formatted this 64GB SSD, copied everything from both
> working partitions of a 2TB drive to it, filling it up to a whopping
> 18%, edited the SSD's version of /etc/fstab to use the proper blkid's to
> mount it including swap, and edited /boot/grub/device.map to point at
> the /dev/disk/by-id description/identifier of the drive. And set the
> first partitions boot flag.
>
> But pull the 2TB, and plug its cables into the SSD, and grub is not
> loading.
>
> What did I miss?
>
When swapping boot devices, after I have done transferring the data and
while it is still plugged in as a secondary device, I do the following:

- Mount the new device somewhere (like /mnt)
- Mount the proc, devpts, and sysfs into /mnt
- Chroot into /mnt
- Run update-grub

After that, I shut everything down, remove the original drive, put the
replacement in as primary and everything works.

I just went through this a couple of months ago to replace a failing
drive in my laptop.

Regards,

-Roberto

--
Roberto C. Sánchez

Gene Heskett

unread,
Oct 28, 2017, 3:20:03 PM10/28/17
to
Thank you Roberto, I'll do that yet today.

Gene Heskett

unread,
Oct 28, 2017, 3:30:03 PM10/28/17
to
On Saturday 28 October 2017 14:43:12 deloptes wrote:

> Gene Heskett wrote:
> > But pull the 2TB, and plug its cables into the SSD, and grub is not
> > loading.
> >
> > What did I miss?
>
> In such case I boot from ubuntu usb and do
>
> mount /dev/sdaX /mnt
> mount /dev/sdaY /mnt/boot
> mount -B /proc /mnt/proc
> mount -B /sys /mnt/sys
> mount -B /dev /mnt/dev
>
> chroot /mnt
>
> grub-install /dev/sda


Don't have a buntu on a usb, so...
How about a normal boot to the 2TB drive, then

mount /dev/sdb3 /mnt
mount /dev/sdb1 /mnt/boot
mount -B /proc /mnt/proc
mount -B /sys /mnt/sys
mount -B /dev /mnt/dev

chroot /mnt

grub-install /dev/sdb

> where sdaX is your root and sdaY is your boot (if you have such, else
> ommit)
>
> I hope this helps
>
Between this, and Roberto's post, I think I'll get it, thanks

> regards
>
> PS: Also check bios if it points to boot from the SSD - some optiplex
> are picky

As I'm finding out, first bios I ever saw with enable/disable by the sata
socket options. It errors and locks up if a sata socket is enabled, but
no drive attached. So I've hit the f2 key quite a few times so far this
afternoon. :(

It also does not say anything about ssd's in the boot sequence bios menu.

Bios is 2.3.1, I wonder if a newer one might still be available?

> Perhaps do this first

Thanks Deloptes.

Roberto C. Sánchez

unread,
Oct 28, 2017, 3:40:03 PM10/28/17
to
On Sat, Oct 28, 2017 at 03:28:46PM -0400, Gene Heskett wrote:
>
> mount /dev/sdb3 /mnt
> mount /dev/sdb1 /mnt/boot
> mount -B /proc /mnt/proc
> mount -B /sys /mnt/sys
> mount -B /dev /mnt/dev
>
The last three should be:

mount -t proc /mnt/proc
mount -t sysfs /mnt/sys
mount -t devpts /mnt/dev/pts

Pascal Hambourg

unread,
Oct 28, 2017, 4:20:03 PM10/28/17
to
Le 28/10/2017 à 21:37, Roberto C. Sánchez a écrit :
> On Sat, Oct 28, 2017 at 03:28:46PM -0400, Gene Heskett wrote:
>>
>> mount /dev/sdb3 /mnt
>> mount /dev/sdb1 /mnt/boot
>> mount -B /proc /mnt/proc
>> mount -B /sys /mnt/sys
>> mount -B /dev /mnt/dev
>>
> The last three should be:
>
> mount -t proc /mnt/proc
> mount -t sysfs /mnt/sys
> mount -t devpts /mnt/dev/pts

Doesn't mount expect a filesystem location even it is not used ?
Also, /dev is not going to mount itself on its own.

mount -t devtmpfs dev /mnt/dev
mount -t proc proc /mnt/proc
mount -t sysfs sysfs /mnt/sys
...

David Christensen

unread,
Oct 28, 2017, 5:10:04 PM10/28/17
to
On 10/28/17 11:31, Gene Heskett wrote:
> Greetings all;
>
> I've partitioned and formatted this 64GB SSD, copied everything from both
> working partitions of a 2TB drive to it, filling it up to a whopping
> 18%, edited the SSD's version of /etc/fstab to use the proper blkid's to
> mount it including swap, and edited /boot/grub/device.map to point at
> the /dev/disk/by-id description/identifier of the drive. And set the
> first partitions boot flag.
>
> But pull the 2TB, and plug its cables into the SSD, and grub is not
> loading.
>
> What did I miss?

For system drives, I use dd to copy raw drive contents from one device
to an image file, from one device to another device, and from an image
file to a device:

partition table/ boot loader
boot partition
encrypted swap partition
encrypted boot partition


For this to work:

1. I use BIOS firmware and MS-DOS partition tables.

2. The destination device needs to have at least as many blocks
available as were used by the source device. I have several 16 GB SSD's
and 16 GB USB 3.0 flash drives for this purpose. As different "16 GB"
devices can have a similar, but unequal, number of blocks, I typically
use no more than 90% of the available space when I install.


Given your significant size mismatch (2 TB -> 64 GB), and possible UEFI
and/or GPT, you might want to use a more sophisticated tool. Clonezilla
comes to mind.


David

Gene Heskett

unread,
Oct 28, 2017, 5:30:03 PM10/28/17
to
That optiplex is too old to have ever heard of UEFI, with suitable thanks
to $DIETY.

Which (clonezilla) may fix what I think is the last problem. I have it
booting now, but my gui login to TDE says my passwd is not good. But
goto the login's menu and select a console login, and there it works.

Since this gui is TDE, I've asked Slavek what might be wrong & how to fix
it. TDE has its own tdepasswd, but needs a working gui to run, so I'm
screwed either way.

So, I'll saddle up and go get my missus a paper so she can have her daily
crossword fix, and see what Slavek or Timothy has to say.

Thanks.

Felix Miata

unread,
Oct 28, 2017, 8:30:03 PM10/28/17
to
Gene Heskett composed on 2017-10-28 15:28 (UTC-0400):

> Bios is 2.3.1, I wonder if a newer one might still be available?

My 745 has 2.6.2. Primary Grub is on /dev/sda3 on 1TB rust. I downloaded BIOS
2.6.6, but never got an urge to install it. Download page also offers 2.6.4:
<http://www.dell.com/support/home/us/en/19/product-support/servicetag/901dsc1/drivers>
Better to cut, paste, and edit in your own 7 digit service tag.
--
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata *** http://fm.no-ip.com/

Gene Heskett

unread,
Oct 28, 2017, 9:50:03 PM10/28/17
to
On Saturday 28 October 2017 20:23:33 Felix Miata wrote:

> Gene Heskett composed on 2017-10-28 15:28 (UTC-0400):
> > Bios is 2.3.1, I wonder if a newer one might still be available?
>
Gee, thats ancient compared to yours. :(

> My 745 has 2.6.2. Primary Grub is on /dev/sda3 on 1TB rust. I
> downloaded BIOS 2.6.6, but never got an urge to install it. Download
> page also offers 2.6.4:
> <http://www.dell.com/support/home/us/en/19/product-support/servicetag/
>901dsc1/drivers> Better to cut, paste, and edit in your own 7 digit
> service tag.

I'll have to get it, I saw it in the bios. I assume its put it on a cd
and reboot to the cd?

Thank you Felix.

Felix Miata

unread,
Oct 28, 2017, 10:50:04 PM10/28/17
to
Gene Heskett composed on 2017-10-28 21:43 (UTC-0400):

> On Saturday 28 October 2017 20:23:33 Felix Miata wrote:

>> Gene Heskett composed on 2017-10-28 15:28 (UTC-0400):
>> > Bios is 2.3.1, I wonder if a newer one might still be available?

> Gee, thats ancient compared to yours. :(

>> My 745 has 2.6.2. Primary Grub is on /dev/sda3 on 1TB rust. I
>> downloaded BIOS 2.6.6, but never got an urge to install it. Download
>> page also offers 2.6.4:
>> <http://www.dell.com/support/home/us/en/19/product-support/servicetag/901dsc1/drivers> >> Better to cut, paste, and edit in your own 7 digit service tag.

> I'll have to get it, I saw it in the bios. I assume its put it on a cd
> and reboot to the cd?

CD boot to flash a BIOS is not something I can recall ever trying. I boot DOS to
run DOS flashing utilities, which vary from brand to brand and model to model.
Though my 745 has a floppy drive, apparently I never tried to do it yet, but I
do know I've successfully upgraded a bunch of OptiPlex BIOSes, starting way back
with the 110.

I commonly have a bootable DOS sda1 on my multiboot machines and use it.
Otherwise I most often do a temporary HD swap that I have added the flashing
utility and/or BIOS file to by attaching it by eSATA or USB to whatever machine
downloaded the update(s). Making a USB stick bootable to DOS is something else I
can't recall ever trying yet. Lots of machines here can't boot USB.

http://www.dell.com/support/home/us/en/19/drivers/driversdetails?driverId=GRJ7T
does have a crude instruction how to proceed with flashing the 745. If your 745
has no floppy drive I think you'll probably have to use USB to suffer through
this one on your own, or with help from http://www.bootdisk.com/ and/or
something from http://www.freedos.org/ . The 2.6.6 BIOS file is barely more than
half the capacity of a 3.5" floppy.

Whether your old 745 BIOS in fact has anything to do with Grub failure is
another matter. :-p

Gene Heskett

unread,
Oct 29, 2017, 12:10:04 AM10/29/17
to
My problem, despite having several machines with floppies in them, is
finding one that actually works. Even if removed and cleaned and lubed.

> Whether your old 745 BIOS in fact has anything to do with Grub failure
> is another matter. :-p

I have doubts myself Felix, besides, I managed to get enough ducks in a
row to fix that since I posted, with some help of course. So we're
booting ok now, if at the downright leasurely pace of a trs-80 color
computer. :) Post on this thing is glacial. But once posted, it begins
to wake up and act like a 3.4 GHz Pentium D that it claims it is,
marching along at a more reasonable pace.

Thanks Felix.
0 new messages