Page 1 of 1

USB pendrive. Trouble.

Posted: 21 Jul 2011, 15:29
by frananc
Hello. I'm an Italian newbie user.
I have been impressed by Porteus and I am trying to install it from Linux (Ubuntu) on a USB pendrive formatted to ext4, following the Porteus Official Installation Guide (v 1.0). I'm posting here hoping the topic title is consistent with my trouble.
I came up to <Execute lin_start_here.sh script> but when choosing to install Porteus on a linux partition I got as a result <. / Lin_start_here.sh: line 81:. / Syslinux / bootextlinux.sh: Permission denied>.

Any suggestions? Thanks in advance!

Re: USB pendrive. Trouble.

Posted: 21 Jul 2011, 15:38
by Hamza
Welcome to Porteus Community

That is an error of file permission
1)
Go to /boot with this command
cd /mnt/sdXX/boot

2)
Use this command
chmod +x ./syslinux/bootextlinux.sh

3)
Try Again and Enjoy !


Cheers!

Re: USB pendrive. Trouble.

Posted: 21 Jul 2011, 17:11
by fanthom
welcome on board frananc,

i believe that you are hit by a 'showexec' bug which is causing a troubles for porteus Installer. in short words 'udisk' package in your distro (Ubuntu in this case) is mounting FAT/NTFS formatted media with all files marked as non-executable. Luckily solution is very simple:
a) plug your stick
b) do not mount it automatically (if you have that choice) or umount it manually - do not remove the stick.
c) mount the stick manually with root privileges:
Ubuntu case

Code: Select all

sudo su
mkdir /tmp/usb_stick
mount /dev/sdXY /tmp/usb_stick
now you can launch lin_start_here.sh script from /tmp/usb_stick. after installation you can umount your pendrive by 'umount /tmp/usb_stick' command.

let us know in case of other troubles :wink:

Re: USB pendrive. Trouble.

Posted: 21 Jul 2011, 17:22
by Hamza
Sorry, I did not knew this bug. Please ignore my answer.

Re: USB pendrive. Trouble.

Posted: 24 Jul 2011, 16:41
by frananc
Thanks Hamza.
@ Fanthom: unfortunately I am not so expert in Linux. Nevertheless, I followed your instructions, and after creating the directory usb_stick this is the result (I traslated it in English)
root @ fran-TECRA S2-: / home / fran # mount / dev/sdc2 / tmp / usb_stick
mount: the special device / dev/sdc2 does not exist
root @ fran-TECRA S2-: / home / fran # mount / dev / sdc / tmp / usb_stick
umount: / dev / sdc: unknown device
How can you see I tried mounting as SdC2 (this is the indication that I had by "Disk Manager") or simply as sdc, without result.
Where is my mistake? :(
Thank you for your patience!

Re: USB pendrive. Trouble.

Posted: 24 Jul 2011, 17:21
by fanthom
@frananc
you need to find a pendrive letter assigned to your stick. pls plug the pendrive in and then run 'sudo dmesg' command in terminal. you should see something like here:

Code: Select all

[   24.516880] sd 8:0:0:0: Attached scsi generic sg2 type 0
[   24.518810] sd 8:0:0:0: [sdb] 7856127 512-byte logical blocks: (4.02 GB/3.74 GiB)
[   24.519313] sd 8:0:0:0: [sdb] Write Protect is off
[   24.519319] sd 8:0:0:0: [sdb] Mode Sense: 45 00 00 08
[   24.519808] sd 8:0:0:0: [sdb] No Caching mode page present
[   24.519813] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[   24.521951] sd 8:0:0:0: [sdb] No Caching mode page present
[   24.521953] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[   24.523863]  sdb: sdb1
and you will know that your stick is named 'sdb1'.
to confirm this run 'ls /dev/sd*' command and you should see it as well:

Code: Select all

/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda4  /dev/sdb  /dev/sdb1
once you know the letter you can follow procedure from my first post in this thread.
good luck!