[SOLVED] Cannot run program from another flash drive

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
bluesky
White ninja
White ninja
Posts: 4
Joined: 20 Apr 2014, 03:04
Distribution: Porteus 3.0 LXDE 64-bit
Location: West Coast

[SOLVED] Cannot run program from another flash drive

Post#1 by bluesky » 20 Apr 2014, 04:08

I've encountered the same error running versions 2.1 and 3.0 of Porteus 64-bit LXDE. Hoping you can help.

Here are the main steps:
* Boot into Porteus using copy2ram, noauto and login=root cheat codes
* Run extlinux installer command (extlinux/extlinux -i /mnt/sdb1/boot/syslinux)
* Receive error message: bash: extlinux/extlinux: No such file or directory

Repeating the command using the full path (/mnt/sdc1/syslinux-5.10/extlinux/extlinux -i ...) yields the same error.

However, if I follow the same steps in a terminal launched from Ubuntu (and with root privileges), the command executes correctly.

To address some of the obvious possibilities:
* Both source and destination USB flash drives have been properly prepared (syslinux files unpacked on source, destination drive formatted and directories created, etc)
* Device names (sdb1, sdc1) are correct, and paths used are valid from current working directory
* extlinux program file has execute privileges (and works under Ubuntu)
* No typos
* Not an extlinux syntax error, given success under Ubuntu (and I've worked with syslinux long enough to be comfortable with it)

Perhaps it's something simple that I'm overlooking, but I just haven't been able to figure it out. If it's something more, then I hope it will be helpful in asking.

Thanks.
dd
Last edited by bluesky on 20 Apr 2014, 14:56, edited 1 time in total.

roadie
Full of knowledge
Full of knowledge
Posts: 205
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 3.5...with a twist
Location: In a hayfield

Re: Cannot run program from another flash drive

Post#2 by roadie » 20 Apr 2014, 04:18

You're using the noauto cheatcode.
Is the drive you want to run the command from mounted?

bluesky
White ninja
White ninja
Posts: 4
Joined: 20 Apr 2014, 03:04
Distribution: Porteus 3.0 LXDE 64-bit
Location: West Coast

Re: Cannot run program from another flash drive

Post#3 by bluesky » 20 Apr 2014, 04:19

Yes, both drives manually mounted.

roadie
Full of knowledge
Full of knowledge
Posts: 205
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 3.5...with a twist
Location: In a hayfield

Re: Cannot run program from another flash drive

Post#4 by roadie » 20 Apr 2014, 04:49

I can't be of much help, I'm using the 32bit edition and don't have an extlinux executable, I'm assuming the 64bit is different.

bluesky
White ninja
White ninja
Posts: 4
Joined: 20 Apr 2014, 03:04
Distribution: Porteus 3.0 LXDE 64-bit
Location: West Coast

Re: Cannot run program from another flash drive

Post#5 by bluesky » 20 Apr 2014, 12:52

Thanks roadie.

Some additional notes:
* The command runs correctly from PartedMagic loaded into RAM (I think PM is based on Slackware too).
* The command fails with same error when I boot Porteus without the copy2ram cheat code.
* From the working directory where I execute the extlinux command, the file and its attributes are listed correctly when I type 'ls -l extlinux/extlinux'. So the 'No such file' bash error message is somewhat misleading: there is an error, but it's not that extlinux/extlinux is not found. (This is why it's hard to tell what really is going wrong.)

Happy Easter everyone.

dd

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Cannot run program from another flash drive

Post#6 by fanthom » 20 Apr 2014, 13:48

our FAQ has an answer i believe:
http://www.porteus.org/faq.html#nine
Please add [Solved] to your thread title if the solution was found.

bluesky
White ninja
White ninja
Posts: 4
Joined: 20 Apr 2014, 03:04
Distribution: Porteus 3.0 LXDE 64-bit
Location: West Coast

Re: Cannot run program from another flash drive

Post#7 by bluesky » 20 Apr 2014, 15:01

You nailed it, fanthom: syslinux is a 32-bit program. Thank you!

Loading the 32-bit compatibility library solved the problem.

So it was indeed something simple after all. :Yahoo!:

I've marked this solved. Perhaps it should be moved to another subforum, because there's no bug here.

Post Reply