I have a small hard drive that is 16gb, it has 1 Linux partition on. I shrinked the partition partition down to 5gb and test booted to make sure it works. I want to make a backup of this partition and be able to restore it onto a flash drive. I have tired multiple times to do this and it will not boot. So I tried saving the hard drives MBR to an image by using the command 'dd if=dev/sda of=[login to view URL] bs=512 count=1` and then restoring it onto the usb drive with 'dd if=[login to view URL] of=dev/sda bs=446 count=1' This worked but I dont want to have to use 2 commands to do this. I have tried to back up the harddrive from the 1st sector to the last sector of the end partition. How can I do this and get an img or iso file to be able to restore onto any drive and boot the linux that I have? Im sure there is a simplt command that I am missing to be able to do this.
5 freelancer đang chào giá trung bình $31 cho công việc này
Hello. Could you please show me the create/restore commands or the full image? I think I can help make you the proper image - I have decent experience with dd and partitions.