Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Script] create|(u)mount|burn encrypted cds/dvds
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Sodom
n00b
n00b


Joined: 02 Jun 2004
Posts: 58
Location: Dusseldorf, Germany

PostPosted: Fri Aug 11, 2006 1:48 pm    Post subject: [Script] create|(u)mount|burn encrypted cds/dvds Reply with quote

Hi,

after reading this wiki article I wrote an (interactive) bash script which does this for me in a satisfactory manner.

Features:
[*] create encrypted iso
[*] mount encrypted iso or cd/dvd
[*] umount encrypted iso or cd/dvd
[*] burn encrypted iso to cd/dvd
[*] after succesfully creating iso, you can choose to mount and test the iso and/or burn it directly

Code:

usage: backupdvd <option> <dir|iso|device>
                                    c(reate) <directory with data you like to encrypt>
                                    m(ount)   <iso-image|device>
                                    u(mount)  <iso-image|device> 
                                    b(urn)    <iso-image>


Download backupdvd.tar (10kb)

Please give me feedback:
[*] usability
[*] code

ToDo:
There is only one prompt to type the encryption password, which must be at least 20 characters. This is bad, because typing errors will - if iso is not mounted and tested - lead to data loss, the burned cd/dvd will be trash.

Thanks for reading and testing.
Hopefully someone besides me can use this script.

Sodom
_________________
"The only way...to avoid moral corruption would be to have an OS that is free." Richard M. Stallman


Last edited by Sodom on Mon Aug 14, 2006 3:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sodom
n00b
n00b


Joined: 02 Jun 2004
Posts: 58
Location: Dusseldorf, Germany

PostPosted: Mon Aug 14, 2006 2:28 pm    Post subject: Reply with quote

hmm ... 100 views and no comments? Sry for bumping ... :(
Screenshot
_________________
"The only way...to avoid moral corruption would be to have an OS that is free." Richard M. Stallman
Back to top
View user's profile Send private message
bdm
Guru
Guru


Joined: 20 Jan 2006
Posts: 305
Location: Canada, Barrie, Ontario

PostPosted: Mon Aug 14, 2006 9:31 pm    Post subject: Reply with quote

Looks pretty neat!

I'll have to check it out once I actually get Gentoo running properly.

Hahaha, "... so drink your coffee and watch some pr0n". ;)
Back to top
View user's profile Send private message
Pixelbrei
n00b
n00b


Joined: 25 Apr 2003
Posts: 62

PostPosted: Fri Aug 18, 2006 12:29 am    Post subject: Reply with quote

Cool idea, gonna try it...
Telling from the WIKI page, it only uses AES... i think support for other algorithms would be nice.
I am using serpent for my hard disks.
... and i just had the idea, perhaps this could be done via device-mapper, too?

P.S.
you're an Eisregen fan? Me too! ;)
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Sun Aug 03, 2008 9:53 am    Post subject: Reply with quote

If someone still reads this old topic...

Does this script need root priviliges to mount iso images? I've been searching something that could mount disk images to user's home directory (or to /media or /mnt) without root priviliges. Then it would be really easy to integrate it with Konqueror/dolphin.
I once made a bash script to do that thing for me, but for security reasons setting suid for bash script (to be able to run it with root priviliges (was it suid? :D)), does not do the thing I wanted. The script will always run as regular user priviliges. I could consider changing bash settings to overrride that for my home computer, but not for any computer where other people can access to it (server).
I know the mountISO project - a Konqueror plugin to mount disk images. It might be just the tool for me, but I'd like something that could do the thing from cli also...
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum