[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there any command to write arbitrary sectors of a hard disk on i3
Re: Is there any command to write arbitrary sectors of a hard disk on i386-pc?
Wed, 1 Aug 2012 16:44:50 +0100
Wang Weber wrote:
I checked the 'help' of GRUB2, I found there are commands like "cat"
and "hexdump" which can be used to READ arbitrary sectors. However,
I failed to find commands to WRITE arbitrary sectors on a disk.
It might help if you gave a bit more info on what you are trying to do.
If it's a case of "got a 512 byte file, want to write it to a
sector", then one method I could think of would be using "dd". Use
the oseek option to seek part way into the disk.
Obviously, you would want to try this out on something you don't mind
losing - it's very easy to get something wrong and destroy data.
Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.