Announcement

Collapse
No announcement yet.

backup mbr & partition Table

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    backup mbr & partition Table

    Linux - Ubuntu 13.10 (saucy), 64bit, 3.11.0-19-generic, Memory 7985 MiB
    AMD Athlon(tm) II X4 645 Processor, 4 CPU's
    I want to periodically backup my mbr, including the partition table.
    My kubuntu drive:
    /dev/sdb1: UUID="5d21ae8f-80f2-46e2-8d3c-c4d1e6f71565" TYPE="ext4"
    /dev/sdb3: UUID="b37c8528-ecdb-4c73-bb87-26280fad5127" TYPE="swap"
    /dev/sdb5: UUID="928d11a4-eb4d-44e3-a4a0-94dd897be7d5" TYPE="ext2"

    According to http://psychocats.net – backup mbr & partition Table:

    Code:
    sudo dd if=/dev/sdb of=mbr.bin bs=512 count=1 
    [sudo] password for bumpy: 
    1+0 records in
    1+0 records out
    512 bytes (512 B) copied, 0.0006847 s, 748 kB/s
    bumpy@bumpyputer:~$
    Where is is saved to?

    #2
    of==output file==mbr.bin

    the file is ~/mbr.bin

    Comment


      #3
      Originally posted by Bumpalot View Post
      Where is is saved to?
      When operating as 'user', whether from a GUI application or the terminal, you are in your user /home directory. Without explicitly specifying the location of an output operation, the output will be performed/written to your user /home directory, which is what kubicle is saying.
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Originally posted by Snowhog View Post
        When operating as 'user', whether from a GUI application or the terminal, you are in your user /home directory. Without explicitly specifying the location of an output operation, the output will be performed/written to your user /home directory
        Technically, when an output path of an output file is not given, the output goes to $PWD which commonly is $HOME ("~" is a shortcut for $HOME) if you haven't changed directories with cd. if you run the command from another directory, the output file is put there instead of $HOME (because then $PWD is not the same as $HOME).

        Comment


          #5
          Thanks for your quick response!!

          Comment

          Working...
          X