Can't update grub

Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't update grub

Mark Fraser-2
I've tried asking this questions in numerous other places and so far
I've had no response, so I'm hoping someone here will be able to help.

I rebooted my server last week and when I tried to remove old kernels it
was stopping when trying to update grub. I ran update-grub2 on its own
and I get:

Generating grub configuration file ...
grub-probe: error: not a directory.

fdisk -l shows:

Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x31337774

Device     Boot     Start       End  Sectors Size Id Type
/dev/sda1  *         2048  52430847 52428800  25G 83 Linux
/dev/sda2        52430848 146802687 94371840  45G 83 Linux

Running grub-probe -v -d /dev/sda1 produces this:
grub-probe: info: adding `hd0' -> `/dev/sda' from device.map.
grub-probe: info: adding `hd1' -> `/dev/sdb' from device.map.
grub-probe: info: adding `hd2' -> `/dev/sdc' from device.map.
grub-probe: info: adding `hd3' -> `/dev/sdd' from device.map.
grub-probe: info: Cannot stat
`/dev/disk/by-id/usb-Seagate_Backup+_Hub_BK_NA8TT3NB-0:0', skipping.
grub-probe: info: Cannot stat
`/dev/disk/by-id/usb-Seagate_Expansion_NA84KDR3-0:0', skipping.
grub-probe: info: /dev/sda1 is present.
grub-probe: info: Looking for /dev/sda1.
grub-probe: info: /dev/sda is a parent of /dev/sda1.
grub-probe: info: /dev/sda1 starts from 2048.
grub-probe: info: opening the device hd0.
grub-probe: info: drive = 0.
grub-probe: info: the size of hd0 is 234441648.
grub-probe: info: drive = 0.
grub-probe: info: the size of hd0 is 234441648.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Partition 0 starts from 2048.
grub-probe: info: /dev/sda1 is present.
grub-probe: info: Looking for /dev/sda1.
grub-probe: info: /dev/sda is a parent of /dev/sda1.
grub-probe: info: /dev/sda1 starts from 2048.
grub-probe: info: opening the device hd0.
grub-probe: info: drive = 0.
grub-probe: info: the size of hd0 is 234441648.
grub-probe: info: drive = 0.
grub-probe: info: the size of hd0 is 234441648.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Partition 0 starts from 2048.
grub-probe: info: /dev/sda1 is present.
grub-probe: info: Looking for /dev/sda1.
grub-probe: info: /dev/sda is a parent of /dev/sda1.
grub-probe: info: /dev/sda1 starts from 2048.
grub-probe: info: opening the device hd0.
grub-probe: info: drive = 0.
grub-probe: info: the size of hd0 is 234441648.
grub-probe: info: drive = 0.
grub-probe: info: the size of hd0 is 234441648.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk hd0.
grub-probe: info: Scanning for mdraid1x devices on disk hd0.
grub-probe: info: Scanning for mdraid09 devices on disk hd0.
grub-probe: info: Scanning for mdraid09_be devices on disk hd0.
grub-probe: info: Scanning for dmraid_nv devices on disk hd0.
grub-probe: info: Scanning for ldm devices on disk hd0.
grub-probe: info: scanning hd0 for LDM.
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: no LVM signature found.
grub-probe: info: Partition 0 starts from 2048.
grub-probe: info: opening hd0,msdos1.
grub-probe: info: drive = 0.
grub-probe: info: the size of hd0 is 234441648.
grub-probe: error: not a directory.

Every other partition on that drive end with it saying ext2.

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|

Re: Can't update grub

Liam Proven
On Thu, 4 Oct 2018 at 12:35, Mark Fraser <[hidden email]> wrote:
>
> I've tried asking this questions in numerous other places and so far
> I've had no response, so I'm hoping someone here will be able to help.
>
> I rebooted my server last week and when I tried to remove old kernels it
> was stopping when trying to update grub. I ran update-grub2 on its own
> and I get:

This is just guesswork, but:

«
`/dev/disk/by-id/usb-Seagate_Backup+_Hub_BK_NA8TT3NB-0:0', skipping.
grub-probe: info: Cannot stat
`/dev/disk/by-id/usb-Seagate_Expansion_NA84KDR3-0:0', skipping.
»

That doesn't look good. Remove that device/those devices and try again?

Also, you seem to have a small /boot partition -- is that right? Is
there any free space in it?

--
Liam Proven - Profile: https://about.me/liamproven
Email: [hidden email] - Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|

Re: Can't update grub

Mark Fraser-2
On 08/10/18 10:24, Liam Proven wrote:

> On Thu, 4 Oct 2018 at 12:35, Mark Fraser <[hidden email]> wrote:
>>
>> I've tried asking this questions in numerous other places and so far
>> I've had no response, so I'm hoping someone here will be able to help.
>>
>> I rebooted my server last week and when I tried to remove old kernels it
>> was stopping when trying to update grub. I ran update-grub2 on its own
>> and I get:
>
> This is just guesswork, but:
>
> «
> `/dev/disk/by-id/usb-Seagate_Backup+_Hub_BK_NA8TT3NB-0:0', skipping.
> grub-probe: info: Cannot stat
> `/dev/disk/by-id/usb-Seagate_Expansion_NA84KDR3-0:0', skipping.
> »
>
> That doesn't look good. Remove that device/those devices and try again?

Re-ran grub-mkdevicemap and those are OK now.

> Also, you seem to have a small /boot partition -- is that right? Is
> there any free space in it?
>

Filesystem              Size  Used Avail Use% Mounted on
udev                    5.9G     0  5.9G   0% /dev
tmpfs                   1.2G   32M  1.2G   3% /run
/dev/sda1                25G  3.7G   20G  16% /
tmpfs                   5.9G  8.0K  5.9G   1% /dev/shm
tmpfs                   5.0M     0  5.0M   0% /run/lock
tmpfs                   5.9G     0  5.9G   0% /sys/fs/cgroup
/dev/sda2                45G   13G   29G  31% /var
/dev/sdd1               1.8T  1.3T  539G  71% /mnt/TV
/dev/sdc1               3.6T  3.4T  193G  95% /mnt/Film
/dev/sdb1               917G  342G  557G  39% /home
cgmfs                   100K     0  100K   0% /run/cgmanager/fs
192.168.2.107:/var/www   29G  2.0G   26G   8% /mnt/webcam
tmpfs                   1.2G     0  1.2G   0% /run/user/1000
/dev/sde1               7.3T  4.7T  2.3T  68% /mnt/seagatebackup
/dev/sdf1               1.8T  1.7T  139G  93% /mnt/backup

Plenty of space on sda1.

Just tried installing grub on sdb and that also generates a "not a
directory" error.

grub-probe works on all drives and partitions except /dev/sda1.

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|

Re: Can't update grub

Liam Proven
On Mon, 8 Oct 2018 at 16:08, Mark Fraser <[hidden email]> wrote:

>
> On 08/10/18 10:24, Liam Proven wrote:
> > On Thu, 4 Oct 2018 at 12:35, Mark Fraser <[hidden email]> wrote:
> >>
> >> I've tried asking this questions in numerous other places and so far
> >> I've had no response, so I'm hoping someone here will be able to help.
> >>
> >> I rebooted my server last week and when I tried to remove old kernels it
> >> was stopping when trying to update grub. I ran update-grub2 on its own
> >> and I get:
> >
> > This is just guesswork, but:
> >
> > «
> > `/dev/disk/by-id/usb-Seagate_Backup+_Hub_BK_NA8TT3NB-0:0', skipping.
> > grub-probe: info: Cannot stat
> > `/dev/disk/by-id/usb-Seagate_Expansion_NA84KDR3-0:0', skipping.
> > »
> >
> > That doesn't look good. Remove that device/those devices and try again?
>
> Re-ran grub-mkdevicemap and those are OK now.

Well, OK, er, good, but that's not what I said, is it?

I suggested _removing_ those devices and trying again -- not making
sure that GRUB was able to see them correctly.

If they're backup drives, as the names suggest, then temporary removal
should not hurt, right?

--
Liam Proven - Profile: https://about.me/liamproven
Email: [hidden email] - Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|

Re: Can't update grub

Mark Fraser-2
On Mon, 8 Oct 2018, 15:33 Liam Proven, <[hidden email]> wrote:
On Mon, 8 Oct 2018 at 16:08, Mark Fraser <[hidden email]> wrote:
>
> On 08/10/18 10:24, Liam Proven wrote:
> > On Thu, 4 Oct 2018 at 12:35, Mark Fraser <[hidden email]> wrote:
> >>
> >> I've tried asking this questions in numerous other places and so far
> >> I've had no response, so I'm hoping someone here will be able to help.
> >>
> >> I rebooted my server last week and when I tried to remove old kernels it
> >> was stopping when trying to update grub. I ran update-grub2 on its own
> >> and I get:
> >
> > This is just guesswork, but:
> >
> > «
> > `/dev/disk/by-id/usb-Seagate_Backup+_Hub_BK_NA8TT3NB-0:0', skipping.
> > grub-probe: info: Cannot stat
> > `/dev/disk/by-id/usb-Seagate_Expansion_NA84KDR3-0:0', skipping.
> > »
> >
> > That doesn't look good. Remove that device/those devices and try again?
>
> Re-ran grub-mkdevicemap and those are OK now.

Well, OK, er, good, but that's not what I said, is it?

I suggested _removing_ those devices and trying again -- not making
sure that GRUB was able to see them correctly.

If they're backup drives, as the names suggest, then temporary removal
should not hurt, right?

I did try that at a previous attempt and it still didn't work.

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/