Yes I know about /etc/fstab.
Okay I have added an entry for mounting /dev/sda1 in /etc/fstab. The problem is still there i.e. when my desktop appears my startup program says
Code:
sudo: no tty present and no askpass program specified
I get this message when I use 'sudo' before 'dd'. If I use the dd without 'sudo' as:
Code:
dd if=/dev/sda2 of=/dev/sda5 ?> result.txt
Then, the result.txt contains
Code:
dd: opening '/dev/sda2': Permission denied
How can I copy a partition at startup no matter if root, admin, desktop or an unprivileged user logs in?
I thought it will really be easy but seems like I was wrong. Am I not explaining the question clearly?
Bookmarks