Thread: Restoring a partition, dd denied permission to open file
really weird situation.
work:
-------------
sudo bzip2 -dck /media/mtech_laptop_backups/backup.raw.bz2 | sudo dd bs=4k conv=sync,noerror of=/dev/sda1 bs=4k
work: (just testing if work)
-------------
sudo dd if=/media/mtech_laptop_backups/100mb_file.dat bs=4k conv=sync,noerror of=/dev/sda1 bs=4k
doesn't work:
-------------
sudo bzip2 -dck /media/mtech_laptop_backups/backup.raw.bz2 | dd bs=4k conv=sync,noerror of=/dev/sda1 bs=4k
lesson:
-------------
see difference between 1st , 3rd examples . . .?
used 'sudo' again in command has output of bzip2 -dck piped it. reason, after pipe, '|', first sudo no longer in effect.
other thread this:
--------------------------
http://ubuntuforums.org/showthread.php?t=518299
thred covers issues, had play commands find solution. if knew more cli , redirection, i'd know why. it's safety thing.
notes:
--------------
may affect it? have installation set start no login, although user has password. had same problem using 'try 10.04' cd, however.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Restoring a partition, dd denied permission to open file
Ubuntu
Comments
Post a Comment