English Amiga Board


Go Back   English Amiga Board > Main > Retrogaming General Discussion

 
 
Thread Tools
Old 01 October 2018, 00:39   #1
leeuwtje
Registered User

 
Join Date: Jan 2018
Location: antwerp
Posts: 59
linux DD command imaging compact flash card for Amiga

Hi guys,


Is there anyone that know this?
For some time I use a terrible fire card in my CD32 with a Cf card that emulates an amiga harddrive.

For safety reasons I created a backup from the CF card a while ago.
Recently I have trouble with the cf card and decided to re image it with under linux (ubuntu like) with the DD command. The syntax I used was something like this:

sudo dd if=flashcard_amigaCD32_image250418.gz of=/dev/sdb(CFcard) bs=1M


This syntax works when I flash a bootable usb stick or CF for other systems, but apparently not for amiga, cause I ended up with an unreadable card for my amiga cd32. Too late now.... i can't go back.

I read some people use this command to flash for amiga. Could anybody tell me how to use the linux DD command to flash an amiga compatible card? I am depended on a .gz compressed linux image file. So in fact, any method for putting back such a file on a CF card for amiga o.s. would be great.

Thanks in advance.


leeuw.
leeuwtje is offline  
Old 01 October 2018, 01:50   #2
UberFreak
Registered User
 
Join Date: Sep 2009
Location: the world
Posts: 379
dd writes raw input data to the output device, so with this command you're basically writing the gzip file itself to the CF card, starting from sector 0.

What does the gz file contain?
UberFreak is offline  
Old 01 October 2018, 04:47   #3
Hewitson
Registered User
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 38
Posts: 3,747
If the gzipped file is an image created with dd or similar software, you'll need to gunzip it beforehand.
Hewitson is offline  
Old 01 October 2018, 10:03   #4
BastyCDGS
Registered User
 
Join Date: Nov 2015
Location: Freiburg / Germany
Age: 41
Posts: 145
Send a message via ICQ to BastyCDGS
Hi!



Quote:
Originally Posted by leeuwtje View Post
Hi guys,

sudo dd if=flashcard_amigaCD32_image250418.gz of=/dev/sdb(CFcard) bs=1M

leeuw.

Just do the following:
gunzip -dck flashcard_amigaCD32_image250418.gz | sudo dd of=/dev/sdb(CFcard) bs=32768


Note, I changed block size to 32K (it usually is faster than 1M).
Also, depending on permissions the gunzip needs a sudo, too.
BastyCDGS is offline  
Old 01 October 2018, 10:57   #5
leeuwtje
Registered User

 
Join Date: Jan 2018
Location: antwerp
Posts: 59
Thanks guys! Basty, that looks very hopeful.

I will try it out and let you know the results soon. I don't understand about the gunzip part, since I have used the DD command in combination with .gz files often to restore bootable media for other systems, which works generally good. DD seems to handle compressed backup files fine in those cases. Well, if it works it works. I'll let you know.
leeuwtje is offline  
Old 01 October 2018, 14:12   #6
BastyCDGS
Registered User
 
Join Date: Nov 2015
Location: Freiburg / Germany
Age: 41
Posts: 145
Send a message via ICQ to BastyCDGS
Hi leeuwtje!



Quote:
Originally Posted by leeuwtje View Post
Thanks guys! Basty, that looks very hopeful.

I will try it out and let you know the results soon. I don't understand about the gunzip part, since I have used the DD command in combination with .gz files often to restore bootable media for other systems, which works generally good. DD seems to handle compressed backup files fine in those cases. Well, if it works it works. I'll let you know.

No problem, I will explain:
-d is decompress
-c is to stdout
-k is keep original file



The dd command will read from stdin (which is the stdout of gzip thanks to the pipe), because if= parameter is omitted.
BastyCDGS is offline  
Old 01 October 2018, 16:08   #7
leeuwtje
Registered User

 
Join Date: Jan 2018
Location: antwerp
Posts: 59
Thanks Basty!

It worked! In German :"Herzlich danke! Wir trinken einen zusammen!"
I confused 2 different situations. I used a bash script to create the image earlier, but I forgot that. The script uses a compression piped command like you guessed.

So, thanks for your help! : gunzip -dck flashcard_amigaCD32_image250418.gz | sudo dd of=/dev/sdb(CFcard) bs=32768 status=progress

The result was a perfect readable CF card for Winuae. Unfortunately it only worked for Winuae. I have found I have a hardware related problem at my terrible fire card.
I will open a new ticket for it when needed. Right now I'm in contact with the developer to find a solution, Since he is a noble fellow I'm sure we'll work something out.

Thanks!
leeuwtje is offline  
Old 02 October 2018, 07:28   #8
Hewitson
Registered User
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 38
Posts: 3,747
I believe the -d is automatically applied when using gunzip. In other words, it's not necessary.
Hewitson is offline  
Old 02 October 2018, 09:06   #9
BastyCDGS
Registered User
 
Join Date: Nov 2015
Location: Freiburg / Germany
Age: 41
Posts: 145
Send a message via ICQ to BastyCDGS
Hi!



Quote:
Originally Posted by Hewitson View Post
I believe the -d is automatically applied when using gunzip. In other words, it's not necessary.

Yes, you're right. -d is only necessary when invoking gzip directly.


I'm also not sure, if -k is really necessary when stdin/stdout are involved, but just to be sure and to avoid surprises...
BastyCDGS 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
My Compact Flash Card Won't Boot Without Resetting Amiga First spanner support.Hardware 4 15 November 2015 23:55
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
Compact Flash Card as a Disk in WinUAE? Tempest 2084 support.WinUAE 36 30 May 2009 19:35

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


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