Amiga Thread.

Discussion in 'Everything else' started by TrashyMG, Jan 3, 2017.

Tags:
  1. ClockworkCoder

    ClockworkCoder Chaotic Neutral

    Joined:
    Jan 21, 2016
    Messages:
    961
    Location:
    Menzoberranzan
    Thanks @TrashyMG, I do believe they are a reputable company. Suspect its at customs here too.
     
  2. ClockworkCoder

    ClockworkCoder Chaotic Neutral

    Joined:
    Jan 21, 2016
    Messages:
    961
    Location:
    Menzoberranzan
    Well, the 8MB expansion arrived, and it works perfectly. I also got a new IDE/CF adapter via Ebay, which was actually from this shop:

    https://retroready.one/collections/...200-internal-cf-adapter-no-ide-cable-required

    The guy who runs it was really helpful, and even also sent me an ADF containing Compact Flash and "FAT95" drivers for the PCMCIA slot on the Amiga 1200, which work perfectly (recognised a "vfat" formatted SD card, see bottom). He also reminded me that an 8MB expansion won't work with the CF adapter, so I needed to remove the jumper to take it back to 4MB to enable it.

    An issue, I'm hoping to you guys may be able to help with is transferring files between Linux and my A1200, using an SD Card I'm using in a Compact Flash adapter.

    I can read & write files to it (a FAT32 formatted 1GB SD card) using the Amiga, but when I attempt to do so on my laptop, I get the following:

    Code:
    >> sudo  mount -t vfat -o umask=000 /dev/sdc1 ~/mnt/usbstick
    << 20:00
    >> ls usbstick
    ls: cannot access 'usbstick/¬¬¬¼«»»│.╢╢╢': Input/output error
    ls: cannot access 'usbstick/╥╓┌▄▐ßπτ.Ωφ∩': Input/output error
    ls: cannot access 'usbstick/╥╥╥╥╥╙╙╙.╥╙╙': Input/output error
    ls: cannot access 'usbstick/║╗╗╗║╣╖╖.╢┤▓': Input/output error
    ls: cannot access 'usbstick/╛╛╛╛╛╜╗╗.╗╣╖': Input/output error
    ls: cannot access 'usbstick/╧╤╥╥╥╙╙╙.╙╙╥': Input/output error
    ls: cannot access 'usbstick/╧╧╬╬╬╧╧╧.╧╤╙': Input/output error
    ls: cannot access 'usbstick/Ω∞εεε∩∩±.≥≥≥': Input/output error
    ls: cannot access 'usbstick/πππß▐▐▐▄.┌┘╫': Input/output error
    ls: cannot access 'usbstick/╥╤╧╤╥╥╥╙.╙╙╥': Input/output error
    ls: cannot access 'usbstick/╛╜╗╗║║║╕.╢╡│': Input/output error
    ls: cannot access 'usbstick/¬¼«¡½¡»».»▒▓': Input/output error
    ls: cannot access 'usbstick/╧╤╙╙╙╙╥╤.╧╧╧': Input/output error
    ls: cannot access 'usbstick/╬╬╬╧╧╧╧╧.╬╨╥': Input/output error
    ls: cannot access 'usbstick/╢╢╢╡│││▒.»▒│': Input/output error
    ls: cannot access 'usbstick/πß▐▐▐▌█┘.╓╘╥': Input/output error
    ls: cannot access 'usbstick/╛╛╛╜╗╗╗╣.╢╢╢': Input/output error
    ls: cannot access 'usbstick/»»»»»»»▒.▓┤╢': Input/output error
    ls: cannot access 'usbstick/││││▓▒»».«░▓': Input/output error
    ls: cannot access 'usbstick/▓▓▓│││││.│││': Input/output error
    ls: cannot access 'usbstick/╥╙╙╒╓╓╓╒.╙╙╙': Input/output error
    »»»»»»»▒.▓┤╢  ╢╢╢╡│││▒.»▒│  ╧╧╬╬╬╧╧╧.╧╤╙  πß▐▐▐▌█┘.╓╘╥  ╗╗║║║╜┐┐.┐┴├  ╞╞╞╞╞╞╞╞.╞╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╦╦╩╩╩╔╟╟.╟┼├  ∩∩∩φδδδδ.ΩΦµ
    ││││▓▒»».«░▓  ╥╙╙╒╓╓╓╒.╙╙╙  ╬╬╬╧╧╧╧╧.╬╨╥  πππß▐▐▐▄.┌┘╫  ╗╜╛└┬├├├.├├├  ╟┼├├├├├├.┬┬┬  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╩╦╦╦╩╔╟╟.╟┼├  ∩φδδΩΦµµ.µµµ
    ║╗╗╗║╣╖╖.╢┤▓  ╥╤╧╤╥╥╥╙.╙╙╥  ▓▓▓│││││.│││  Ω∞εεε∩∩±.≥≥≥  ╗╜╛┴├┼╞╟.╟╟╞  ╟┼┬├├├├├.┬├├  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╩╩╩╔╟╟╟╟.╟╟╟  ΩΩΩΘττττ.τσπ
    ╛╛╛╛╛╜╗╗.╗╣╖  ╥╥╥╥╥╙╙╙.╥╙╙  ¬¬¬¼«»»│.╢╢╢  ┐┐┐┐┐┴┬┬.┬┬┬  ╞╞╞╞╞╞╞╞.╞╞╞  ╟╟╟╟╞┼├├.├├├  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╩╩╩╩╩╔╟╟.╞┼├
    ╛╛╛╜╗╗╗╣.╢╢╢  ╧╤╙╙╙╙╥╤.╧╧╧  ¬¼«¡½¡»».»▒▓  ┐┐╛╛╛╛╛┴.├├├  ╞╞╞╞╞╞╞╞.╞╞╞  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ¬½½½½⌐ªª.ªºº
    ╛╜╗╗║║║╕.╢╡│  ╧╤╥╥╥╙╙╙.╙╙╥  ╥╓┌▄▐ßπτ.Ωφ∩  ┬┬┬├├┴┐┐.┐┐┐  ╞╞╞╞╞╞╞╞.╞╞╞  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╟╟╟╟╟╟╟╟.╟╟╟  ╢╢╢╕║║║╝.╛┐┐  δΘτττσππ.ππΓ
    
    I've tried slightly different methods of mounting, like (results are the same):
    Code:
    sudo mount -t msdos -o uid=$USER /dev/sdc1 ~/mnt/usbstick
    
    And this is how I formatted it:
    Code:
    sudo fdisk /dev/sdc
    sudo mkfs.vfat -F 32 /dev/sdc1
    
    As I mentioned - I couldn't see any files I had put on the SD card on Linux when on the Amiga, and when I put files on it from the Amiga, I got the results above.

    I hope someone may be able to point me in the right direction; I know I'm doing something stupid here, but just don't know what it is yet.
    --- Double Post Merged, Jul 14, 2019, Original Post Date: Jul 14, 2019 ---
    One additional thing. While I was searching for any answers online, I found that Linux can, in theory, natively support AFFS which could mean that I could read / write files in their original format. However, this doesn't appear to be compiled in the kernel I use (Manjaro Arch Linux)
     
  3. FBnil

    FBnil Ready to Champion the Pyra to the World...

    Joined:
    Dec 14, 2012
    Messages:
    2,695
    Location:
    Yurp
    Try a fsck on the disk from your Laptop? Did you properly unmount/eject your floppy/usbstick?

    Can you give me the uname -a of your laptop? (what distro are you using? Is it a current one?)
    Maybe try a bootable Linux from CD and try reading it from there?

    What about your usb in a Windows machine, and let windows checkdisk it?

    did you try fat12? doc
    And this page talks about mkfs -F ufs but I'm not sure if that is a format both the Amiga and your laptop can handle. From: https://amigaunix.com/doku.php/tips-tricks

    Try a smaller USB stick? Maybe another USB stick does work?

    There is a website that says:
    mkdosfs /dev/sdXX -s 128 -F 32
    Windows users can format with file explorer, select FAT32 and set the allocation unit size to 64K.

    And maybe it might sound stupid to try, but mkdosfs has an -A for atari version, maybe it also works for Amiga AND on your laptop?

    ----
    Long filename-ish

    The bug you see on screen is what I saw once. That fat only could handle 8.3 sized filenames, then Windows linked entries together to make longer filenames possible, but this corrupted the last two characters from a 8.3 filename, and machines that did not understand kept displaying the "filename" until a \0 null was found. But for this bug, you would see the start of your filenames, and in your example we see junk.

    The Amiga allows long filenames (31 bytes long, by default, there are options with longer names) and your laptop doesn't know about that encoding?

    https://en.wikipedia.org/wiki/Amiga_Fast_File_System

    -----
    What do you get on the USB stick?

    try copy the partition to a file with dd, then reading the file with a hexeditor (or the unix command strings if nothing is available):

    dd if=/dev/sdc1 of=MYDISK.img bs=1M conv=noerror

    Do you see "fat" data at the beginning? (fat begins with the directories, not with the data)

    For this method to be more readable, you can remove entropy from your disk, for example, when just formatted on your Laptop, fill your empty space with zero:
    cat /dev/zero > ~/mnt/usbstick/justafile ; rm ~/mnt/usbstick/justafile


    Make files with names like AAAAA and BBBBBB and try to find them with the hexeditor, maybe Amiga has a weird ASCII encoding?

    If you can not find a hexdump, here is a perl one:
    https://github.com/dreinhold/hexdump/blob/master/hexdump.pl

    On debian systems, you need to "apt-get install bsdmainutils":
    $ dpkg-query --search `which hexdump`
    bsdmainutils: /usr/bin/hexdump
     
    Last edited: Jul 14, 2019
    ClockworkCoder likes this.
  4. ClockworkCoder

    ClockworkCoder Chaotic Neutral

    Joined:
    Jan 21, 2016
    Messages:
    961
    Location:
    Menzoberranzan
    Thanks for your suggestions @FBnil

    It's not a floppy, but an SD card that I'm accessing directly on my laptop, and through a compact flash adapter via the PCMCIA port on my Amiga. I always unmount it from Linux, although I'm unsure how to do the same on the Amiga.

    Code:
    >> uname -a
    Linux alex-pc 4.19.56-1-MANJARO #1 SMP PREEMPT Wed Jun 26 03:35:21 UTC 2019 x86_64 GNU/Linux
    
    As I mentioned in the original post, it's Manjaro (Arch Linux), fully updated. Not sure what you mean about booting from CD - it's only the SD card that I'm having issues with...

    I don't have any Windows machines I'm afraid.

    Thanks, I will try that.

    It's a 1GB, although as I mentioned, it's being recognised as a Compact Flash card on my Amiga. Not sure if I have anything smaller...

    I feel that it's something I'm doing wrong in the preparation of the card (it seems to me that the Amiga, and Linux are recognising the same SD card as different formats), but lack the specific knowledge what I should be doing differently. On second glance, I might have been wrong about affs not being available, although I'm not sure if / how I should use it in this case either though.
     
  5. rSl

    rSl **** COMMODORE 64 PYRA V2 **** 4GB RAM SYSTEM

    Joined:
    Dec 10, 2005
    Messages:
    553
    Location:
    homecomputer
    maybe http://www2.nslu2-linux.org/wiki/pmwiki.php?pagename=HowTo/MountFATFileSystems
    helps?

    good luck!
     
  6. TrashyMG

    TrashyMG Sarcasm Dispenser Staff Member

    Joined:
    Jan 18, 2010
    Messages:
    10,493
    Hmm don't usually have any problems moving files on my FAT32 formatted USB stick between my Linux and Amiga boxen. I'm typically running vanilla AMD64 Debian on my systems.
     

Share This Page

Loading...