Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I guess I need some kind of an editor. There was one for MS-DOS, named pctools.
EDIT: i did dd if=/dev/sda of=mbr.bin bs=512 count=1
With 'hexdump -C mbr.bin' I saw the entry offset is 1BE. I could blank the entry using dd itself /dev/zero, but it's too risky. I need to be able to edit mbr.bin. Then I write it to disk with dd.
You could use gparted for a graphical tool, or gfdisk for a good command line tool, or fdisk for the most basic partition editor on Linux. Making a backup like you did with dd is a good idea before you edit the partition table. You should save it to a USB stick.
Thanks. Gparted I must first write it to a pendrive. I saw vi can do it with :%!xxd But when I use this command, the buffer completely changes. I don't understand!
EDIT: Also I did
dd if=/dev/zero of=mbr.bin bs=1 count=16 seek=446
but dd erases truncates after the last byte written. That is, the new file changes to 446+16 bytes long.
If you have a live disk or usb stick of Linux, you should find it has Gparted on it. As a Slacker, you probably won't have one, but getting and keeping something like SystemRescueCd or GParted Live is generally a good idea for system repair and data rescue.
I tried gparted but it fails to recognize the partition table though I am using one of the partition right now. I laughable not being able to do such a simple thing as this. I want to write 0x274ef5278 at offset 45 in a file and I can't. Is there not a program to do this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.