Skip to content Gå til innhold


How to encrypt a USB thumb drive in Ubuntu Hvordan kryptere en USB-minnepinne i Ubuntu

LinuxSikkerhet

TrueCrypt is a free, open source, system for establishing and maintaining an on-the-fly-encrypted filesystem. TrueCrypt er et gratis, åpen kildekode, system for etablering og opprettholdelse av et on-the-fly-krypterte filsystem. TrueCrypt is available for Linux, Windows, and Mac OS X. Encrypted volumes can be used with any supported OS regardless of which OS they were created on. TrueCrypt er tilgjengelig for Linux, Windows og Mac OS X. Kryptert volumer kan brukes med alle støttede OS uansett hvilket OS de ble skapt på.

  1. To install TrueCrypt visit Slik installerer TrueCrypt besøk http://www.truecrypt.org/downloads.php http://www.truecrypt.org/downloads.php , scroll down to Linux , select Ubuntu – x86.deb , then click Download . , Bla ned til Linux, velg Ubuntu - x86.deb, og klikk deretter Last ned.

  2. click to enlarge Klikk for å forstørre

  3. When the download is complete, browse to it in the File Browser, right-click on it, and select Extract Here . Når nedlastingen er fullført, blar du til det i Filsøk, høyreklikk på den og velger Extract Here.

  4. click to enlarge Klikk for å forstørre

  5. Now double-click on the extracted file and click Run when prompted what to do with the file. Nå dobbeltklikker du på den utpakkede filen og deretter Kjør når du blir spurt hva de skal gjøre med filen.

  6. click to enlarge Klikk for å forstørre

  7. Next, click Extract .deb Package File . Deretter klikker Extract. Deb pakkefilen.

  8. click to enlarge Klikk for å forstørre

  9. You must agree to the TrueCrypt License. Du må godta TrueCrypt License. Click I accept and agree to be bound by the license terms . Klikk Jeg aksepterer å være bundet av lisensvilkårene.

  10. click to enlarge Klikk for å forstørre

  11. The TrueCrypt installation package is extracted and placed in /tmp Den TrueCrypt installasjonspakken blir trukket ut og plasseres i / tmp

  12. click to enlarge Klikk for å forstørre

  13. Using the File Browser, browse to /tmp and right-click on the TrueCrypt .deb file, then select Open with “GDebi Package Installer” . Bruke File Browser, bla til / tmp og høyreklikk på TrueCrypt. Deb-fil, velg Åpne med "GDebi Package Installer".

  14. click to enlarge Klikk for å forstørre

  15. Now click Install Package . Nå klikker du Installer Package.

  16. click to enlarge Klikk for å forstørre

  17. When prompted, enter your password and click OK . Når du blir bedt inn passordet og klikk OK.

  18. click to enlarge Klikk for å forstørre

  19. The package manager will automatically download and install any dependencies as well as install TrueCrypt. Pakken manager vil automatisk laste ned og installere alle avhengigheter samt installere TrueCrypt.

  20. click to enlarge Klikk for å forstørre


    click to enlarge Klikk for å forstørre

  21. Run TrueCrypt by clicking Applications -> Other -> TrueCrypt . Kjør TrueCrypt ved å klikke på Programmer -> Annet -> TrueCrypt.

  22. click to enlarge Klikk for å forstørre

  23. Click Create Volume to start the Volume Creation Wizard . Klikk Opprett Volum å starte Volume Creation Wizard.

  24. click to enlarge Klikk for å forstørre

  25. In this example I'm going to create an encrypted volume on an entire USB stick rather than the default encrypted file container. I dette eksempelet skal jeg opprette en kryptert volum på en hel USB-pinne i stedet for standard kryptert fil beholder. Click Create a volume within a partition/drive then click Next . Klikk Opprett et volum i en partisjon / stasjon klikk på Neste.

  26. click to enlarge Klikk for å forstørre

  27. The default Volume Type is a Standard TrueCrypt volume , which is fine with me. Standardverdien Volum Type er en Standard TrueCrypt volume, som er fint med meg. Click Next . Klikk på Neste.

  28. click to enlarge Klikk for å forstørre

  29. Next we have to choose the Volume Location . Neste vi må velge Volum Location. Click Select Device . Klikk Velg enhet.

  30. click to enlarge Klikk for å forstørre

  31. My USB stick shows up as /dev/sdb , so I selected /dev/sdb and clicked OK . Min USB-pinne viser opp som / dev / sdb, så jeg valgte / dev / sdb og klikket OK. Your USB stick may show up as a different device. USB-pinne kan vise seg som en annen enhet. Make sure you are selecting the correct device. Kontroller at du velger riktig enhet.

  32. click to enlarge Klikk for å forstørre

  33. Now the Volume Location shows /dev/sdb .Volum Sted teater / dev / sdb. Click Next . Klikk på Neste.

  34. click to enlarge Klikk for å forstørre

  35. When prompted if you're sure you want to encrypt the entire device, click Yes . Når du blir spurt om du er sikker på at du vil kryptere hele enheten, klikker du Ja.

  36. click to enlarge Klikk for å forstørre

  37. The following error message surprised me. Følgende feilmelding overrasket meg. I would have though TrueCrypt would have given me the option to delete the partitions. Jeg ville ha skjønt TrueCrypt ville ha gitt meg muligheten til å slette partisjoner. Instead I had to do it manually. I stedet måtte jeg gjøre det manuelt. Click OK . Click OK.

  38. click to enlarge Klikk for å forstørre

  39. Now click Applications -> Accessories -> Terminal . Nå klikker du Programmer -> Tilbehør -> Terminal.

  40. click to enlarge Klikk for å forstørre

  41. The following steps will delete the existing partition from the USB stick. Følgende trinn vil slette den eksisterende partisjonen fra USB-pinne. This will erase any files on the device so make sure you have a backup if there's anything on it that you want to keep. Dette vil slette alle filer på enheten så sørg for at du har en backup hvis det skjer noe på det at du vil beholde.

    In the terminal window type sudo fdisk /dev/sdb substituting sdb with the correct device name for your USB stick. I terminalvindu skriver sudo fdisk / dev / sdb substituere sdb med riktig enhet navn for USB-pinne. Enter your password if prompted, then simply enter d to delete the partition, then w to write the changes to the device. Skriv inn passordet ditt hvis du blir bedt om, så bare skriv d å slette partisjonen, og w for å skrive endringene til enheten. Close the terminal window. Lukk terminalvindu.


  42. click to enlarge Klikk for å forstørre

  43. Now we're back at the TrueCrypt Volume Creation Wizard. Nå er vi tilbake på TrueCrypt Volume Creation Wizard. Click Next . Klikk på Neste.

  44. click to enlarge Klikk for å forstørre

  45. Enter your password when prompted and click OK . Skriv inn passordet når du blir bedt om det, og klikk OK.

  46. click to enlarge Klikk for å forstørre

  47. The default Encryption Options are good enough for me. Standardverdien Encryption Options er gode nok for meg. Click Next . Klikk på Neste.

  48. click to enlarge Klikk for å forstørre

  49. Now enter and confirm the password you want to use for your encrypted volume, then click Next . Skriv inn og bekreft passordet du vil bruke for dine krypterte volum, deretter klikker du Neste.

  50. click to enlarge Klikk for å forstørre

  51. TrueCrypt warned me that the password I chose was too short, but seeing how this is just an example I clicked Yes to confirm that I was fine with the short password. TrueCrypt advarte meg om at passordet jeg valgte var for kort, men å se hvordan dette er bare et eksempel jeg klikket Ja for å bekrefte at jeg var fin med den korte passord.

  52. click to enlarge Klikk for å forstørre

  53. I chose to accept the default Format Options . Jeg valgte å godta standard Format Valg. Note that if you want to be able to use your encrypted USB stick with Windows systems too, you must use the FAT filesystem. Merk at hvis du vil være i stand til å bruke krypterte USB-pinne med Windows-systemer også, må du bruke FAT-filsystemet. Click Next . Klikk på Neste.

  54. click to enlarge Klikk for å forstørre

  55. Wiggle your mouse cursor around within the TrueCrypt window for a bit, then click Format . Wiggle musepekeren rundt i TrueCrypt vinduet litt, deretter klikker du Formater.

  56. click to enlarge Klikk for å forstørre

  57. You will be warned that all files currently on your USB stick will be erased. Du vil bli advart om at alle filene tiden på USB-minnepinnen blir slettet. Click Yes . Klikk Ja.

  58. click to enlarge Klikk for å forstørre

  59. You might want to grab a coffee at this stage. Du ønsker kanskje å ta en kaffe på dette stadiet. Formatting the volume took far longer for me than the estimated 105 seconds. Formatere volumet tok mye lengre tid for meg enn den estimerte 105 sekunder.

  60. click to enlarge Klikk for å forstørre

  61. Hopefully when you come back from coffee, you'll see the following and click OK . Forhåpentligvis når du kommer tilbake fra kaffe, ser du følgende og klikker OK.

  62. click to enlarge Klikk for å forstørre

  63. We're not going to create another TrueCrypt volume, so click Exit . Vi ikke kommer til å opprette en TrueCrypt volume, så klikker du Avslutt.

  64. click to enlarge Klikk for å forstørre

  65. Now we need to mount the encrypted volume so we can use it. Nå må vi montere det krypterte volumet slik at vi kan bruke den. Select Slot 1 in the top pane, then click Select Device . Velg Slot 1 i den øverste ruten, deretter klikker du Velg Enhetsbehandling.

  66. click to enlarge Klikk for å forstørre

  67. I chose /dev/sdb and clicked OK . Jeg valgte / dev / sdb og klikket OK.

  68. click to enlarge Klikk for å forstørre

  69. Now click Mount . Nå klikk Mount.

  70. click to enlarge Klikk for å forstørre

  71. Enter the password you chose when encrypting the volume and click OK . Skriv inn passordet du valgte da å kryptere volum og klikk OK.

  72. click to enlarge Klikk for å forstørre

  73. Note that the encrypted volume now shows up in the top pane and an icon representing the encrypted volume has appeared on the desktop. Merk at den krypterte volumet nå dukker opp i den øverste ruten og et ikon som representerer den krypterte volumet har dukket opp på skrivebordet. Click Exit . Klikk Avslutt.

  74. click to enlarge Klikk for å forstørre

  75. Double-click on the TrueCrypt volume icon on the desktop and you have a fresh, blank, encrypted disk to use just as you would any other disk. Dobbeltklikk på TrueCrypt volume-ikonet på skrivebordet, og du har et nytt, tomt, kryptert disken til å bruke akkurat som alle andre disken.

  76. click to enlarge Klikk for å forstørre

  77. When you are finished using your encrypted volume, open TrueCrypt again by selecting Applications -> Other -> TrueCrypt . Når du er ferdig med å bruke krypterte volum, åpner TrueCrypt igjen ved å velge Programmer -> Annet -> TrueCrypt. Select your encrypted volume in the top pane, then click Dismount . Velg et kryptert volum i den øverste ruten, deretter klikker du Demonter.

  78. click to enlarge Klikk for å forstørre

  79. TrueCrypt unmounts the volume and you should see that the top pane is now empty. TrueCrypt unmounts volumet og skal du se at den øverste ruten er nå tom.

  80. click to enlarge Klikk for å forstørre

Posted in Posted in Guest Blogger Guest Blogger , , Linux Linux , , Security Sikkerhet . .

Related Posts: Relaterte innlegg:

How to securely store files in Windows Hvordan du sikkert lagre filer i Windows
How to mount a remote filesystem in Ubuntu Hvordan montere en ekstern filsystem i Ubuntu
How to analyze disk usage in Ubuntu Hvordan analysere diskbruken i Ubuntu
How to automatically sign in to Ubuntu Slik automatisk logge på Ubuntu
How to move or copy photos from your digital camera to your PC in Ubuntu Slik flytter eller kopierer bilder fra digitalkamera til PC i Ubuntu

3 Responses 3 Svar

Stay in touch with the conversation, subscribe to the Holde kontakten med samtalen, abonnere på RSS feed for comments on this post RSS feed for kommentarer til dette innlegget . .

  1. gnuman gnuman says sier

    Great tutorial on how to use TrueCrypt to encrypt a USB drive. Great tutorial på hvordan å bruke TrueCrypt å kryptere en USB-stasjonen.

  2. AlesZib says AlesZib sier

    I was just wondering, can I use such encrypted USB on other PCs. Jeg bare lurte på, kan jeg bruke slike krypterte USB på andre PCer. I guess they need to have TrueCrypt instaled? Jeg tror de må ha TrueCrypt instaled? Is it possible to have the program for both ubuntu and Windows on a USB and run it from there (they of course should not be encrypted)? Er det mulig å ha program for både Ubuntu og Windows på en USB og kjøre det derfra (de selvfølgelig ikke skal være kryptert)?

  3. Marcos says Marcos sier

    Hay alguna manera de que el montado/desmontado del USB se haga de forma Automatica tanto Windows como en Ubunutu? Hay alguna manera de que el Montado / desmontado del USB se Haga de forma Automatica tanto Windows como no Ubunutu?



Some HTML is OK Some HTML is OK

or, reply to this post via eller svare på dette innlegget via trackback styrekule . .