Find the answer to your Linux question:
Results 1 to 3 of 3
I need to create backup of internal drive and write it on DVD. I want to do this in single command...like below: ntfsclone -f --save-image --overwrite - /dev/sda1 | growisofs ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    2

    How to read from standard input in 'growisofs' command?

    I need to create backup of internal drive and write it on DVD. I want to do this in single command...like below:
    ntfsclone -f --save-image --overwrite - /dev/sda1 | growisofs -Z /dev/sr1=/dev/stdin

    in above command, i tried to to create backup of first partition of internal drive and need to write this backup on DVD. But above command has some probolem due to which it could not write backup on DVD....please guide me where m i wrong? and how to read from standard input in 'growisofs' command?

    Thanks in advance!

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,943
    When you run your command, do you get any output or error messages? If so, it would be helpful if you posted it. Have you read the man pages for mkisofs? Could check this link:


    growisofs(1) - Linux man page

    There are some example commands in the middle of the page.

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    2

    How to read from standard input in 'growisofs' command?

    Here is the result of above command, although it didn't give any error message but didn't give required output. DVD hasn't any backup image.

    [code]
    [root@localhost liveuser]# ntfsclone -f --save-image --overwrite - /dev/sda1 | growisofs -Z /dev/sr1=/dev/stdin
    ntfsclone v2.0.0 (libntfs 10:0:0)
    NTFS volume version: 3.1
    Cluster size : 4096 bytes
    Current volume size: 78641868800 bytes (78642 MB)
    Current device size: 78641869824 bytes (78642 MB)
    Scanning volume ...
    100.00 percent completed
    Accounting clusters ...
    Space in use : 71 MB (0.1%)
    Saving NTFS to image ...
    Executing 'builtin_dd if=/dev/stdin of=/dev/sr1 obs=32k seek=0'
    /dev/sr1: restarting DVD+RW format...
    /dev/sr1: "Current Write Speed" is 4.1x1352KBps.
    11010048/4700372992 ( 0.2%) @2.4x, remaining 28:23 RBU 100.0% UBU 3.6%
    29523968/4700372992 ( 0.6%) @4.0x, remaining 18:27 RBU 100.0% UBU 99.8%
    48037888/4700372992 ( 1.0%) @4.0x, remaining 17:45 RBU 100.0% UBU 99.8%
    100.00 percent completed
    Syncing ...
    66519040/4700372992 ( 1.4%) @4.0x, remaining 16:15 RBU 23.0% UBU 100.0%
    builtin_dd: 34368*2KB out @ average 3.4x1352KBps
    /dev/sr1: flushing cache
    /dev/sr1: stopping de-icing
    /dev/sr1: writing lead-out
    [code/]

    I think, name of the backup image is missing in above command.... like in the following command, ntfsclone creates image and stores standard output to console, lzop reads standard input and zip that image and stores with the name "User.img.gz" under "/mnt/hdn/" path.

    ntfsclone -f --save-image --overwrite - /dev/sda1 | lzop -1 -c > /mnt/hdn/User.img.gz

    I think, 'growisofs' would be like above case.... but i don't know the correct syntax.

    Looking forward for ur reply...

    Thanks in advance,

Posting Permissions

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