davilla / atvusb-creator

Automatically exported from code.google.com/p/atvusb-creator
27 stars 53 forks source link

Permission denied to patchstick.sh #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Keep getting the following message in console using b3 on OSX 10.5.5.....

02/10/2008 21:07:18 [0x0-0x51051].com.atvusb.creator[894]   File
"liveusb/gui.pyc", line 186, in run 
02/10/2008 21:07:18 [0x0-0x51051].com.atvusb.creator[894]   File
"liveusb/creator.pyc", line 250, in create_image 
02/10/2008 21:07:18 [0x0-0x51051].com.atvusb.creator[894]   File
"liveusb/creator.pyc", line 278, in install_payload 
02/10/2008 21:07:18 [0x0-0x51051].com.atvusb.creator[894]   File
"shutil.pyc", line 80, in copy 
02/10/2008 21:07:18 [0x0-0x51051].com.atvusb.creator[894]   File
"shutil.pyc", line 47, in copyfile 
02/10/2008 21:07:18 [0x0-0x51051].com.atvusb.creator[894] IOError: [Errno
13] Permission denied: '/Volumes/PATCHSTICK/patchstick.sh'  

Output window of ATV USB creator shows......

Verifying SHA1 of DMG image...
Extracting boot.efi ...
Creating USB Image...
Extracting atv_512MB.7z
Extracting atv_recv.7z
dd_inject /Users/darren/Desktop/atvusb/staging/boot.efi
dd_inject /Users/darren/Desktop/atvusb/staging/atv_recv.img
Creating USB Flash
Writing atv_512MB.img to /dev/disk1

Then just seems to hang doing nothing with the stick. I'm probably doing
something completely stupid but just can't see it.

I've tried around 4 different sticks as well so any suggestions would be
helpful. And I've successfully used the sticks using previous patches.

In the meantime keep up the good work!!!!

Original issue reported on code.google.com by welsh...@gmail.com on 2 Oct 2008 at 8:09

GoogleCodeExporter commented 9 years ago
Permission denied: '/Volumes/PATCHSTICK/patchstick.sh' 

This is a permission problem, you (atvusb-creator) does not  have permission to 
write to the mounted disk called PATCHSTICK

Need to solve this first. quit atvusb-creator and try dragging anything to it.

Original comment by sdavi...@gmail.com on 2 Oct 2008 at 8:38

GoogleCodeExporter commented 9 years ago
I have had exactly the same problem.. freshly formatted 1GB USB stick... no 
partitions... I run ATVUSB and it 
gets as far as installing the 512MB partition and creating a partition named 
"PATCHSTICK" but then bombs out 
with the same sequence of console messages as the user above:

03/10/2008 10:04:35 com.apple.launchd[209] (net.sourceforge.tvshows[22321]) 
Exited with exit code: 255 
03/10/2008 10:04:45 [0x0-0x2c68c66].com.atvusb.creator[22232] Traceback (most 
recent call last): 
03/10/2008 10:04:45 [0x0-0x2c68c66].com.atvusb.creator[22232]   File 
"liveusb/gui.pyc", line 186, in run 
03/10/2008 10:04:45 [0x0-0x2c68c66].com.atvusb.creator[22232]   File 
"liveusb/creator.pyc", line 250, in 
create_image 
03/10/2008 10:04:45 [0x0-0x2c68c66].com.atvusb.creator[22232]   File 
"liveusb/creator.pyc", line 278, in 
install_payload 
03/10/2008 10:04:45 [0x0-0x2c68c66].com.atvusb.creator[22232]   File 
"shutil.pyc", line 80, in copy 
03/10/2008 10:04:45 [0x0-0x2c68c66].com.atvusb.creator[22232]   File 
"shutil.pyc", line 47, in copyfile 
03/10/2008 10:04:45 [0x0-0x2c68c66].com.atvusb.creator[22232] IOError 
03/10/2008 10:04:45 [0x0-0x2c68c66].com.atvusb.creator[22232] : [Errno 13] 
Permission denied: 
'/Volumes/PATCHSTICK/patchstick.sh' 

Once the script bombs out, I'm left with an empty PATCHSTICK partition mounted 
on the desktop. I can 
confirm that I *can* drag and drop files onto the PATCHSTICK partition from the 
desktop, so the permissions 
problem isn't there, at least in this respect.
However, I have twice managed to successfully install ATV onto this patchstick 
(once using the original 1.0.0 
version and then once with the updated 1.03 version) ... but there seems to be 
no rhyme or reason as to why 
or when it works - and I've tried on two different Macs too.

Original comment by jalex...@gmail.com on 3 Oct 2008 at 9:22

GoogleCodeExporter commented 9 years ago
Hum, another permissions problem writing to the drive.

If you right-click -> open contents on atvusb-creator.app

copy atvusb-creator.app/Contents/Resources/payloads to PATCHSTICK

move

copy atvusb-creator.app/Contents/Resources/payloads/patchstick.sh to top level

so looking at PATCHSTICK

patchstick.sh
payloads

Original comment by sdavi...@gmail.com on 3 Oct 2008 at 12:28

GoogleCodeExporter commented 9 years ago
Hmmm still not sure what the real problem was.

Managed to get the patchstick on 4 sticks 100% successfully by using my iMac.

Using my MacBook Pro continually no success. Permissions seemed ok and matched 
up on
both.

Only thought is I have Parallels on the MacBook Pro. Wonder if theres some 
background
process that registers stick insertions/mounts/unmounts for Parallels thats 
blocking it.

Original comment by welsh...@gmail.com on 3 Oct 2008 at 7:44

GoogleCodeExporter commented 9 years ago
i have the same problem..
i'm on 10.5.5 on a macbook pro

here are the logs:
----atvusb--------------
2Z694-5428-3.dmg selected
Verifying SHA1 of DMG image...
Extracting boot.efi ...
Creating USB Image...
Extracting atv_512MB.7z
Extracting atv_recv.7z
dd_inject /Users/angelone/atvusb/staging/boot.efi
dd_inject /Users/angelone/atvusb/staging/atv_recv.img
Creating USB Flash
Writing atv_512MB.img to /dev/disk1
----atvusb--------------

----console--------------
06.10.08 19:55:00 Disk Utility[486] Partitionieren des Mediums vorbereiten: 
„Imation USB Flash Drive Media“
06.10.08 19:55:00 Disk Utility[486]  Partitionsschema: GUID Partitionstabelle
06.10.08 19:55:00 Disk Utility[486]  1 Volume wird erstellt
06.10.08 19:55:00 Disk Utility[486] 
06.10.08 19:55:00 Disk Utility[486]  Partition 1
06.10.08 19:55:00 Disk Utility[486]   Größe        : 984,0 MB
06.10.08 19:55:00 Disk Utility[486]   Dateisystem  : Freier Speicherplatz
06.10.08 19:55:00 Disk Utility[486] 
06.10.08 19:55:00 Disk Utility[486] Partitionstabelle wird erstellt
06.10.08 19:55:04 Disk Utility[486] Partitionieren ist abgeschlossen.
06.10.08 19:55:04 Disk Utility[486] 
06.10.08 19:55:19 [0x0-0x41041].com.atvusb.creator[501] [gui:496] DMG selected: 
u'/Users/angelone/atvusb/downloads/2Z694-5428-3.dmg' 
06.10.08 19:55:24 hdiejectd[522] running
06.10.08 19:57:56 [0x0-0x41041].com.atvusb.creator[501] Traceback (most recent 
call last): 
06.10.08 19:57:56 [0x0-0x41041].com.atvusb.creator[501]   File 
"liveusb/gui.pyc", line 186, in run 
06.10.08 19:57:56 [0x0-0x41041].com.atvusb.creator[501]   File 
"liveusb/creator.pyc", line 250, in 
create_image 
06.10.08 19:57:56 [0x0-0x41041].com.atvusb.creator[501]   File 
"liveusb/creator.pyc", line 278, in 
install_payload 
06.10.08 19:57:56 [0x0-0x41041].com.atvusb.creator[501]   File "shutil.pyc", 
line 80, in copy 
06.10.08 19:57:56 [0x0-0x41041].com.atvusb.creator[501]   File "shutil.pyc", 
line 47, in copyfile 
06.10.08 19:57:56 [0x0-0x41041].com.atvusb.creator[501] IOError 
06.10.08 19:57:56 [0x0-0x41041].com.atvusb.creator[501] : [Errno 13] Permission 
denied: 
'/Volumes/PATCHSTICK/patchstick.sh' 
06.10.08 19:58:02 fseventsd[37] log dir: /Volumes/PATCHSTICK 1/.fseventsd 
getting new uuid: 8B0EE2FE-
F1FE-403F-9021-029239A812FB 
06.10.08 19:59:19 [0x0-0x41041].com.atvusb.creator[501] [creator:561] Cleaning 
up... 
----console--------------

I removed all partitions from the USB stick before running the program.

I don't know where there should be a permission problem.
I can write to the new PATCHSTICK partition without problems.
And the extracted files from this page have my user as owner.

I even tried this with the latest .zip version b3

I now copied the payload manually to the stick, now the patch works somehow.
Dropbear works, I can login via ssh2
But the XBMC and Boxee Menuitems don't work.
The .app folders in /Applications don't exist

Original comment by martin.e...@gmail.com on 6 Oct 2008 at 9:09

GoogleCodeExporter commented 9 years ago
Do this again and when you get the "Permission denied". open terminal and send 
me the output of

ls -l /Volumes

ls -l /Volumes/PATCHSTICK

This is interesting

"/Volumes/PATCHSTICK 1"

That's a second disk named PATCHSTICK being mounted.

Original comment by sdavi...@gmail.com on 6 Oct 2008 at 9:14

GoogleCodeExporter commented 9 years ago
now that you mention it...
there seems to be another PATCHSTICK folder under /Volumes

---------console---------
Last login: Mon Oct  6 23:06:19 on ttys001
PeeBee:~ angelone$ ls -l /Volumes/
total 8
d--x--x--x  4 root  admin  136  6 Okt 19:41 PATCHSTICK
lrwxr-xr-x  1 root  admin    1  6 Okt 19:33 PeeBee -> /
PeeBee:~ angelone$ ls -l /Volumes/PATCHSTICK/
ls: : Permission denied
PeeBee:~ angelone$ sudo ls -l /Volumes/PATCHSTICK/
Password:
total 8
-rwxr-xr-x  1 root  admin  1161  6 Okt 19:40 patchstick.sh
drwxr-xr-x  3 root  admin   102  6 Okt 19:40 payloads
PeeBee:~ angelone$ 
 ---------console---------

I just deleted that directory and tried to create the patchstick again.
now everything works.
thanks for the hint scott :)

and thanks for that great program, it makes patchstick creation much more easy.

Original comment by martin.e...@gmail.com on 6 Oct 2008 at 9:27

GoogleCodeExporter commented 9 years ago

Original comment by sdavi...@gmail.com on 22 Oct 2008 at 10:27

GoogleCodeExporter commented 9 years ago

Original comment by sdavi...@gmail.com on 30 Jan 2009 at 5:53