Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Saturday, December 27, 2008

Create encrypted tar file

one of the way to create a encrypted tar file under linux

  $ tar -zcvf - stuff|openssl des3 -salt -k secretpassword | dd of=stuff.des3           
                                                                                                 
          This will create stuff.des3...don't forget the password you                            
          put in place of  secretpassword. This can be done interactive as                       
          well.                                                                                  
                                                                                                 
            $ dd if=stuff.des3 |openssl des3 -d -k secretpassword|tar zxf -                      
                                                                                                 
     NOTE:  above there is a "-" at the end... this will                                         
            extract everything.                                                              

Friday, December 26, 2008

Mount error in Ubuntu

I got a wired error in my ubuntu today, when I tried to mount my Windows Partition. So I tried to reboot the machine in windows, and thought OS will do a filesystem check so that the error got wiped out. But no luck after rebooting the machine so many times. And below is the solution what I found:



Error Message:



Solution:




1. sudo apt-get install ntfsprogs



2. sudo ntfsfix /dev/sda2



mganesh@bluegene:~$ sudo ntfsfix /dev/sda3

Mounting volume... FAILED

Attempting to correct errors...

Processing $MFT and $MFTMirr...

Reading $MFT... OK

Reading $MFTMirr... OK

Comparing $MFTMirr to $MFT... OK

Processing of $MFT and $MFTMirr completed successfully.

Setting required flags on partition... OK

Going to empty the journal ($LogFile)... OK

NTFS volume version is 3.1.

NTFS partition /dev/sda3 was processed successfully.

mganesh@bluegene:~$ sudo ntfsfix /dev/sda2

Mounting volume... FAILED

Attempting to correct errors...

Processing $MFT and $MFTMirr...

Reading $MFT... OK

Reading $MFTMirr... OK

Comparing $MFTMirr to $MFT... OK

Processing of $MFT and $MFTMirr completed successfully.

Setting required flags on partition... OK

Going to empty the journal ($LogFile)... OK

NTFS volume version is 3.1.

NTFS partition /dev/sda2 was processed successfully.





Happy Ubuntu :) !! .. This solves the problem