File size: 1,910 Bytes
4aa5fce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[07:33] <lordievader> Good morning
=== croppa_ is now known as croppa
[12:17] <BluesKaj> Hey all
[12:27] <server_> Hello.  I am trying to dd an img.xz (2GB) file to /dev/mmcblk0p2 (ext4).  After the dd process is complete the mmcblk0p2 partition shows up as an unknown type (Bad Superblock).
[12:28] <server_> How can I copy the image file without damaging the partition or how to fix the partition?
[12:37] <SwedeMike> server_: img.xz looks like it's compressed. Are you dd:ing it as-is to the partition? Don't you need to uncompress it before?
[12:41] <server_> <SwedeMike> You are right.  I just uncompressed it first (unxz) and redid the dd command with the same result.
[12:42] <server_> I am trying to create a new partition that is just 2GB in size to see if that will work better.
[12:54] <server_> The new (2GB) partition didn't work.
[13:01] <BluesKaj> server_,  make sure your target partition is large enough to accomodate the input iso file size
[13:01] <BluesKaj> or img size
[13:07] <server_> The img file is 1.8GB.  The original partition was 14GB.  I shrunk it down to 2.1GB.  I have formatted them to ext4 beforehand; every time the partition gets clobbered.
[13:08] <server_> When I look at online examples, I see that the main dd process is not on the partition (mmcblk0p2) but the full mmc card (mmcblk0)
[13:13] <Qommand0r> server_: makes sense, since the disk image itself contains a partition table as well
[13:13] <Qommand0r> try using a whole disk as a target device
[13:13] <Qommand0r> instead of a partition/slice
[13:13] <Qommand0r> should work
[13:33] <server_> Qommand0r: you were right.  The image did have a 4GB partition image.
[13:34] <server_> I needed a fat partition before it so I used gparted to move it and add a small partition before it.
[13:37] <Qommand0r> cool, nice to hear server_
=== keithzg_ is now known as keithzg
=== Fritigern is now known as Fritigern_AWAY