how do i get bootnow to work with ubuntu 20.04

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.
Brian K
Posts: 2491
Joined: Fri Aug 12, 2011 1:11 am

Re: how do i get bootnow to work with ubuntu 20.04

Post by Brian K »

I tried in a MBR system.
Created drvmap.inf in the bn folder. (80=/dev/sda)

chmod +x bjk/bn/bootnow

sudo ./bjk/bn/bootnow

The above works

sudo ./bjk/bn/bootnow 1

The above doesn't work. It gives "Unable to open device". I saw the same error 5 years ago and found 80=/dev/sda had a space at the end of the line. When the space was removed bootnow worked. However, there is no space this time and I can't get bootnow to go beyond "Unable to open device".

Edit... If I rename drvmap.inf I get the same "Unable to open device".
TeraByte Support
Posts: 3891
Joined: Thu May 05, 2011 10:37 pm

Re: how do i get bootnow to work with ubuntu 20.04

Post by TeraByte Support »

you setup 80= to point to the boot drive that has the BootIt EMBRM. If you run without a parameter it would just show the help and not try to open the device. The user needs to be a member of the disk group.
Brian K
Posts: 2491
Joined: Fri Aug 12, 2011 1:11 am

Re: how do i get bootnow to work with ubuntu 20.04

Post by Brian K »

I'm now a member of the disk group and I still get "Unable to open device" when attempting to boot a Boot Item.

BIBM is on /dev/sda.
zephyr98
Posts: 25
Joined: Wed Dec 04, 2013 2:34 pm

Re: how do i get bootnow to work with ubuntu 20.04

Post by zephyr98 »

i bumped into the answer while you were writing your note. hahaha. i did not write up a script yet but the steps are.
1. make a drvmap.inf file in the same directory for bootnow. i used /usr/local/bin.
2. the entry must be 80=/dev/sdx where 80 and sdx are parms. 80 comes from 80+ bootit hd0 mbr value. 81=hd1 etc. and sdx is the linux code for the drive (hd0=sda, hd1=sbb). it is NOT the partition value.
3. then i become sueruser with su -.
4. then execute bootnow z where z=os menu item. 1=first os 2=2nd etc.

and it works for ubuntu20.4
Brian K
Posts: 2491
Joined: Fri Aug 12, 2011 1:11 am

Re: how do i get bootnow to work with ubuntu 20.04

Post by Brian K »

I suspect a problem with my drvmap.inf. But I don't know why it isn't working.
Brian K
Posts: 2491
Joined: Fri Aug 12, 2011 1:11 am

Re: how do i get bootnow to work with ubuntu 20.04

Post by Brian K »

This didn't work...

sudo ./bjk/bn/bootnow W11

This did work...

cd bjk/bn
sudo ./bootnow W11
zephyr98
Posts: 25
Joined: Wed Dec 04, 2013 2:34 pm

Re: how do i get bootnow to work with ubuntu 20.04

Post by zephyr98 »

the first one did not work because it violated step1 in my writeup. drvmp needs to be in the same dir a bootnow and executed in the active directory. ie, the cd step is required.
Brian K
Posts: 2491
Joined: Fri Aug 12, 2011 1:11 am

Re: how do i get bootnow to work with ubuntu 20.04

Post by Brian K »

Ok. But this didn't apply in my UEFI system.

I used...

echo yourpassword | sudo bjk/bn/bootnowu Win11
zephyr98
Posts: 25
Joined: Wed Dec 04, 2013 2:34 pm

Re: how do i get bootnow to work with ubuntu 20.04

Post by zephyr98 »

bootnow was written lots of years before bootnowu. also, efi partition requirement and location of boot info did not exist when bootnow was written. so two scenarios. and the rules are different. hahaha. what else is new in programming. oh well. at least im now able to different os.

tks for your help. got me on the right path.
Brian K
Posts: 2491
Joined: Fri Aug 12, 2011 1:11 am

Re: how do i get bootnow to work with ubuntu 20.04

Post by Brian K »

Correcting typos in my initial post for UEFI system...


#!/bin/sh
echo yourpassword | sudo -S ./bjk/bn/bootnowu Win11
echo
Post Reply