Page 2 of 2
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Mon Sep 30, 2024 11:26 pm
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".
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Tue Oct 01, 2024 12:32 am
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.
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Tue Oct 01, 2024 12:50 am
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.
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Tue Oct 01, 2024 1:06 am
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
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Tue Oct 01, 2024 4:01 am
by Brian K
I suspect a problem with my drvmap.inf. But I don't know why it isn't working.
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Tue Oct 01, 2024 8:25 am
by Brian K
This didn't work...
sudo ./bjk/bn/bootnow W11
This did work...
cd bjk/bn
sudo ./bootnow W11
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Tue Oct 01, 2024 9:28 am
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.
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Tue Oct 01, 2024 9:38 am
by Brian K
Ok. But this didn't apply in my UEFI system.
I used...
echo yourpassword | sudo bjk/bn/bootnowu Win11
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Tue Oct 01, 2024 11:48 am
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.
Re: how do i get bootnow to work with ubuntu 20.04
Posted: Wed Oct 02, 2024 3:38 am
by Brian K
Correcting typos in my initial post for UEFI system...
#!/bin/sh
echo yourpassword | sudo -S ./bjk/bn/bootnowu Win11
echo