I'm trying to clone a bootable 1GB compactflash to a second 1GB complactflash, but when I try to mount it, i get an error like so,
sudo mount /dev/sdb1 /media/frank/cloned/
frank@ThinkPad2:~$ sudo mount /dev/sdb1 /media/frank/cloned/
mount: /media/frank/cloned: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error.
I'm using a single USB CF drive and swapping the original and target CF. It seems to be copying everything, even down to the UUID (not sure if this is bad), but I'm unable to mount the cloned CF, or explore it. Below are the steps I'm taking.
The CF I'm cloning is ext3. When I stick the card in the drive it mounts automatically and shows up as **/dev/sdb1 mounted in /media/frank/c44c8412-bf87-4fa4-a6fa-8259aa78bd24 **
I formatted the target CF with the command mkfs.ext3 /dev/sdb1
Then copied form the original CF using dd if=dev/sdb1 of=/home/frank/CFdisk.image
To check that the image was good: mount -o loop CFdisk.image /media/frank/compactflash
Then.. ls /media/frank/compactflash
frank@ThinkPad2:~$ ls /media/frank/compactflash/
bin etc lib mnt proc sbin sys var
boot fifos lost+found opt root share tmp vmcores
dev home media overlay run srv usr www
So it looks like the CFdisk.image file has been copied correctly.
Then putting the target CF in the drive, running lsblk i get see it is at /dev/sdb1
The use dd if=CFdisk.image /dev/sdb1
Afterwards it doesn't automaticly mount. And if I try to mount it manually to a directory, sudo mount /dev/sdb1 /media/frank/cloned/ then I get the error....
frank@ThinkPad2:~$ sudo mount /dev/sdb1 /media/frank/cloned/
mount: /media/frank/cloned: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error.
The command lsblk -f shows that it on the system the cloned CF is...
sdb
└─sdb1
ext3 c44c8412-bf87-4fa4-a6fa-8259aa78bd24
On the original CF lsblk -f shows
sdb
└─sdb1 ext3 c44c8412-bf87-4fa4-a6fa-8259aa78bd24 311.2M 60% /media/frank/c44c8412-bf87-4fa4-a6fa-8259aa78b
So, what am I not doing correctly?