help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems dual booting Ubuntu 16.04 and Windows 10


From: David Collier
Subject: Re: problems dual booting Ubuntu 16.04 and Windows 10
Date: Mon, 14 May 2018 21:57:36 -0700

On Sun, May 13, 2018 at 11:40 PM Pascal Hambourg <address@hidden>
wrote:

> Le 13/05/2018 à 20:26, David Collier a écrit :
>
> > /dev/sde1:unknown Linux distribution:Linux:linux
>
> What is /dev/sde1 ? The live USB ?
>

/dev/sde is a 2TB hard drive formatted NTFS for sharing between linux and
windows, I am not sure why it is reported as linux in this case:

>
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> address@hidden:/etc# os-prober
> /dev/sdc2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot
> Manager:Windows:efi
> /dev/sde1:unknown Linux distribution:Linux:linux
> grub-probe: error: cannot find a GRUB drive for /dev/sdf1.  Check your
> device.map.
> address@hidden:/etc# fdisk -l /dev/sde
> Disk /dev/sde: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disklabel type: gpt
> Disk identifier: B5FAA2AB-CE9B-422C-A0A3-2DD67CF87239
>
> Device          Start        End    Sectors  Size Type
> /dev/sde1        2048 3828889599 3828887552  1.8T Microsoft basic data
> /dev/sde2  3828889600 3907028991   78139392 37.3G Linux swap
> address@hidden:/etc#
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> >
> > > grub-probe: error: cannot find a GRUB drive for /dev/sdf1.  Check your
> > > device.map.
> >
> > What is /dev/sdf ?
>

looks like this is the USB stick:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
address@hidden:/etc# fdisk -l /dev/sdf
Disk /dev/sdf: 7.4 GiB, 7918845952 bytes, 15466496 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: 0x550f2a26

Device     Boot   Start     End Sectors  Size Id Type
/dev/sdf1  *          0 3172287 3172288  1.5G  0 Empty
/dev/sdf2       3138412 3143147    4736  2.3M ef EFI (FAT-12/16/32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> address@hidden:/# update-grub
> > Generating grub configuration file ...
> > Warning: Setting GRUB_TIMEOUT to a non-zero value when
> GRUB_HIDDEN_TIMEOUT
> > is set is no longer supported.
> > Found linux image: /boot/vmlinuz-4.13.0-41-generic
> > Found initrd image: /boot/initrd.img-4.13.0-41-generic
> > Found linux image: /boot/vmlinuz-4.13.0-39-generic
> > Found initrd image: /boot/initrd.img-4.13.0-39-generic
> > Found linux image: /boot/vmlinuz-4.13.0-38-generic
> > Found initrd image: /boot/initrd.img-4.13.0-38-generic
> > done
>
> I do not see the other systems detected by os-prober.
> Check the options in /etc/default/grub.
>

 These are the only uncommented lines in /etc/default/grub

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable=1"
GRUB_CMDLINE_LINUX=""
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> note the error reported by os-prober. Now there is no grub menu at all
> > during boot, the machine boots directly into Ubuntu (was I supposed to
> run
> > grub-mkconfig at some point)?
>
> No, update-grub calls grub-mkconfig.
>
> > (Also, in the command line grub now shows two partitions instead of one,
> > but my experiments with chainloading Windows all failed.)
>
> Can you elaborate ?


What I meant to say was that running ls in grub command line mode (which I
can't do presently, as the system does not stop at grub menu at boot any
more :), it was showing two boot partitions, one on hd0 and one on hd2
IIRC, but I still could not manage to force it to boot from the partition
which seemed to be the windows boot partition.

before all these exercises grub in the command line mode was showing only
one boot partition.

thank you,
-dc


>
_______________________________________________
> Help-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]