English Amiga Board


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

 
 
Thread Tools
Old 10 October 2020, 20:31   #1
livewirerocks
Registered User

livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 41
Posts: 35
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, 23:44   #2
lilwshu
Registered User

 
Join Date: Mar 2020
Location: UK
Posts: 90
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 11 October 2020, 00:47   #3
livewirerocks
Registered User

livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 41
Posts: 35
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, 11:17   #4
livewirerocks
Registered User

livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 41
Posts: 35
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 14 October 2020, 00:31   #5
bni
Registered User

 
Join Date: Feb 2019
Location: Örebro
Age: 43
Posts: 29
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, 01:04   #6
livewirerocks
Registered User

livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 41
Posts: 35
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, 20:59   #7
bni
Registered User

 
Join Date: Feb 2019
Location: Örebro
Age: 43
Posts: 29
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, 21:10   #8
livewirerocks
Registered User

livewirerocks's Avatar
 
Join Date: Apr 2019
Location: Scotland
Age: 41
Posts: 35
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 15 October 2020, 00:47   #9
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 439
Thanks for this great script! This makes many things easier
amigafreak68k is offline  
Old 19 October 2020, 13:58   #10
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 439
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 14:54. Reason: EDIT: Found the error ... forgot to reserve RDB cylinders
amigafreak68k is offline  
Old 20 October 2020, 20:30   #11
bni
Registered User

 
Join Date: Feb 2019
Location: Örebro
Age: 43
Posts: 29
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, 21:06   #12
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 439
Could be to do with the different scsi.device maybe
amigafreak68k 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 07:47
Defrag a Compact Flash Card Nibbler support.Hardware 14 06 February 2015 09:02
8 GB Compact Flash card Kenan support.Hardware 6 07 June 2013 21:54
selling a compact flash card? anyone steve_uktv MarketPlace 14 07 February 2010 02:03
How To Get A600 To Read Compact Flash Card ? Rich M Amiga scene 5 02 May 2005 07: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 02:54.


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