I got a number of similar errors again with different numbers.
Needless to say I booted from a live USB and the drive I was backing up was not mounted. Some Google responses suggested I should fsck the backup stick but I hate to disturb an .iso. Any suggestions?
Well, apparently the filesystem on /dev/sdc1 has errors. If that’s your USB stick, you probably removed it at some point without unmounting it first?
And yes, you should run fsck to repair the filesystem IMHO.
If the .iso is just a backup, it shouldn’t matter much. Just create another .iso afterwards to be safe.
Or copy it to somewhere else before you run fsck.
Although the error message doesn’t really sound like an fsck could break your .iso file. And if it would, it is probably broken already anyway.
On 2015-06-13 16:36, ionmich wrote:
>
> I just deleted a backup .iso file from a recently new USB stick using
> Code:
> --------------------
> rm /mnt/chromebook_suse.iso
> --------------------
What is mounted on “/mnt”? The output of the “mount” command would say.
> I got a number of errors in the form of
> Code:
> --------------------
> EXT4-fs error (device sdc1): ext4_mb_generate_buddy:757: group 128, block bitmap and bg descriptor inconsistent: 13173 vs 32255 free clusters
> --------------------
Assuming that sdc1 is mounted on “/mnt”, you have to umount it, then
fsck /dev/sdc1. It is ext4, not iso.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)
While the two advices above sound correct to me, I get the idea that you have some misconceptions. When that is true, you might have problems understanding the advices as well as what is probably going on on your system.
As you might know, Unix/Linux has no concept of “extensions” thus the fact that the name of a file ends in the four characters .iso has no significance. However it is general the case that people give such a name to a file that is a direct copy of a complete ISO file system, just for the ease of the human brain. That means that while that file.ios contains the full contents (directories, files, internal contsructions like inodes) of an ISO file system, for the Linux system it is just a file.
Thus when you have problems removing and/or creating such a file on a file system (and seeing your information, it is most likely to be an Ext4 file system on /dev/sdc1 mounted at /mnt), then that Ext4 file system has problems. This would also be the case if the file you want to remove and/or create was named picture.jpeg (and would have the contents of a JPEG image).
Thus te advice to fsck that EXT4 file system on /dev/sdc1.
I do not quite understand why you copy all om /dev/sda to a file, in the same time naming it file.iso. That would be confusing, except when /dev/sda is an unpartitioned mass-storage device containing a file system of type ISO (like a CD or DVD or USB stick prepared as such). Is that the case?
I’m a bit confused is this a file on the USB which happens to be formatted ext4 or is this a bootable image that came from a ISO . This makes a world of diference
I want to have a backup of my hard drive so that if it is damaged in some non-physical way I can restore it to its previous state. I think I can do that by using dd to copy the entire drive to a single file on a USB stick which I then name *.iso so I know that I must use dd to copy it back to the hard drive. It is my understanding that dd can do that by creating an exact image of the hard drive including super-block and partitioning. Please correct me if I am mistaken, so I don’t waste my time.
I booted from a live USB stick, mounted another ext4 USB stick to /mnt and performed the dd command as shown in my earlier post.
Now following your suggestions I unmounted the destination USB stick and ran fsck on it. This resulted in
The numbers ran into the hundreds. I was however able to copy a whole directory of photographs which were on the destination drive to another USB stick. They are all there. At this point I plan on re-formatting the destination USB stick and creating a single partition to be used as ext4. I will wait for confirmation that I can backup my hard drive to a single file using dd before I try it again.
I don’t see what iso’s have to do with dd copies/backups??
I personally use rsync, luckybackup in particular, since it only copies newer files thus reduce the ware on the USB memory. USB memory has a finite number of erase cycles. But I only copy personal data I see no reason to copy the OS
On 2015-06-13 18:26, ionmich wrote:
>
> I think I need to clarify my objective.
>
> I want to have a backup of my hard drive so that if it is damaged in
> some non-physical way I can restore it to its previous state. I think I
> can do that by using dd to copy the entire drive to a single file on a
> USB stick which I then name *.iso so I know that I must use dd to copy
> it back to the hard drive. It is my understanding that dd can do that by
> creating an exact image of the hard drive including super-block and
> partitioning. Please correct me if I am mistaken, so I don’t waste my
> time.
It is correct, but it is not an ISO image. It is a DISK image.
So you should name it something.img, for instance, or whatever, but not
…iso