English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 10 October 2020, 19:31   #1
livewirerocks
Registered User
 
livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 45
Posts: 48
Compact Flash Card Prep on Mac

Probably a question that’s been answered but I can’t find any info in relation to setting us a CF card on a Mac for using with a real Amiga.

I’ve seen many winuae tutorials using disk part in the command line, however I don’t have a pc and wondered if anyone has a easy guide to wiping the CF card and selecting in on fs-uae as a hard drive so that I can create a personalised system. Any help would be appreciated.
livewirerocks is offline  
Old 10 October 2020, 22:44   #2
lilwshu
Registered User
 
Join Date: Mar 2020
Location: UK
Posts: 243
To wipe it and set it up as a hard drive (make sure you have backups, I take no responsibility for any issues etc etc):

Insert the card, load Disk Utility and remove any partitions that are on it
Load Terminal and type "diskutil list"
You will see your CF card called something like /dev/disk3 - MAKE SURE YOU IDENTIFY IT CORRECTLY
Type "sudo chmod 777 /dev/diskx" (x being whatever number your CF card is) - your disk will be read only in FS-UAE if you dont do this
Load your FS-UAE configuration file in Textedit and edit the file:

hard_drive_0 = /dev/diskx
hard_drive_0_type = rdb

Save the file, open it in FS-UAE, and you can now attach your Workbench floppies, boot from the Install disk and set up Workbench as usual (remember to start HDtoolbox with the uaehf.device tooltype and to change the Maxtransfer setting).
lilwshu is offline  
Old 10 October 2020, 23:47   #3
livewirerocks
Registered User
 
livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 45
Posts: 48
Quote:
Originally Posted by lilwshu View Post
To wipe it and set it up as a hard drive (make sure you have backups, I take no responsibility for any issues etc etc):

Insert the card, load Disk Utility and remove any partitions that are on it
Load Terminal and type "diskutil list"
You will see your CF card called something like /dev/disk3 - MAKE SURE YOU IDENTIFY IT CORRECTLY
Type "sudo chmod 777 /dev/diskx" (x being whatever number your CF card is) - your disk will be read only in FS-UAE if you dont do this
Load your FS-UAE configuration file in Textedit and edit the file:

hard_drive_0 = /dev/diskx
hard_drive_0_type = rdb

Save the file, open it in FS-UAE, and you can now attach your Workbench floppies, boot from the Install disk and set up Workbench as usual (remember to start HDtoolbox with the uaehf.device tooltype and to change the Maxtransfer setting).

Many thanks for that, it’s been driving me mad ha ha.

I’ll give it a try in the morning. Appreciate the help
livewirerocks is offline  
Old 12 October 2020, 10:17   #4
livewirerocks
Registered User
 
livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 45
Posts: 48
Quote:
Originally Posted by lilwshu View Post
To wipe it and set it up as a hard drive (make sure you have backups, I take no responsibility for any issues etc etc):

Insert the card, load Disk Utility and remove any partitions that are on it
Load Terminal and type "diskutil list"
You will see your CF card called something like /dev/disk3 - MAKE SURE YOU IDENTIFY IT CORRECTLY
Type "sudo chmod 777 /dev/diskx" (x being whatever number your CF card is) - your disk will be read only in FS-UAE if you dont do this
Load your FS-UAE configuration file in Textedit and edit the file:

hard_drive_0 = /dev/diskx
hard_drive_0_type = rdb

Save the file, open it in FS-UAE, and you can now attach your Workbench floppies, boot from the Install disk and set up Workbench as usual (remember to start HDtoolbox with the uaehf.device tooltype and to change the Maxtransfer setting).

Works like a charm. Thank you for your help. Much appreciated
livewirerocks is offline  
Old 13 October 2020, 23:31   #5
bni
Registered User
 
Join Date: Feb 2019
Location: Örebro
Age: 47
Posts: 117
I use rdbtool and xdftool from https://github.com/cnvogelg/amitools

to build my customised CF card. I then test this in FS-UAE like lilwshu describe above, and then later when I know eveything is like I want it, in my real Amiga.

I have made a script to build the contents exactly like I want them. It works great if you are comfortable with command line tools and scripts. And you get a reproducible process for creating the CF card contents.
bni is offline  
Old 14 October 2020, 00:04   #6
livewirerocks
Registered User
 
livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 45
Posts: 48
Quote:
Originally Posted by bni View Post
I use rdbtool and xdftool from https://github.com/cnvogelg/amitools

to build my customised CF card. I then test this in FS-UAE like lilwshu describe above, and then later when I know eveything is like I want it, in my real Amiga.

I have made a script to build the contents exactly like I want them. It works great if you are comfortable with command line tools and scripts. And you get a reproducible process for creating the CF card contents.

Thanks for that. I’ll have a look at it. I’m ok with the command line/terminal. Not great with other scripts. That’s cool you’ve written a script to help. Maybe something I should look into. How did you do yours?


Sent from my iPad using Tapatalk
livewirerocks is offline  
Old 14 October 2020, 19:59   #7
bni
Registered User
 
Join Date: Feb 2019
Location: Örebro
Age: 47
Posts: 117
Post

Sure I use a script like below.

For inspiration only, no warranties

I have very much enjoyed making my own perfect Amiga CF card, setup with Demos, WHDLoad Games, my favorite mods and iff pictures. I guess perfect is different for everyone

Make sure you use the correct /dev/diskX, my CF card is at /dev/disk2 for example. Using wrong device here can wipe you disk.

Code:
#!/bin/sh

# ** Howto make amiga-os-3141-workbench.hdf ************************
# rdbtool amiga-os-3141-workbench.hdf create size=15Mi
# rdbtool amiga-os-3141-workbench.hdf init
# 
# rdbtool amiga-os-3141-workbench.hdf fill dostype=DOS3 bootable
# xdftool amiga-os-3141-workbench.hdf open part=DH0 + format Workbench3.1 DOS3
# 
# rdbtool amiga-os-3141-workbench.hdf info
# Then install AmigaOS from adf images into this hdf in FS-UAE
# ********************

SRC="Workbench3.1"
DEST="AmigaOS"
PROGRAMS="Programs"
DATA="Data"
GAMES="Games"
DEMOS="Demos"

# Delete
rm -rf $SRC
rm $SRC.blkdev
rm $SRC.xdfmeta

rm -rf $DEST
rm $DEST.blkdev
rm $DEST.xdfmeta

rm -rf ./DeluxePaint3
rm -rf ./PT23F
rm -rf ./WHDLoad
rm -rf ./Icons

rm -rf $PROGRAMS
rm $PROGRAMS.blkdev
rm $PROGRAMS.xdfmeta

rm -rf $DATA
rm $DATA.blkdev
rm $DATA.xdfmeta

rm -rf $GAMES
rm $GAMES.blkdev
rm $GAMES.xdfmeta

rm -rf $DEMOS
rm $DEMOS.blkdev
rm $DEMOS.xdfmeta

# Unpack
xdftool amiga-os-3141-workbench.hdf unpack . fsuae
unar DeluxePaint3.adf
unar PT23F.LHA
unar WHDLoad.zip
unar Icons.zip

# Cleanup
find . -type f -name '*.DS_Store' -ls -delete
find ../data -type f -name '*.DS_Store' -ls -delete
find ../games -type f -name '*.DS_Store' -ls -delete
find ../demos -type f -name '*.DS_Store' -ls -delete

# Build AmigaOS
sudo chmod 777 /dev/diskX
rdbtool /dev/diskX init rdb_cyls=2
rdbtool /dev/diskX fsadd $SRC/L/FastFileSystem version=46.20
rdbtool /dev/diskX add size=16MiB dostype=DOS3 bootable=true
xdftool /dev/diskX open part=DH0 + format $DEST DOS3
xdftool /dev/diskX open part=DH0 + unpack . fsuae

# Build Programs
rdbtool /dev/diskX add size=24MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH1 + format $PROGRAMS DOS7
xdftool /dev/diskX open part=DH1 + unpack . fsuae

# Build Data
rdbtool /dev/diskX add size=1612MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH2 + format $DATA DOS7
xdftool /dev/diskX open part=DH2 + unpack . fsuae

# Build Games
rdbtool /dev/diskX add size=182MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH3 + format $GAMES DOS7
xdftool /dev/diskX open part=DH3 + unpack . fsuae

# Build Demos
rdbtool /dev/diskX fill dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH4 + format $DEMOS DOS7
xdftool /dev/diskX open part=DH4 + unpack . fsuae

# Workbench
rsync -rt $SRC/* $DEST/

# Icons
cp -vp Icons/Disks/$DEST.info $DEST/Disk.info
cp -vp Icons/Disks/$PROGRAMS.info $PROGRAMS/Disk.info
cp -vp Icons/Disks/$DATA.info $DATA/Disk.info
cp -vp Icons/Disks/$GAMES.info $GAMES/Disk.info
cp -vp Icons/Disks/$DEMOS.info $DEMOS/Disk.info
cp -vp Icons/*.info $DEST/
cp -vp Icons/Devs/*.info $DEST/Devs/
cp -vp Icons/Prefs/*.info $DEST/Prefs/
cp -vp Icons/Storage/*.info $DEST/Storage/
cp -vp Icons/System/*.info $DEST/System/
cp -vp Icons/Tools/*.info $DEST/Tools/
cp -vp Icons/Utilities/*.info $DEST/Utilities/
cp -vp Icons/Programs/*.info $PROGRAMS/

# Deluxe Paint III
cp -vp DeluxePaint3/dpaint $PROGRAMS/Deluxe\ Paint\ III

# ProTracker
cp -vp PT23F/PT23F/PT2.3F $PROGRAMS/

# WHDLoad
cp -vp WHDLoad/WHDLoad/C/WHDLoad $DEST/C/
mkdir $DEST/Devs/Kickstarts
cp -vp WHDLoad/kick* $DEST/Devs/Kickstarts/

# Data
rsync -rt ../data/* $DATA/

# Games
rsync -rt ../games/* $GAMES/

# Demos
rsync -rt ../demos/* $DEMOS/

# Show partitions
rdbtool /dev/diskX info

# Pack DH0
xdftool /dev/diskX open part=DH0 + pack $DEST
xdftool /dev/diskX open part=DH0 + list

# Pack DH1
xdftool /dev/diskX open part=DH1 + pack $PROGRAMS
xdftool /dev/diskX open part=DH1 + list

# Pack DH2
xdftool /dev/diskX open part=DH2 + pack $DATA
xdftool /dev/diskX open part=DH2 + list

# Pack DH3
xdftool /dev/diskX open part=DH3 + pack $GAMES
xdftool /dev/diskX open part=DH3 + list

# Pack DH4
xdftool /dev/diskX open part=DH4 + pack $DEMOS
xdftool /dev/diskX open part=DH4 + list
bni is offline  
Old 14 October 2020, 20:10   #8
livewirerocks
Registered User
 
livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 45
Posts: 48
Quote:
Originally Posted by bni View Post
Sure I use a script like below.

For inspiration only, no warranties

I have very much enjoyed making my own perfect Amiga CF card, setup with Demos, WHDLoad Games, my favorite mods and iff pictures. I guess perfect is different for everyone

Make sure you use the correct /dev/diskX, my CF card is at /dev/disk2 for example. Using wrong device here can wipe you disk.

Code:
#!/bin/sh

# ** Howto make amiga-os-3141-workbench.hdf ************************
# rdbtool amiga-os-3141-workbench.hdf create size=15Mi
# rdbtool amiga-os-3141-workbench.hdf init
# 
# rdbtool amiga-os-3141-workbench.hdf fill dostype=DOS3 bootable
# xdftool amiga-os-3141-workbench.hdf open part=DH0 + format Workbench3.1 DOS3
# 
# rdbtool amiga-os-3141-workbench.hdf info
# Then install AmigaOS from adf images into this hdf in FS-UAE
# ********************

SRC="Workbench3.1"
DEST="AmigaOS"
PROGRAMS="Programs"
DATA="Data"
GAMES="Games"
DEMOS="Demos"

# Delete
rm -rf $SRC
rm $SRC.blkdev
rm $SRC.xdfmeta

rm -rf $DEST
rm $DEST.blkdev
rm $DEST.xdfmeta

rm -rf ./DeluxePaint3
rm -rf ./PT23F
rm -rf ./WHDLoad
rm -rf ./Icons

rm -rf $PROGRAMS
rm $PROGRAMS.blkdev
rm $PROGRAMS.xdfmeta

rm -rf $DATA
rm $DATA.blkdev
rm $DATA.xdfmeta

rm -rf $GAMES
rm $GAMES.blkdev
rm $GAMES.xdfmeta

rm -rf $DEMOS
rm $DEMOS.blkdev
rm $DEMOS.xdfmeta

# Unpack
xdftool amiga-os-3141-workbench.hdf unpack . fsuae
unar DeluxePaint3.adf
unar PT23F.LHA
unar WHDLoad.zip
unar Icons.zip

# Cleanup
find . -type f -name '*.DS_Store' -ls -delete
find ../data -type f -name '*.DS_Store' -ls -delete
find ../games -type f -name '*.DS_Store' -ls -delete
find ../demos -type f -name '*.DS_Store' -ls -delete

# Build AmigaOS
sudo chmod 777 /dev/diskX
rdbtool /dev/diskX init rdb_cyls=2
rdbtool /dev/diskX fsadd $SRC/L/FastFileSystem version=46.20
rdbtool /dev/diskX add size=16MiB dostype=DOS3 bootable=true
xdftool /dev/diskX open part=DH0 + format $DEST DOS3
xdftool /dev/diskX open part=DH0 + unpack . fsuae

# Build Programs
rdbtool /dev/diskX add size=24MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH1 + format $PROGRAMS DOS7
xdftool /dev/diskX open part=DH1 + unpack . fsuae

# Build Data
rdbtool /dev/diskX add size=1612MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH2 + format $DATA DOS7
xdftool /dev/diskX open part=DH2 + unpack . fsuae

# Build Games
rdbtool /dev/diskX add size=182MiB dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH3 + format $GAMES DOS7
xdftool /dev/diskX open part=DH3 + unpack . fsuae

# Build Demos
rdbtool /dev/diskX fill dostype=DOS7 bootable=false
xdftool /dev/diskX open part=DH4 + format $DEMOS DOS7
xdftool /dev/diskX open part=DH4 + unpack . fsuae

# Workbench
rsync -rt $SRC/* $DEST/

# Icons
cp -vp Icons/Disks/$DEST.info $DEST/Disk.info
cp -vp Icons/Disks/$PROGRAMS.info $PROGRAMS/Disk.info
cp -vp Icons/Disks/$DATA.info $DATA/Disk.info
cp -vp Icons/Disks/$GAMES.info $GAMES/Disk.info
cp -vp Icons/Disks/$DEMOS.info $DEMOS/Disk.info
cp -vp Icons/*.info $DEST/
cp -vp Icons/Devs/*.info $DEST/Devs/
cp -vp Icons/Prefs/*.info $DEST/Prefs/
cp -vp Icons/Storage/*.info $DEST/Storage/
cp -vp Icons/System/*.info $DEST/System/
cp -vp Icons/Tools/*.info $DEST/Tools/
cp -vp Icons/Utilities/*.info $DEST/Utilities/
cp -vp Icons/Programs/*.info $PROGRAMS/

# Deluxe Paint III
cp -vp DeluxePaint3/dpaint $PROGRAMS/Deluxe\ Paint\ III

# ProTracker
cp -vp PT23F/PT23F/PT2.3F $PROGRAMS/

# WHDLoad
cp -vp WHDLoad/WHDLoad/C/WHDLoad $DEST/C/
mkdir $DEST/Devs/Kickstarts
cp -vp WHDLoad/kick* $DEST/Devs/Kickstarts/

# Data
rsync -rt ../data/* $DATA/

# Games
rsync -rt ../games/* $GAMES/

# Demos
rsync -rt ../demos/* $DEMOS/

# Show partitions
rdbtool /dev/diskX info

# Pack DH0
xdftool /dev/diskX open part=DH0 + pack $DEST
xdftool /dev/diskX open part=DH0 + list

# Pack DH1
xdftool /dev/diskX open part=DH1 + pack $PROGRAMS
xdftool /dev/diskX open part=DH1 + list

# Pack DH2
xdftool /dev/diskX open part=DH2 + pack $DATA
xdftool /dev/diskX open part=DH2 + list

# Pack DH3
xdftool /dev/diskX open part=DH3 + pack $GAMES
xdftool /dev/diskX open part=DH3 + list

# Pack DH4
xdftool /dev/diskX open part=DH4 + pack $DEMOS
xdftool /dev/diskX open part=DH4 + list

Ha ha.

Appreciate that. I like to customise mine too, that’s the beauty of the Amiga isn’t it. Thanks for the script, gives me an idea where to start lol


Sent from my iPad using Tapatalk
livewirerocks is offline  
Old 14 October 2020, 23:47   #9
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
Thanks for this great script! This makes many things easier
amigafreak68k is offline  
Old 19 October 2020, 12:58   #10
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
Hey @bni

I get the FileSystem not installed:

Code:
# Build AmigaOS

rdbtool amiga-os-3.1.4.hdf create size=1024Mi
rdbtool amiga-os-3.1.4.hdf init
rdbtool amiga-os-3.1.4.hdf fsadd $SRC/L/FastFileSystem version=46.20
rdbtool amiga-os-3.1.4.hdf add size=100MiB dostype=DOS3 bootable=true
xdftool amiga-os-3.1.4.hdf open part=DH0 + format $DEST DOS3
xdftool amiga-os-3.1.4.hdf open part=DH0 + unpack . fsuae
I'd write this block also in my script and get error:

Code:
creating: 'DH0' (1, 3200) DOS3
ERROR: creating partition: 'DH0': (1, 3200)
'open part=DH0' IOError: can't find partition in image file
I checked and the file exists in path... Any idea what's going wrong? Withou the FS-line, the hardfile will created properly

EDIT: Found issue byself

Last edited by amigafreak68k; 19 October 2020 at 13:54. Reason: EDIT: Found the error ... forgot to reserve RDB cylinders
amigafreak68k is offline  
Old 20 October 2020, 19:30   #11
bni
Registered User
 
Join Date: Feb 2019
Location: Örebro
Age: 47
Posts: 117
Adding the FFS into the rdb on the CF card can possibly be omitted altogether. The reason to do that is so older Kickstarts can load it and use new features that only exists in 3.1.4, like DOS7.

But I never got this to work. My real A1200 has 3.0 ROM and I use MapRom on accelerator card to load the 3.1.4 ROM. This is why I left the AmigaOS partition as DOS3, with DOS7 it didn't work for some reason.
bni is offline  
Old 20 October 2020, 20:06   #12
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
Could be to do with the different scsi.device maybe
amigafreak68k is offline  
Old 22 December 2020, 18:11   #13
bni
Registered User
 
Join Date: Feb 2019
Location: Örebro
Age: 47
Posts: 117
A convenient way to put stuff inside the Startup-Sequence is to patch it in like this with ex.

In this example below I patch it to load a newer kickstart with MapRom and also run a NoClick exe to prevent the floppy clicking on my A1200

Code:
# Patch Startup-Sequence
ex $DEST/S/Startup-Sequence <<eof
3 insert
acatool >NIL: skiponlmb force noerrors maprom romfile "AmigaOS:Devs/Kickstarts/kick.a1200.46.143"
NoClick
.
xit
eof
bni is offline  
Old 21 January 2022, 09:38   #14
vrxguy
Registered User
 
Join Date: Sep 2021
Location: Brisbane
Posts: 23
Hi, ive done this and successfully mounted and formatted the CF card in FS UAE and coppied data to the card in Amiga OS3.2
Ive now ejected it and the card dev/disk3 is not found by FSUAE I can see in in Mac Terminal
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: *16.0 GB disk3
vrxguy is offline  
Old 21 January 2022, 21:21   #15
bni
Registered User
 
Join Date: Feb 2019
Location: Örebro
Age: 47
Posts: 117
By default it has restrictive permissions, I need to do:
sudo chmod 777 /dev/disk4

Before FS-UAE can access it.

Need to do this every time card is inserted.
bni 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
WinUAE prep 8Gb Compact Flash xArtx support.WinUAE 3 27 December 2015 06:47
Defrag a Compact Flash Card Nibbler support.Hardware 14 06 February 2015 08:02
8 GB Compact Flash card Kenan support.Hardware 6 07 June 2013 20:54
selling a compact flash card? anyone steve_uktv MarketPlace 14 07 February 2010 01:03
How To Get A600 To Read Compact Flash Card ? Rich M Amiga scene 5 02 May 2005 06:56

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 23:22.

Top

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