Offline use

Asked by JonnyTech

I would like to run wxfixboot on computers not connected to the Internet. Is it possible for the script to prompt the user to download the required file(s) manually and place then in a specific folder? As an example: "No Internet connection detected - please download http://xxxxxxxxxxxxxxxxxxxxxx and place it in the /tmp folder". Or does wxfixboot already support this? It would be good to have the required files and the script in a folder on my flash drive so that they would be automatically detected.

Question information

Language:
English Edit question
Status:
Answered
For:
WxFixBoot Edit question
Assignee:
Hamish McIntyre-Bhatty Edit question
Last query:
Last reply:
Revision history for this message
Hamish McIntyre-Bhatty (hamishmb) said :
#1

Hi,

It depends on what you want to do: if you just want to backup/restore a partition table or bootsector, update your bootloader, or do a file system check, you won't need to be connected to the internet.

Unfortunately, though, you can't do what you've described, but it's a good idea, and something I'd like to add in a future release.
I'm not sure how I'd do it, or figure out what version of the package to ask the user to download manually, but I'll look into it :)

Sorry about that,
Hamish

Revision history for this message
Hamish McIntyre-Bhatty (hamishmb) said :
#2

Oh,

By the way, the internet connection is only required to download packages when the bootloader is being reinstalled or replaced, but not for anything else in case you were wondering.

Hamish

Revision history for this message
JonnyTech (jonnytech) said :
#3

Thanks for the reply and for considering the enhancement. Yes, I have issues with bootloaders, especially with older UEFI implementations. Your wxfixboot did save the day more than once, but I did have to move the computer to a different location where I could get Internet access. How about if in the interim the script would provide the user instructions on what to do if an Internet connection is not found?

Thanks again,

Jon

Revision history for this message
Hamish McIntyre-Bhatty (hamishmb) said :
#4

Hi,

Glad it was helpful. It's always nice to hear that people find your work useful :)

That's a good idea too, but what kind of instructions would they be?
Maybe I've misunderstood you.

Hamishmb

Revision history for this message
JonnyTech (jonnytech) said :
#5

Very useful - thank you.

Sorry for not explaining, I was thinking of a scenario where bootloader needs repairing but no connection found. A message displays something like this:

Unable to detect an internet connection.
To continue the repair manually, do the following:
Download GRUB on another computer from ftp://ftp.gnu.org/gnu/grub/
Example: wget ftp://ftp.gnu.org/gnu/grub/grub-2.00.tar.gz
Copy the file to this computer
Execute the following from a terminal prompt:
tar -zxvf grub-2.00.tar.gz
cd grub-2.00
sudo grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck

This is just an example, but it would help users do the repair themselves. I'm guessing that there is a lot more to it than what I stated but I guess that you could print the commands that the script runs by echoing them to screen. That way at least the user would have the option of getting a standalone system working.

Revision history for this message
Hamish McIntyre-Bhatty (hamishmb) said :
#6

Hi,

Thanks I understand now, but unfortunately it is not as simple as it seems so I can't really do it for a minor 1.0.3 release because there would need to be major changes to the code (e.g. Figure out which packages need to be downloaded, which versions, and add foolproof instructions on where to put them for non-techie people and so on) :(

On the bright side, I'm planning a 1.1 release for the near(ish) future, and seeing as there will be major changes in that release, I'll add a fully complete way for offline boot loader installation then as well as you suggested originally :)

Fortunately, most people have wifi on their desktops, so it isn't urgent.

Anyway, thanks very much for the idea,
Hamish

Can you help with this problem?

Provide an answer of your own, or ask JonnyTech for more information if necessary.

To post a message you must log in.