SliTaz SliTaz Forum

You are not logged in.

#1 2013-04-28 07:23:29

maxus1234
Member
Registered: 2013-04-26
Posts: 6

.SH script not working (Slitaz Cooking)

Today I was trying to install VectorLinux to an 8GB USB drive with a liloinst.sh script but it says: "Failed to execute child process "/media/disk-1/liloinst.sh" (No such file or directory)"

Why is this happening?

Offline

#2 2013-04-28 08:07:43

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: .SH script not working (Slitaz Cooking)

I don't know anything about this script, so here common help.

Check:

- if this file exists;

- if it executable for your user (you are root user when you install something, right? chmod +x path/to/your/file);

- if this script is written for /bin/sh (open script in text editor; if you'll see #!/bin/bash in the top line, then you need to install bash: tazpkg -gi bash).

PS. One more thought. I think LiLo is pretty old, and unmaintained, and real headache for Linux user. You should use SysLinux or Grub4dos bootloaders for your linux.

Offline

#3 2013-04-29 11:10:11

maxus1234
Member
Registered: 2013-04-26
Posts: 6

Re: .SH script not working (Slitaz Cooking)

I can upload the file if you want.

And I checked everything: the script is in /home/tux, it is set as executable and I have bash installed.

And about Lilo: Yes, I know it is not updated, but VectorLinux needs it in order to boot from an USB Flash drive.

Offline

#4 2013-04-29 14:30:08

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: .SH script not working (Slitaz Cooking)

What does this say ? does it find the file ? and is it +x ?

[c]ls -al /media/disk-1/liloinst.sh[/c]

Offline

#5 2013-04-29 17:19:59

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: .SH script not working (Slitaz Cooking)

And is the start of the script [c]#!/bin/sh[/c] or [c]#!/bin/bash[/c] and did you reply yes when asked if you want to replace the default shell with bash when installing it?

Offline

#6 2013-04-29 18:44:55

maxus1234
Member
Registered: 2013-04-26
Posts: 6

Re: .SH script not working (Slitaz Cooking)

@christophe: Yes, it finds the file, and it is executable.

@Trixar_za: The start of the script is #! /bin/bash. At the replacement prompt I replied yes.

Offline

#7 2013-04-29 20:21:40

subreptice
Member
Registered: 2013-03-10
Posts: 54

Re: .SH script not working (Slitaz Cooking)

Hello.

File exists, it is executable, it calls right shell...

Perhaps try to run it as root user, double-checking path to run it ?

Offline

#8 2013-04-30 14:49:44

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: .SH script not working (Slitaz Cooking)

I would edit the file and add "[c]set -x[/c]" to understand what is going on at run time

Offline

#9 2013-04-30 16:32:17

maxus1234
Member
Registered: 2013-04-26
Posts: 6

Re: .SH script not working (Slitaz Cooking)

I'm always running as root and even after editing and renaming the file, Sakura won't start it (I also tried with XTerm, but no result).

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.027 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]