Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Swap-File / Swap-Partition and security ?, What is stored on the harddisk ?< Next Oldest | Next Newest >
Key Offline





Group: Members
Posts: 115
Joined: Mar. 2006
Posted: Jan. 27 2007,19:38 QUOTE

I am happy with my write-protected DSL 3.2 usb-pen.
Everything works great and each time I can boot with the same afterwards "untouched" usb-pen installation.

Now I thought about the messages, which are shown during the boot from this DSL 3.2 usb-pen:

- Using swap partition hda2
- Using swap partition hdb1

Some months ago (before I found DSL) I had Knoppix installed on my harddisks. I assume that DSL finds these old Knoppix swap-partitions automatically and uses them?
What does this exactly mean in points of security?
What is stored in a swap-partition?
Will this be deleted when a logoff/shutdown is done?

I am using the Opera 9.10 UNC file and hope that there won't be any data stored on the harddisk, which somebody could read by doing hack attacks (don't know whats possible in this area).

Looking forward for some information.
Thank you in advance.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 27 2007,20:19 QUOTE

Quote
I assume that DSL finds these old Knoppix swap-partitions automatically and uses them?
Yes

Quote
What is stored in a swap-partition?
It's used as additional temporary memory, also known as a pagefile in winspeak (in addition to RAM).  This is usually invoked when there's a shortage or physical memory.

Even though the data is volatile and lost upon shutdown, perhaps data could be recovered, like any other partitioning format (includes deleting files, etc).  If you do not wish to use swap at all, I think you could boot with "noswap", or manually turn them off via swapoff.
Back to top
Profile PM 
Key Offline





Group: Members
Posts: 115
Joined: Mar. 2006
Posted: Jan. 28 2007,07:50 QUOTE

Thank you for this information.

This means, that there can be stored everything, probably in worst case also passwords and logins (?)

Is there also an easy way to "clean" an already existing swap-partition without deleting it?

Or is this being done automatically during logoff/shutdown?
How to check this, if there are really no sensitive data left on the harddisk?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 28 2007,16:50 QUOTE

Let me put this into context.

Let's take a brand new hard drive, newly partitioned and formatted.  We place a file on it.  Then we delete it.
In reality, the data is still on the hard drive - just that the relevant links in the device's inodes/super block have been erased.


Quote
This means, that there can be stored everything, probably in worst case also passwords and logins (?)
Maybe, but these kind of applications should be secure enough.  (ie if you want to save them, they are encrypted)
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 28 2007,18:44 QUOTE

I suppose that if you really want to scrub the swap partition then you could. It would make your shutdown painfully slow.

For example lets assume your swap partition is /dev/hda4

Then for liveCD or frugals unlink and copy /etc/init.d/knoppix-halt from /KNOPPIX

As root edit /etc/init.d/knoppix-halt

Then look for the line
swapoff -a 2>/dev/null

and add the following two lines
dd /dev/zero /dev/hda4
mkswap /dev/hda4

Now upon shutdown zeroes will be written to the swap partition on /dev/hda4 and upon conclusion the swap signature will be once again installed as it will be needed upon next boot.

However, this will be so slow as to be impractical.

If you are paranoid about such things, then use boot option noswap, or perhaps carry around a micro usb drive, not flash, with your swap partition or swapfile and use noswap boot option and use /opt/bootlocal.sh for your swapon command.
Back to top
Profile PM WEB 
7 replies since Jan. 27 2007,19:38 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Swap-File / Swap-Partition and security ?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code