how can I backup my MBR with dd and restore it later with dd?
assume that i have a flash drive to save the image to running from the livecd...
how to backup MBR with dd?
how to backup MBR with dd?
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
so i guess that means dd if=infile and of=outfile bs=512 (512 byte bootsector) count=1 (not sure)
that makes sence thanks
that makes sence thanks
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
I'm glad it makes sense, because dd doesn't follow Linux conventions for parameters very closely.cb88 wrote:so i guess that means dd if=infile and of=outfile bs=512 (512 byte bootsector) count=1 (not sure)
that makes sence thanks
In this example count=1 says, "Start at the first sector and take the amount of data defined in bs=, and quit after doing it one time."
In common language it says, "Write (copy) a file containing the first 512 bytes on the first sector of /dev/hda, which happens to be the MBR, and that's because we know in advance where the MBR is located and how big it is."
If count=10 it would start at the first sector and copy 512 bytes sequentially up the sectors ten times. The file size would be 5120 and it would contain more than just the MBR.