Results 1 to 5 of 5

Thread: DD Help

  1. #1
    Join Date
    May 2012
    Beans
    17

    Question DD Help

    I am trying to put a file on the second sector of a disk ( right after the bootloader) and I was wondering what the dd command would be?

    Yeoj

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: DD Help

    Grub2 uses sectors after the MBR for core.img. Do not corrupt that data area like a bunch of Windows software does.

    HP ProtectTools, Dell Recovery, flexnet and a few others write into MBR meierfra.
    https://bugs.launchpad.net/ubuntu/+s...b2/+bug/441941
    https://bugs.edge.launchpad.net/ubun...1?comments=all
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    May 2012
    Beans
    17

    Re: DD Help

    I wrote a bootloader and I want to put a homemade kernel right after it on the disk.

    Yeoj

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: DD Help

    Some info on dd.

    Powerful command, but often misused and then nicknamed "dd" Data Destroyer
    http://www.linuxquestions.org/questi...ommand-362506/
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    May 2012
    Beans
    17

    Re: DD Help

    Code:
    sudo dd if=kernel.bin bs=512 skip=1 of=/dev/sdb
    dd: `kernel.bin': cannot skip to specified offset
    0+0 records in
    0+0 records out
    0 bytes (0 B) copied, 0.0116388 s, 0.0 kB/s
    I followed the tutorial and this is what I got back. For calculations the kernel.bin is 2 bytes(for now).

    Yeoj

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •