Discussion:
[gentoo-user] Will installing grub-2.02 break my grub-0.97 setup?
(too old to reply)
Grant Edwards
2016-05-05 22:10:03 UTC
Permalink
I'd like to to install winusb, and it appears to depend on grub-2:

$ sudo emerge -av winusb

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] sys-fs/ntfs3g-2014.2.15-r1::gentoo USE="acl external-fuse ntfsprogs xattr -debug -ntfsdecrypt -static-libs -suid" 1,117 KiB
[ebuild N ] sys-block/parted-3.2::gentoo USE="debug nls readline -device-mapper (-selinux) -static-libs" 1,617 KiB
[ebuild NS ] sys-boot/grub-2.02_beta2-r9:2/2.02_beta2-r9::gentoo [0.97-r16:0::gentoo] USE="fonts multislot nls themes -debug -device-mapper -doc -efiemu (-libzfs) -mount -sdl -static {-test} -truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen" 1,739 KiB
[ebuild N ] sys-boot/winusb-1.0.11::gentoo 553 KiB

Total: 4 packages (3 new, 1 in new slot), Size of downloads: 5,025 KiB

Would you like to merge these packages? [Yes/No]

However, I'm prefectly happy with grub-0.97, and want to continue
using it. If I let portage install grub:2, is it going to interfere
with my continued use of grub:0?

Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...

Right?
--
Grant Edwards grant.b.edwards Yow! Why is everything made
at of Lycra Spandex?
gmail.com
Mike Gilbert
2016-05-05 23:50:02 UTC
Permalink
Post by Grant Edwards
$ sudo emerge -av winusb
Calculating dependencies... done!
[ebuild N ] sys-fs/ntfs3g-2014.2.15-r1::gentoo USE="acl external-fuse ntfsprogs xattr -debug -ntfsdecrypt -static-libs -suid" 1,117 KiB
[ebuild N ] sys-block/parted-3.2::gentoo USE="debug nls readline -device-mapper (-selinux) -static-libs" 1,617 KiB
[ebuild NS ] sys-boot/grub-2.02_beta2-r9:2/2.02_beta2-r9::gentoo [0.97-r16:0::gentoo] USE="fonts multislot nls themes -debug -device-mapper -doc -efiemu (-libzfs) -mount -sdl -static {-test} -truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen" 1,739 KiB
[ebuild N ] sys-boot/winusb-1.0.11::gentoo 553 KiB
Total: 4 packages (3 new, 1 in new slot), Size of downloads: 5,025 KiB
Would you like to merge these packages? [Yes/No]
However, I'm prefectly happy with grub-0.97, and want to continue
using it. If I let portage install grub:2, is it going to interfere
with my continued use of grub:0?
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
Right?
It will not interfere with grub legacy (0.97).
Peter Humphrey
2016-05-06 09:10:03 UTC
Permalink
--->8
Post by Mike Gilbert
Post by Grant Edwards
I'm prefectly happy with grub-0.97, and want to continue
using it. If I let portage install grub:2, is it going to interfere
with my continued use of grub:0?
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
Right?
It will not interfere with grub legacy (0.97).
Maybe not in the slot, but when it gets installed to the MBR it will
overwrite the 0.97 boot code there.
--
Rgds
Peter
Mike Gilbert
2016-05-06 13:40:02 UTC
Permalink
Post by Peter Humphrey
--->8
Post by Mike Gilbert
Post by Grant Edwards
I'm prefectly happy with grub-0.97, and want to continue
using it. If I let portage install grub:2, is it going to interfere
with my continued use of grub:0?
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
Right?
It will not interfere with grub legacy (0.97).
Maybe not in the slot, but when it gets installed to the MBR it will
overwrite the 0.97 boot code there.
grub only gets installed in the MBR when you invoke grub-install or
grub2-install.

I assumed that Grant is intelligent not to run grub2-install on his system.
Grant Edwards
2016-05-06 13:50:01 UTC
Permalink
[...]
Post by Mike Gilbert
Post by Peter Humphrey
Post by Mike Gilbert
Post by Grant Edwards
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
[...]
Post by Mike Gilbert
Post by Peter Humphrey
Post by Mike Gilbert
It will not interfere with grub legacy (0.97).
Maybe not in the slot, but when it gets installed to the MBR it will
overwrite the 0.97 boot code there.
grub only gets installed in the MBR when you invoke grub-install or
grub2-install.
I assumed that Grant is intelligent not to run grub2-install on his system.
Yes, I know not to run grub2-install (and I trust that winusb will not
do so either). Just to be sure, I'll not run winusb as root...
--
Grant Edwards grant.b.edwards Yow! I've got an IDEA!!
at Why don't I STARE at you
gmail.com so HARD, you forget your
SOCIAL SECURITY NUMBER!!
Mike Gilbert
2016-05-06 14:00:01 UTC
Permalink
Post by Grant Edwards
[...]
Post by Mike Gilbert
Post by Peter Humphrey
Post by Mike Gilbert
Post by Grant Edwards
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
[...]
Post by Mike Gilbert
Post by Peter Humphrey
Post by Mike Gilbert
It will not interfere with grub legacy (0.97).
Maybe not in the slot, but when it gets installed to the MBR it will
overwrite the 0.97 boot code there.
grub only gets installed in the MBR when you invoke grub-install or
grub2-install.
I assumed that Grant is intelligent not to run grub2-install on his system.
Yes, I know not to run grub2-install (and I trust that winusb will not
do so either). Just to be sure, I'll not run winusb as root...
It is entirely possible that winusb might call grub2-install with your
USB disk as a target. That would also be fairly safe.
Mike Gilbert
2016-05-06 14:10:02 UTC
Permalink
Post by Mike Gilbert
Post by Grant Edwards
[...]
Post by Mike Gilbert
Post by Peter Humphrey
Post by Mike Gilbert
Post by Grant Edwards
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
[...]
Post by Mike Gilbert
Post by Peter Humphrey
Post by Mike Gilbert
It will not interfere with grub legacy (0.97).
Maybe not in the slot, but when it gets installed to the MBR it will
overwrite the 0.97 boot code there.
grub only gets installed in the MBR when you invoke grub-install or
grub2-install.
I assumed that Grant is intelligent not to run grub2-install on his system.
Yes, I know not to run grub2-install (and I trust that winusb will not
do so either). Just to be sure, I'll not run winusb as root...
It is entirely possible that winusb might call grub2-install with your
USB disk as a target. That would also be fairly safe.
And in fact, it does exactly that:

# Grub
echo "Installing grub..."
grub2-install --root-directory="$partitionMountPath" "$device"
Grant Edwards
2016-05-06 14:50:02 UTC
Permalink
[...]
Post by Mike Gilbert
Post by Mike Gilbert
Post by Grant Edwards
Yes, I know not to run grub2-install (and I trust that winusb will not
do so either). Just to be sure, I'll not run winusb as root...
It is entirely possible that winusb might call grub2-install with your
USB disk as a target. That would also be fairly safe.
# Grub
echo "Installing grub..."
grub2-install --root-directory="$partitionMountPath" "$device"
Thanks. That's good to know -- I'll definitely set things up so I'm
not running winusb as root.
--
Grant Edwards grant.b.edwards Yow! An INK-LING? Sure --
at TAKE one!! Did you BUY any
gmail.com COMMUNIST UNIFORMS??
Peter Humphrey
2016-05-06 15:10:02 UTC
Permalink
Post by Grant Edwards
Post by Mike Gilbert
On Fri, May 6, 2016 at 9:40 AM, Grant Edwards
[...]
Post by Mike Gilbert
Post by Grant Edwards
Yes, I know not to run grub2-install (and I trust that winusb will not
do so either). Just to be sure, I'll not run winusb as root...
It is entirely possible that winusb might call grub2-install with your
USB disk as a target. That would also be fairly safe.
# Grub
echo "Installing grub..."
grub2-install --root-directory="$partitionMountPath" "$device"
Thanks. That's good to know -- I'll definitely set things up so I'm
not running winusb as root.
Well, you could always reinstall grub-0 before rebooting, to make sure.
--
Rgds
Peter
Grant Edwards
2016-05-06 16:30:01 UTC
Permalink
Post by Peter Humphrey
Post by Grant Edwards
Post by Mike Gilbert
Post by Mike Gilbert
It is entirely possible that winusb might call grub2-install with your
USB disk as a target. That would also be fairly safe.
# Grub
echo "Installing grub..."
grub2-install --root-directory="$partitionMountPath" "$device"
Thanks. That's good to know -- I'll definitely set things up so I'm
not running winusb as root.
Well, you could always reinstall grub-0 before rebooting, to make sure.
I just created a systemsrescuecd bootable USB flash drive that can be
be used to re-install grub-0 in the MBR if something does go wrong.
But, running winusb as a non-privlidged user should prevent any
collateral damage to the MBR.
--
Grant Edwards grant.b.edwards Yow! Should I do my BOBBIE
at VINTON medley?
gmail.com
Neil Bothwick
2016-05-06 20:30:02 UTC
Permalink
Post by Grant Edwards
Post by Peter Humphrey
Post by Grant Edwards
Thanks. That's good to know -- I'll definitely set things up so I'm
not running winusb as root.
Well, you could always reinstall grub-0 before rebooting, to make sure.
I just created a systemsrescuecd bootable USB flash drive that can be
be used to re-install grub-0 in the MBR if something does go wrong.
But, running winusb as a non-privlidged user should prevent any
collateral damage to the MBR.
It should also prevent winusb writing to the MBR of the USB stick, which
sort of defeats the point.
--
Neil Bothwick

mandelbug /man'del-buhg/ n.
[from the Mandelbrot set] A
bug whose underlying causes are so complex and obscure as to make
its behavior appear chaotic or even non-deterministic. This term
implies that the speaker thinks it is a Bohr bug, rather than
a heisenbug. See also schroedinbug.
Grant Edwards
2016-05-07 14:40:02 UTC
Permalink
Post by Neil Bothwick
Post by Grant Edwards
Post by Peter Humphrey
Post by Grant Edwards
Thanks. That's good to know -- I'll definitely set things up so I'm
not running winusb as root.
Well, you could always reinstall grub-0 before rebooting, to make sure.
I just created a systemsrescuecd bootable USB flash drive that can be
be used to re-install grub-0 in the MBR if something does go wrong.
But, running winusb as a non-privlidged user should prevent any
collateral damage to the MBR.
It should also prevent winusb writing to the MBR of the USB stick,
which sort of defeats the point.
Nope. I have my system configured so that my USB flash drives are
writable for users in the group "usb" -- of which I am one.

--
Grant
Dale
2016-05-06 02:30:01 UTC
Permalink
Post by Grant Edwards
$ sudo emerge -av winusb
Calculating dependencies... done!
[ebuild N ] sys-fs/ntfs3g-2014.2.15-r1::gentoo USE="acl external-fuse ntfsprogs xattr -debug -ntfsdecrypt -static-libs -suid" 1,117 KiB
[ebuild N ] sys-block/parted-3.2::gentoo USE="debug nls readline -device-mapper (-selinux) -static-libs" 1,617 KiB
[ebuild NS ] sys-boot/grub-2.02_beta2-r9:2/2.02_beta2-r9::gentoo [0.97-r16:0::gentoo] USE="fonts multislot nls themes -debug -device-mapper -doc -efiemu (-libzfs) -mount -sdl -static {-test} -truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen" 1,739 KiB
[ebuild N ] sys-boot/winusb-1.0.11::gentoo 553 KiB
Total: 4 packages (3 new, 1 in new slot), Size of downloads: 5,025 KiB
Would you like to merge these packages? [Yes/No]
However, I'm prefectly happy with grub-0.97, and want to continue
using it. If I let portage install grub:2, is it going to interfere
with my continued use of grub:0?
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
Right?
I thought I did at one time. Just to see, I tried this:


***@fireball /home/dale/Desktop # emerge -av =sys-boot/grub-0.97-r16

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild NS ] sys-boot/grub-0.97-r16:0::gentoo
[2.02_beta2-r9:2/2.02_beta2-r9::gentoo] USE="ncurses -custom-cflags
-netboot -static" 1,034 KiB
[blocks B ] <sys-boot/grub-2 ("<sys-boot/grub-2" is blocking
sys-boot/grub-static-0.97-r12)

Total: 1 package (1 in new slot), Size of downloads: 1,034 KiB
Conflict: 1 block (1 unsatisfied)

* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.

(sys-boot/grub-0.97-r16:0/0::gentoo, ebuild scheduled for merge)
pulled in by
sys-boot/grub required by @selected
=sys-boot/grub-0.97-r16

(sys-boot/grub-static-0.97-r12:0/0::gentoo, installed) pulled in by
sys-boot/grub-static required by @selected


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages



It would seem that portage doesn't like them both being installed at the
same time. I'm pretty sure I did have both installed at one time tho.
I seem to recall being able to chain load them even. Either I'm wrong
on what I remember or something changed that prevents them both being
installed at the same time.

Weird.

Dale

:-) :-)
J. Roeleveld
2016-05-06 12:20:02 UTC
Permalink
Post by Grant Edwards
Post by Grant Edwards
$ sudo emerge -av winusb
Calculating dependencies... done!
[ebuild N ] sys-fs/ntfs3g-2014.2.15-r1::gentoo USE="acl
external-fuse ntfsprogs xattr -debug -ntfsdecrypt -static-libs -suid"
1,117 KiB [ebuild N ] sys-block/parted-3.2::gentoo USE="debug nls
readline -device-mapper (-selinux) -static-libs" 1,617 KiB [ebuild NS
] sys-boot/grub-2.02_beta2-r9:2/2.02_beta2-r9::gentoo
[0.97-r16:0::gentoo] USE="fonts multislot nls themes -debug
-device-mapper -doc -efiemu (-libzfs) -mount -sdl -static {-test}
-truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275
-loongson -multiboot -pc -qemu -qemu-mips -uboot -xen" 1,739 KiB
[ebuild N ] sys-boot/winusb-1.0.11::gentoo 553 KiB
Total: 4 packages (3 new, 1 in new slot), Size of downloads: 5,025 KiB
Would you like to merge these packages? [Yes/No]
However, I'm prefectly happy with grub-0.97, and want to continue
using it. If I let portage install grub:2, is it going to interfere
with my continued use of grub:0?
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
Right?
Calculating dependencies... done!
[ebuild NS ] sys-boot/grub-0.97-r16:0::gentoo
[2.02_beta2-r9:2/2.02_beta2-r9::gentoo] USE="ncurses -custom-cflags
-netboot -static" 1,034 KiB
[blocks B ] <sys-boot/grub-2 ("<sys-boot/grub-2" is blocking
sys-boot/grub-static-0.97-r12)
Total: 1 package (1 in new slot), Size of downloads: 1,034 KiB
Conflict: 1 block (1 unsatisfied)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(sys-boot/grub-0.97-r16:0/0::gentoo, ebuild scheduled for merge)
pulled in by
=sys-boot/grub-0.97-r16
(sys-boot/grub-static-0.97-r12:0/0::gentoo, installed) pulled in by
For more information about Blocked Packages, please refer to the following
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages
It would seem that portage doesn't like them both being installed at the
same time. I'm pretty sure I did have both installed at one time tho.
I seem to recall being able to chain load them even. Either I'm wrong
on what I remember or something changed that prevents them both being
installed at the same time.
Weird.
Dale
:-) :-)
Reread the message :)
Post by Grant Edwards
(sys-boot/grub-0.97-r16:0/0::gentoo, ebuild scheduled for merge)
It wants to install -0.97-r16
Post by Grant Edwards
(sys-boot/grub-static-0.97-r12:0/0::gentoo, installed) pulled in by
It has: static-0.97-r12

In other words, you can't install the static and the non-static installed
simultaneously :)

--
Joost
Dale
2016-05-06 14:50:02 UTC
Permalink
Post by J. Roeleveld
Post by Grant Edwards
Post by Grant Edwards
$ sudo emerge -av winusb
Calculating dependencies... done!
[ebuild N ] sys-fs/ntfs3g-2014.2.15-r1::gentoo USE="acl
external-fuse ntfsprogs xattr -debug -ntfsdecrypt -static-libs -suid"
1,117 KiB [ebuild N ] sys-block/parted-3.2::gentoo USE="debug nls
readline -device-mapper (-selinux) -static-libs" 1,617 KiB [ebuild NS
] sys-boot/grub-2.02_beta2-r9:2/2.02_beta2-r9::gentoo
[0.97-r16:0::gentoo] USE="fonts multislot nls themes -debug
-device-mapper -doc -efiemu (-libzfs) -mount -sdl -static {-test}
-truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275
-loongson -multiboot -pc -qemu -qemu-mips -uboot -xen" 1,739 KiB
[ebuild N ] sys-boot/winusb-1.0.11::gentoo 553 KiB
Total: 4 packages (3 new, 1 in new slot), Size of downloads: 5,025 KiB
Would you like to merge these packages? [Yes/No]
However, I'm prefectly happy with grub-0.97, and want to continue
using it. If I let portage install grub:2, is it going to interfere
with my continued use of grub:0?
Since grub-2.02 is being installed in a new slot, one would assume it
won't interfere with continue use of grub-0.97...
Right?
Calculating dependencies... done!
[ebuild NS ] sys-boot/grub-0.97-r16:0::gentoo
[2.02_beta2-r9:2/2.02_beta2-r9::gentoo] USE="ncurses -custom-cflags
-netboot -static" 1,034 KiB
[blocks B ] <sys-boot/grub-2 ("<sys-boot/grub-2" is blocking
sys-boot/grub-static-0.97-r12)
Total: 1 package (1 in new slot), Size of downloads: 1,034 KiB
Conflict: 1 block (1 unsatisfied)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(sys-boot/grub-0.97-r16:0/0::gentoo, ebuild scheduled for merge)
pulled in by
=sys-boot/grub-0.97-r16
(sys-boot/grub-static-0.97-r12:0/0::gentoo, installed) pulled in by
For more information about Blocked Packages, please refer to the following
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages
It would seem that portage doesn't like them both being installed at the
same time. I'm pretty sure I did have both installed at one time tho.
I seem to recall being able to chain load them even. Either I'm wrong
on what I remember or something changed that prevents them both being
installed at the same time.
Weird.
Dale
:-) :-)
Reread the message :)
Post by Grant Edwards
(sys-boot/grub-0.97-r16:0/0::gentoo, ebuild scheduled for merge)
It wants to install -0.97-r16
Post by Grant Edwards
(sys-boot/grub-static-0.97-r12:0/0::gentoo, installed) pulled in by
It has: static-0.97-r12
In other words, you can't install the static and the non-static installed
simultaneously :)
--
Joost
Ahhhhh. I thought I had them both installed on here at one time.
Whew!! I thought my last noodle was getting a little to well done. ROFL

Dale

:-) :-)
James
2016-05-06 19:20:02 UTC
Permalink
Post by Grant Edwards
$ sudo emerge -av winusb
Ok, so I've never used winusb, so excuse me for asking a few dumb questions
here. Even after reading a bit and searching around, I have these dumb
questions. I did not find sufficient reading materials to 'turn the light on'
as to when and why and how this winusb is used.

1. So winusb can put a window (vista-->8) image on a usbstick that will
boot most x86 orx86-64 hardware with the appropriate windows binary?
The hardware can then be installed with the windows image?

2. winusb can be used as a live_windows on a linux system where changes
are retain on the usb stick?

3. winusb can be used to install windows in a VM?

4. winusb can be used to install windows in a container?


Any links to reading materials or explanations as to these ideas
are most welcome.

James
Grant Edwards
2016-05-07 14:50:01 UTC
Permalink
Post by James
Post by Grant Edwards
$ sudo emerge -av winusb
Ok, so I've never used winusb, so excuse me for asking a few dumb
questions here. Even after reading a bit and searching around, I
have these dumb questions. I did not find sufficient reading
materials to 'turn the light on' as to when and why and how this
winusb is used.
1. So winusb can put a window (vista-->8) image on a usbstick that will
boot most x86 orx86-64 hardware with the appropriate windows binary?
The hardware can then be installed with the windows image?
That's my understanding. [I haven't actually done it yet.]

Many of the machines I use no longer have (working) optical
drives. When doing OS installs I almost always use USB flash drives.
I've been doing Linux installs that way for yonks. Most Linux OS
distro .iso images are already "hybrid" so they boot as-is from a
block storage device. In my experience, those that aren't can be
fixed up with a simple "isohybrid" command.

Now I want to stop buring Windows DVDs.
Post by James
2. winusb can be used as a live_windows on a linux system where
changes are retain on the usb stick?
No, I don't think so.
Post by James
3. winusb can be used to install windows in a VM?
Presumably -- if you can boot the VM from a USB storage device.
Post by James
4. winusb can be used to install windows in a container?
I don't know enough about containers to posit an answer.

--
Grant

Loading...