English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 29 December 2013, 13:18   #1
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
AmiKit for linux: errors in filesystem

Hi #?

I recently installed the linux version of AmiKit to use with fs-uae. It works very well.
Because there are more than 38.000 files and this could be bad for the host filesystem (and the ssd) I decided to make a .hdf, but I got some errors while copying all the files using dopus.
I took a closer look and found 314 files which can't be used inside the emulated Amiga. http://paste.debian.net/plain/72990
These files are invisible to the amiga, but if you try to copy the directories, you get filesystem errors.
As a workaround I deleted the files, but it would be nice to have this fixed in the next release of AmiKit.

I don't know if the windows- and mac versions are affected as well.
jbl007 is offline  
Old 31 December 2013, 15:50   #2
_ThEcRoW
Amiga NetRunner
 
_ThEcRoW's Avatar
 
Join Date: Apr 2005
Location: Spain
Age: 45
Posts: 941
What workbench files are you using for the instalation?. I remember having issues when using the amiga forever dvd for the installation, the amikit installer would copy certain files with wrong file permissions, and the only solution was to manually modify file permissions back.
_ThEcRoW is offline  
Old 01 January 2014, 15:35   #3
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
Thanks for your reply, but I think this problem is different from yours. It is not about the permissions, it's about the encoding of the file-/directory names. In addition theses file aren't from the cd, they are inside the archive you can download.

Windows version works file btw., now I'm using these files.
jbl007 is offline  
Old 18 January 2014, 18:38   #4
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
I checked the zip file - it isn't broken as such. Unfortunately, there wasn't originally a standard for what character set to have in zip files. So using non-ASCII file names are generally unreliable. Nowadays, many programs support using unicode names in zip files, but of course Windows Explorer does not (last time I checked...).

But anyway, in this zip file, file names are stored with ISO-8859-1 encoding, so either the unzip program must assume that, or use heuristics to guess it, or allow the user to specify ISO-8859-1 as source encoding when extracting the names :-/

Here's a python snipped to verify (the printed file names look good):
Code:
from zipfile import ZipFile
zf = ZipFile("AmiKit.zip")
for name in zf.namelist(): 
    for c in name:
        if ord(c) > 127:
            print(name.decode("ISO-8859-1"))
            break
FrodeSolheim is offline  
Old 18 January 2014, 18:50   #5
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
In Linux (and probably OS X too), you can unzip it like this:
Code:
unzip -I latin1 ../../Public/AmiKit.zip
(On Windows, Windows Explorer will just always assume CP437, so that won't work. The 7-Zip GUI program does not seem to have a character set override either).
FrodeSolheim is offline  
Old 18 January 2014, 22:30   #6
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
Ok, file names are stored with ISO-8859-1, thanks for pointing that out.

Quote:
Originally Posted by FrodeSolheim View Post
In Linux (and probably OS X too), you can unzip it like this:
Code:
unzip -I latin1 ../../Public/AmiKit.zip
Hm... my unzip doesn't know "-I" and it is not documented. What unzip version do you use?

Quote:
The 7-Zip GUI program does not seem to have a character set override either).
At least "7z" seems to be the only program, which "guesses" the correct encoding. (tested using this). I tried various archivers, some of them display the correct file names, but all of them failed when extracting.
jbl007 is offline  
Old 18 January 2014, 23:13   #7
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Code:
$ unzip -v
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.
...
FrodeSolheim is offline  
Old 19 January 2014, 00:02   #8
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
Ubuntu only specific patch
(debian/patches/06-unzip60-alt-iconv-utf8)
jbl007 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
What FileSystem should I use? Sim085 support.Other 16 25 November 2013 10:59
Porting to Tiny Core Linux and Puppy Linux lorenzos support.FS-UAE 1 05 January 2013 16:13
Ramblings about E-UAE with Amikit on 64bit Linux modrobert support.OtherUAE 1 14 February 2012 08:25
CD filesystem Rod_cl support.Apps 15 02 October 2007 02:07
What FileSystem? SGBEATTIE support.Hardware 1 31 October 2001 19:49

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:27.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08429 seconds with 13 queries