Users online right now: 127 - Login  » search  » forum index  

Can't run bootinst.sh

ninjaaron
wrote 2 years ago


reply
Hey all, I'm trying to set up USB key in Ubuntu to boot Slax, but I can't run the boot installer. I extracted the tar to the drive, so now it has the folders "boot" and "slax." I opened the boot folder in a terminal. my prompt looks like this:
ninjaaron@ninjaaron:/media/D03F-FB2A/boot$
then I try "sudo ./bootinst"
"command not found"
so...
"chmod +x bootinst.sh; sudo ./bootinst"
"command not found"

I also tried it with the ".sh" suffix, and then without the "./" operator.
I tried running it in sh instead of bash.

I don't know what else I ought to try. I don't normally have any problems running scripts.
 
vonbiber
wrote 2 years ago


reply
you need to be root to run this command and the script name is
bootinst.sh

sudo ./bootinst.sh

you might also try

sudo bash bootinst.sh

or

sudo . bootinst.sh

if it still doesn't work
 
ninjaaron
wrote 2 years ago


reply
well, it kinda worked when I used the 'bash' command. It started to work, at least. I got this screen:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Welcome to Slax boot installer
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This installer will setup disk /dev/sdb1 to boot only Slax.

Warning! Master boot record (MBR) of /dev/sdb will be overwritten.
If you use /dev/sdb to boot any existing operating system, it will not work
anymore. Only Slax will boot from this device. Be careful!

Warning!
When you are installing Slax on writable media (usb stick/hard drive)
with FAT or NTFS filesystem, please consider using slaxsave.dat container
to avoid posixvol compatibility issues which are leading to filesystem
corrupition in case of Slax hang or crash. Info about usage of the changes
cheatcode you will find in /slax/cheatcodes.txt file. You have been warned!

Press any key to continue, or Ctrl+C to abort...

So I hit enter, but I got but then I got this

Flushing filesystem buffers, this may take a while...
Setting up MBR on /dev/sdb...
bootinst.sh: line 60: ./boot/syslinux/lilo: Permission denied


then I figured... "well, if I had to change the syntax before..."

so I opened the script in a text editor and changed the line with a "sudo" first, which gave me a "command not found," so then I added the "bash" too. Then I got the echo "cannot execute a binary."

So now I'm stuck again.

ps: also tried mounting the disk image on the drive, which looked like it worked, but it didn't boot.
 
bb as guest
wrote 2 years ago


reply
I imagine the problem is that your disabled distro won't let you write to the disk's mbr sector.

$ sudo passwd root

and give your user password, and then give a new root password

$ su

give the root password you just created

# and now try running ./bootinst.sh again.
 
wr4pp3r
wrote 1 year ago


reply
Not work always show the same error. Fuck!!!!!!

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Welcome to Slax boot installer
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This installer will setup disk /dev/sdb1 to boot only Slax.

Warning! Master boot record (MBR) of /dev/sdb will be overwritten.
If you use /dev/sdb to boot any existing operating system, it will not work
anymore. Only Slax will boot from this device. Be careful!

Press any key to continue, or Ctrl+C to abort...


Flushing filesystem buffers, this may take a while...
Setting up MBR on /dev/sdb...
bootinst.sh: línea 53: ./boot/syslinux/lilo: Permiso denegado
root@itcompany:/media/3454-6102/boot# bootinst.sh
 
jayflood
wrote 1 year ago


reply
fat32?

unmount the device ... remount it.
cd /mnt/xday/boot && chmod -R 755 *

or just format the device with ext2
 

  » search  » forum index  

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is generously supported by: P&P Software GmbH and wisol technologie GmbH