[Trisquel-users] Re : deleted ext4 partition

2017-08-12 Thread lcerf
Substitute "#" with "echo" and type enter.  The command will be printed but  
after Shell expansion (typically the wildcard, *, but also the variables,  
etc.).  Try for instance:

$ echo cp /var/log/syslog* $HOME
Here it returns:
cp /var/log/syslog /var/log/syslog.1 /var/log/syslog.2.gz  
/var/log/syslog.3.gz /var/log/syslog.4.gz /var/log/syslog.5.gz /home/banana
Once the command checked, go back a line in the history (C-p or the up  
arrow), move the cursor to the beginning of the line (C-a or Home) delete  
"echo" (M-d) and type Enter to execute.


[Trisquel-users] Re : deleted ext4 partition

2017-08-10 Thread lcerf
You overwrote with zeros ("if=/dev/zero") the beginning of /dev/sda1  
("of=/dev/sda1"), 2048 blocks ("count=2048") of size 1k ("bs=1k").  2 MB.   
Almost nothing!  There is much to be rescued if you want to: the other  
partitions are intact and a program like PhotoRec can recover almost all  
files on /dev/sda1: http://www.cgsecurity.org/wiki/PhotoRec


But does /dev/sda1 even contain user data?  It makes no sense recovering  
system files: reinstall.  Now if /dev/sda1 only contains user data, there is  
nothing to reinstall: the system is intact.