LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Terminal command: cannot run bootinst.sh (https://www.linuxquestions.org/questions/linux-newbie-8/terminal-command-cannot-run-bootinst-sh-613615/)

gordon__1 01-14-2008 11:19 PM

Terminal command: cannot run bootinst.sh
 
ISSUE RESOLVED-NO FURTHER HELP NEEDED


I'm definitely struggling through the setup of Backtrack. I'm also

learning a lot so it can't be all bad right? I'm currently at this instructional step:

Run the bootinst.sh script contained in the boot directory on the first partition (/mnt/sda1/boot/bootinst.sh). This will make the SD card/USB flash drive bootable.

I'm in terminal, at root :/# i type /mnt/sdb1/boot/bootinst.sh and am advised no such file or directory

Well, in the File System I can browse the partition and the bootinst.sh file is located in the boot folder where it should be.

I'm stuck, the sdb1 partition is Fat16 as required, it contains the boot folder with all the files, so i guess i'm not mounting this partition properly, so the computer can't get to the file?

archtoad6 01-18-2008 10:27 AM

Glad to hear you solved it on your own. Good job.

Now, would mind posting the solution for those who might a similar problem? TIA

gordon__1 01-25-2008 12:29 PM

./bootinst.sh

archtoad6 01-27-2008 11:02 AM

So, there is the actual fix, but how is that going to help anybody else? How about telling us why it worked? If you don't know, then maybe we can help you figure it out.

Are you trying to say that you learned that merely making a script executable isn't enough; you must also either have it in your $PATH, or call it w/ its path included in the name? No, you said you tried
Code:

/mnt/sda1/boot/bootinst.sh
Was it instead that bootinst.sh only worked when it was run from its own directory? If that's so, did you actually run
Code:

cd /mnt/sda1/boot
./bootinst.sh


gordon__1 01-28-2008 02:11 PM

The problem was caused because I was having difficulty changing over to the USB drive in Terminal. It turns out i was not in the correct directory and once I was, the command worked. I've been working my way through Ubuntu, eeexubuntu, BackTrack3 and my new ASUS eee computer. I'm self taught and have made a lot of progress, there's definitely a learning curve.


All times are GMT -5. The time now is 09:51 PM.