LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-04-2008, 02:55 AM   #1
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Rep: Reputation: 30
migrating to an encrypted fs on existing installation


On my laptop there is already Slackware installed, there came a need to encrypt the fs on it. I do have necessary space on another machine to backup. The question is how to do that. Actually we need to delete all those ordinary partitions to create LVM, but the system won't be functional then. So I need to use some live distribution to do that, but my dvd-rom is dead and removed, so the only possibility then is flash drive. So what?
 
Old 02-04-2008, 07:18 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
I am not sure what your needs exactly are, but if you just need to encrypt certain files, have you looked at truecrypt ? It is easy and crossplatform.
 
Old 02-05-2008, 04:06 PM   #3
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
There is an option to encrypt the FS during the installation process of Slackware, but the way to do it after the installation is harder. So I am looking for a live distribution for flash drives to rsync backwards files i've backed up on another machine.
Actually the guide is here: http://slackware.osuosl.org/slackwar...ADME_CRYPT.TXT
Of course the simplicity of the way drew my attention to it, haven't noticed it before.
 
Old 02-05-2008, 04:31 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Do you want to completely re-install Slackware, or do you want to backup all of the installed Slackware to the other computer, destroy the partitions, setup new partitions and encrypt them, and finally copy all data back (and then run lilo to make it all bootable again)?

The Slackware USB installer would be able to do the first option. A live distro on a USB stick would be able to achieve what I described in the second option.
You can create a USB installer containing the full set of Slackware packages if you have a 2 GB stick and use the directions here: http://www.slackware.com/~alien/tools/usbinstall/12.0/

A live distro on USB like SLAX should be able to do option #2. The Slackware installer in the next release should be able to do the same - fingers crossed for the green light on that.

Eric
 
Old 02-06-2008, 02:19 PM   #5
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Alien Bob View Post
you want to backup all of the installed Slackware to the other computer, destroy the partitions, setup new partitions and encrypt them, and finally copy all data back (and then run lilo to make it all bootable again)
Yes.
Quote:
Originally Posted by Alien Bob View Post
A live distro on USB like SLAX should be able to do option
This night I was looking for a live Slackware-related USB-stick live distro and eventually came to slax owner's blog, then saw your message, but still thanks
Quote:
Originally Posted by Alien Bob View Post
The Slackware installer in the next release should be able to do the same - fingers crossed for the green light on that.
Looking forward it. This is what I missed about Slackware.



The next question is: what to backup from /sys /proc and /dev ? They are system fs, so thought they should not be backed up. But last time I tried to bring previous installation to life had problems about restoring /dev as have never thought it should be backed up as udev creates it on each boot. Confused about it.

Besides before encrypting partitions I want to create logical volumes and encrypt them is it possible instead of ordinary partitions?
 
Old 02-09-2008, 06:31 PM   #6
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
Unfortunately nobody answered. But I even have not reached the restoring procedure, stuck with creating LVM in slax:
Code:
# modprobe dm-mod
# vgscan
vgscan - LVM driver/module not loaded ?
What is needed besides dm-mod? It seems to be the only thing, but still vgscan fails.

So now I do have a locked up laptop and a PC to work Luckily everything is backed up...
 
Old 02-10-2008, 03:20 AM   #7
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Too bad you have a dead dvd-rom, I have made my own live version of slackware 11 that encrypts the whole partitions and install the live cd to the hard drive, it also makes the decryption boot cd, (it's the only way to decrypt the hard drive), love to have someone else test it for me. Unfortunately too, it only uses the reiserfs, and not LVM.
 
Old 02-10-2008, 05:38 AM   #8
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by iiv View Post
Unfortunately nobody answered. But I even have not reached the restoring procedure, stuck with creating LVM in slax:
Code:
# modprobe dm-mod
# vgscan
vgscan - LVM driver/module not loaded ?
What is needed besides dm-mod? It seems to be the only thing, but still vgscan fails.
Solved. Slax is based on Slackware 10.2, where the kernels were 2.4. Creator of Slax upgraded the Kernel, but forgot to upgrade LVM package to LVM2, which actually uses devmapper.

Quote:
Originally Posted by fotoguy View Post
Too bad you have a dead dvd-rom, I have made my own live version of slackware 11 that encrypts the whole partitions and install the live cd to the hard drive, it also makes the decryption boot cd, (it's the only way to decrypt the hard drive), love to have someone else test it for me. Unfortunately too, it only uses the reiserfs, and not LVM.
This is great Yes, it is a great pain, when the dvd-rom is not accessible, suffer much from it.
Thank you for the answer!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
migrating existing OS to RAID xqkp77 Linux - General 2 06-07-2007 09:49 AM
how to duplicate existing installation jjordan Linux - General 7 05-02-2007 10:32 AM
Encrypted installation? Zmyrgel Slackware 7 10-16-2006 06:29 AM
Migrating an existing linux install to new disks/hardware quiffhanger Linux - Software 4 02-24-2006 01:40 PM
Installation fatal errors while migrating to Red Hat Fedora 4 jeep4wd Linux - Newbie 6 07-31-2005 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration