LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-29-2017, 01:01 AM   #1
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Rep: Reputation: 15
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.
 
Old 08-29-2017, 03:15 AM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
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.
 
1 members found this post helpful.
Old 08-29-2017, 03:30 AM   #3
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IsaacKuo View Post
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.

Last edited by Ormu; 08-29-2017 at 03:38 AM.
 
Old 08-29-2017, 03:43 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
1 members found this post helpful.
Old 08-29-2017, 06:30 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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".
 
Old 08-29-2017, 06:57 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,640
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
Well, if it were me, I would not use that software!

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.
 
Old 09-08-2017, 09:14 AM   #7
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
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 View Post
Well, if it were me, I would not use that software!

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 View Post
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.
 
Old 09-08-2017, 06:53 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by Ormu View Post
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.
 
1 members found this post helpful.
Old 09-10-2017, 01:04 PM   #9
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
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.
 
Old 09-10-2017, 01:17 PM   #10
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Bootloaders LXer Syndicated Linux News 0 08-29-2013 01:20 PM
[SOLVED] FLEXlm server, root privileges and rc.d scripts someshpr Linux - Software 6 06-01-2010 12:31 PM
matlab4linux FLEXlm error: -14,7 mgyildiz Linux - Software 0 04-03-2004 03:47 AM
Oh boy -- Filesystems, bootloaders, and problems. liquidwonders Linux - Newbie 4 04-20-2003 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration