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

Having trouble getting Ubuntu to run .sh script

marxvolta
wrote 2 years ago


reply
Hey, all. I'm really new to all this and I'm trying to make usb bootable
---

So I type in the code:

cd /media/PENDRIVE/boot

and it comes out:

/media/PENDRIVE/boot$

then I type:

sudo bash bootinst.sh

and then my password and it comes up normally, I hit enter, but then I get:

Setting up MBR on /deb/stb...
bootinst.sh: line 53: ./boot/syslinux/lilo: Permission denied


And I just don't understand what the deal is. I've reset the UNIX password and that didn't seem to help.
 
forum
wrote 2 years ago


reply
Heh .. I should say, you deserve it for running with a crippled distro like ubuntu. But I won't.

Try this ...

$ sudo passwd root

and give your user password, and then it'll ask you for a new password for root [twice]. Then ...

$ su

and provide your new root password, and you'll really become root, and then you won't get the permission denied BS.
 
jcsoh
wrote 2 years ago


reply
"Heh .. I should say, you deserve it for running with a crippled distro like ubuntu. But I won't. "

You just said it :)
 
marxvolta
wrote 2 years ago


reply
I tried that and got the exact same error. Any other advice?
 
forum
wrote 2 years ago


reply
@marxvolta ...


I tried that and got the exact same error. Any other advice?

++++++++++++++++

That's a little hard to believe -- running as root, and it still won't let you write to a usbstick mbr? I dunno what else to tell you, except to get a different linux. Try to find one that comes with a root account.

You can also do that [bootinst.bat] from windows -- again, you'll have to be running as an administrator, but at least all windows have an admin account.
 
feeee
wrote 2 years ago


reply
search the forum, its a known bug
 
subkid
wrote 2 years ago


reply
I use ubuntu, I think you have to right-click the file, go to properties, go to permissions, and allow executing it. If it still won't work, find a Windows PC and run bootinst.bat
 
tutysra
wrote 2 years ago


reply
I had excatly the same issue
We need to make give them correct permission
chmod 755 /boot/syslinux/*
then do
sudo bash bootinst.sh
 
forum
wrote 2 years ago


reply
I had excatly the same issue
We need to make give them correct permission
chmod 755 /boot/syslinux/*
then do
sudo bash bootinst.sh >tutysra


+++++++++++++++++

That doesn't seem to me it could be the problem -- all files including syslinux on a vfat usbstick will have rwxrwxrwx permissions.

root@slax:~# cd /mnt/hda3/slax612/boot/syslinux
root@slax:/mnt/hda3/slax612/boot/syslinux# ls -l
total 208
-rwxrwxrwx 1 root root 70196 Aug 4 2009 lilo*
-rwxrwxrwx 1 root root 404 Aug 4 2009 mbr.bin*
-rwxrwxrwx 1 root root 24592 Aug 4 2009 syslinux*
-rwxrwxrwx 1 root root 23 Sep 12 2007 syslinux.cfg*
-rwxrwxrwx 1 root root 21528 Aug 4 2009 syslinux.com*
-rwxrwxrwx 1 root root 26624 Aug 4 2009 syslinux.exe*
root@slax:/mnt/hda3/slax612/boot/syslinux#


Vfat doesn't do permissions.
 
caracole
wrote 2 years ago


reply
Here's what I did to create a bootable USB drive with slax and some modules.

My solution here: http://www.slax.org/forum.php?action=view&parentID=73025


Message translated from French into English with translate.google.com
 

  » 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