LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Does FLEXlm still cause problems to Linux bootloaders? (https://www.linuxquestions.org/questions/linux-general-1/does-flexlm-still-cause-problems-to-linux-bootloaders-4175612820/)

Ormu 08-29-2017 01:01 AM

Does FLEXlm still cause problems to Linux bootloaders?
 
I have a laptop with Windows 7 and Linux installed, and I might soon need some commercial Windows software released in 2015 that apparently uses FLEXlm for license checking.

FlexNet/FLEXlm used to cause problems to some bootloaders. Is this still the case? See:
https://en.wikipedia.org/wiki/FlexNet_Publisher


Should I expect problems if I install this software? Is there a workaround for GRUB to prevent such problems before the installation of this software?

The software can be also DRM'ed by using a USB "hardlock" dongle and I'm going to do that. But I'm not sure if this FLEXlm thing is used with the dongle too.

IsaacKuo 08-29-2017 03:15 AM

I'm not familiar with this issue or the mechanism by which it causes problems, but unless it somehow hacks into the BIOS then surely you can get around the problem with a USB thumbdrive to boot up your Linux install. Basically, use something like "grub-install /dev/sdb" to install GRUB onto the MBR of the thumbdrive, and then remove the thumbdrive (if you're paranoid) when booting up into Windows.

I'm guessing that the fundamental problem is that FlexNet overwrites the bootloader with its own bootloader which does the license checkout or something. But it won't be able to overwrite a bootloader on a USB thumbdrive that isn't even plugged in. And so long as it leaves your ext4 linux partition(s) alone, /boot will still be okay (the GRUB bootloader points to the partition /boot is in to bring up the GRUB menu etc).

OTOH, if it hacks into the BIOS and locks it down in some way so it's impossible to boot from USB or CD or anything other than the internal hard drive? Okay, that's theoretically possible but it would be a nightmare to develop for every BIOS out there. And also, it would brick a ton of computers, which would make corporations avoid the product like the plague. Somehow, I doubt this is what FlexNet does.

Ormu 08-29-2017 03:30 AM

Quote:

Originally Posted by IsaacKuo (Post 5753208)
I'm not familiar with this issue or the mechanism by which it causes problems, but unless it somehow hacks into the BIOS then surely you can get around the problem with a USB thumbdrive to boot up your Linux install. Basically, use something like "grub-install /dev/sdb" to install GRUB onto the MBR of the thumbdrive, and then remove the thumbdrive (if you're paranoid) when booting up into Windows.

I'm guessing that the fundamental problem is that FlexNet overwrites the bootloader with its own bootloader which does the license checkout or something. But it won't be able to overwrite a bootloader on a USB thumbdrive that isn't even plugged in. And so long as it leaves your ext4 linux partition(s) alone, /boot will still be okay (the GRUB bootloader points to the partition /boot is in to bring up the GRUB menu etc).

OTOH, if it hacks into the BIOS and locks it down in some way so it's impossible to boot from USB or CD or anything other than the internal hard drive? Okay, that's theoretically possible but it would be a nightmare to develop for every BIOS out there. And also, it would brick a ton of computers, which would make corporations avoid the product like the plague. Somehow, I doubt this is what FlexNet does.

Using USB stick for emergency booting sounds like a good idea. Thanks!


As far as I understand, the FlexNet/FLEXlm DRM system writes information to some hard disk sectors (at least sector 32 is a known place) that are assumed to be unused but are (sometimes?) used to store GRUB code. This can cause a warning during GRUB installation if this DRM system is already installed, or it may break GRUB if the DRM system is installed later.

syg00 08-29-2017 03:43 AM

For a MBR BIOS based system, Grub2 installs the core.img in the (supposedly) unused sectors following the MBR in the first "cylinder" (to use old terminology).
As does this licensing rubbish - Dell used to drop some tools there too.

gpt would solve the grub[2] issue (BIOS boot partition), not so sure about Win7 and Flexlm. You might need that external boot medium.

Habitual 08-29-2017 06:30 AM

I'd contact "Sales" at https://www.flexerasoftware.com/prod...ut/contact-us/
and ask?

Can I virtualize your software, and how can that be done?
Tell them "it's the latest thing". ;)

sundialsvcs 08-29-2017 06:57 AM

Well, if it were me, I would not use that software! :eek:

I've sold a lot of software over the past couple decades, and I quickly found out that "less is more" when it comes to license checks. You do have to have one, since (for example) governments aren't allowed to spend public money for something that can be obtained or run for free, but you do not want it to be onerous to your customer. I've elected not to buy a lot of software because it required a "dongle" or somesuch.

Ormu 09-08-2017 09:14 AM

Quote:

Originally Posted by syg00 (Post 5753216)
For a MBR BIOS based system, Grub2 installs the core.img in the (supposedly) unused sectors following the MBR in the first "cylinder" (to use old terminology).
As does this licensing rubbish - Dell used to drop some tools there too.

gpt would solve the grub[2] issue (BIOS boot partition), not so sure about Win7 and Flexlm. You might need that external boot medium.

Thanks for clarification.

Is it possible, in MBR BIOS systems, to install Grub2 to a partition in a way that it doesn't put stuff into the space between the MBR and the first partition?

While such behavior by a DRM system is bad, I do not consider it good by GRUB either. This is just my personal opinion.


Quote:

Originally Posted by sundialsvcs (Post 5753265)
Well, if it were me, I would not use that software! :eek:

I've sold a lot of software over the past couple decades, and I quickly found out that "less is more" when it comes to license checks. You do have to have one, since (for example) governments aren't allowed to spend public money for something that can be obtained or run for free, but you do not want it to be onerous to your customer. I've elected not to buy a lot of software because it required a "dongle" or somesuch.

I agree, but this software is provided by my employer that has a dongle license for it, for short-term use.

I just installed the software using a DRM dongle, and didn't notice any problems. Perhaps FLEXlm is not used when the dongle is used.

I created a USB stick for emergency booting before installation.


Quote:

Originally Posted by Habitual (Post 5753250)
I'd contact "Sales" at https://www.flexerasoftware.com/prod...ut/contact-us/
and ask?

Can I virtualize your software, and how can that be done?
Tell them "it's the latest thing". ;)

That's possible too but would they answer? Also, I don't know what version of FLEXlm would be used by this software.



I'll mark this as solved soon. But to benefit other users that come across this thread, it would be useful to know if the new versions of FLEXlm/FlexNet DRM system continue to use the hard disk sectors.

syg00 09-08-2017 06:53 PM

Quote:

Originally Posted by Ormu (Post 5756798)
Is it possible, in MBR BIOS systems, to install Grub2 to a partition in a way that it doesn't put stuff into the space between the MBR and the first partition?

You can force grub to install to a partition - but then you would need to re-install the Win7 boot-loader to the MBR, then chain-load your Linux system - which would actually load grub. EasyBCD might be simplest. I have used it on Win7, but eventually discarded it in favour of grub in the MBR.
As the grub documentation states this is somewhat fragile as it relies on a (static) block list - updates/reinstall of grub could cause the file to move, and subsequent boots to fail.

Ormu 09-10-2017 01:04 PM

Quote:

Originally Posted by syg00 (Post 5756926)
You can force grub to install to a partition - but then you would need to re-install the Win7 boot-loader to the MBR, then chain-load your Linux system - which would actually load grub. EasyBCD might be simplest. I have used it on Win7, but eventually discarded it in favour of grub in the MBR.
As the grub documentation states this is somewhat fragile as it relies on a (static) block list - updates/reinstall of grub could cause the file to move, and subsequent boots to fail.

I see, thanks for the information.

Just out of curiosity: (Why) is the following scheme not possible:

Grub boot.img on MBR (nothing in the following free space) --> Grub on VBR/partition --> Chainload Windows on another partition if desired


I mark this as solved but information about the behavior of FLEXlm/FlexNet DRM software would still be useful for other users who find this thread.

IsaacKuo 09-10-2017 01:17 PM

It's just because GRUB has grown in size because of the capabilities required to hunt down and read the various possible /boot partition/volume/etc. The idea being, that using UUID is more robust and easier to troubleshoot/rescue/repair than creating and maintaining an alternative smaller bootloader which uses a static block list or something.

The thing is, maybe it's not that hard to make an alternative smaller bootloader. But if hardly anyone actually uses it, how do you ensure it actually works? Sometimes, an alternative option is just too much of a niche to be confident it is truly functional.

Personally, I'd rather just put the initial grub bootloader on a small USB thumbdrive (which can also be used as a dumb FAT32 data drive or it can hold an entire rescue OS or whatever). I'd value the simplicity and piece of mind, over doing some sort of clever hack.


All times are GMT -5. The time now is 05:26 PM.