Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: cypherdoc on July 07, 2011, 08:43:21 PM



Title: Live CD experts
Post by: cypherdoc on July 07, 2011, 08:43:21 PM
i've created an offline wallet with Ubuntu Live CD and saved it to a usb stick.

will bringing that wallet back into the client with a block chain download in a seperate session of Live CD create any wallet fingerprints on the hard drive?


Title: Re: Live CD experts
Post by: david4dev on July 07, 2011, 09:13:50 PM
As long as you only access the wallet from a live CD and don't move it to another drive it will only ever exist in that location and in memory, which is wiped when you end the live session.


Title: Re: Live CD experts
Post by: drawoc on July 07, 2011, 09:33:07 PM
i've created an offline wallet with Ubuntu Live CD and saved it to a usb stick.

will bringing that wallet back into the client with a block chain download in a seperate session of Live CD create any wallet fingerprints on the hard drive?

No, unless you already have a Linux installation, in which case there's a small chance that it will automatically activate that swap partition, and use that if you run out of memory (I don't think it does, but I'm not sure.)
If it is on a computer with Linux on it, just open up gparted when you boot into the live cd. Look for any partitions listed as type "Linux Swap", and if they have the little key icon next to them, right click them and select "swapoff"


Title: Re: Live CD experts
Post by: rabit on July 07, 2011, 09:47:40 PM
No, unless you already have a Linux installation, in which case there's a small chance that it will automatically activate that swap partition, and use that if you run out of memory (I don't think it does, but I'm not sure.)
If it is on a computer with Linux on it, just open up gparted when you boot into the live cd. Look for any partitions listed as type "Linux Swap", and if they have the little key icon next to them, right click them and select "swapoff"

You can check with the top command if your OS is using swap memory.


Title: Re: Live CD experts
Post by: cypherdoc on July 07, 2011, 10:01:23 PM
i'm getting multiple low memory warnings as i near the end of the blockchain download.  is there a way to increase memory allocated to the live cd session?


Title: Re: Live CD experts
Post by: cypherdoc on July 07, 2011, 10:03:13 PM
No, unless you already have a Linux installation, in which case there's a small chance that it will automatically activate that swap partition, and use that if you run out of memory (I don't think it does, but I'm not sure.)
If it is on a computer with Linux on it, just open up gparted when you boot into the live cd. Look for any partitions listed as type "Linux Swap", and if they have the little key icon next to them, right click them and select "swapoff"

You can check with the top command if your OS is using swap memory.

how exactly do i do that from a non Linux user?


Title: Re: Live CD experts
Post by: rabit on July 07, 2011, 10:10:12 PM
how exactly do i do that from a non Linux user?

Just run the command "top" in the command line and you will see how much memory and swap memory your system uses.

For your first question you could create an encrypted SWAP partition for extending memory and then delete it after you dont need it anymore.

The commands for this are cryptsetup,mount,mkswap and swapon but you need some Linux background to use them, check the man pages of them ("man mount" for example).

It should work like this:

Create a partition with gparted remember which partition you want to use (/dev/sdxx).

Then make as root in commandline:
cryptsetup -c aes-xts-plain -s 512 luksFormat /dev/sdxx
cryptsetup luksOpen /dev/sdxx swap
mkswap /dev/mapper/swap
swapon -U UUID

The UUID is the one of the encrypted partition but i forgot how to find it, perhaps someone else can help (or try swapon /dev/mapper/swap not sure if it works this way).



Title: Re: Live CD experts
Post by: david4dev on July 08, 2011, 09:31:31 AM
No, unless you already have a Linux installation, in which case there's a small chance that it will automatically activate that swap partition, and use that if you run out of memory (I don't think it does, but I'm not sure.)
If it is on a computer with Linux on it, just open up gparted when you boot into the live cd. Look for any partitions listed as type "Linux Swap", and if they have the little key icon next to them, right click them and select "swapoff"

You can check with the top command if your OS is using swap memory.

how exactly do i do that from a non Linux user?

You don't need to use the top command. You can launch 'System Monitor' which is usually found in the System->Administration menu. Click on the 'Resources' tab:

https://i.imgur.com/Pk6uA.png


Title: Re: Live CD experts
Post by: cypherdoc on July 08, 2011, 01:24:36 PM
No, unless you already have a Linux installation, in which case there's a small chance that it will automatically activate that swap partition, and use that if you run out of memory (I don't think it does, but I'm not sure.)
If it is on a computer with Linux on it, just open up gparted when you boot into the live cd. Look for any partitions listed as type "Linux Swap", and if they have the little key icon next to them, right click them and select "swapoff"

You can check with the top command if your OS is using swap memory.

how exactly do i do that from a non Linux user?

You don't need to use the top command. You can launch 'System Monitor' which is usually found in the System->Administration menu. Click on the 'Resources' tab:

https://i.imgur.com/Pk6uA.png

thank you. that is much easier for a non Linux person.  looking at your diagram, how do i adjust the swap memory?

rabit, thanks for the command lines but its all gibberish to me!


Title: Re: Live CD experts
Post by: Xenland on July 08, 2011, 01:54:36 PM
i've created an offline wallet with Ubuntu Live CD and saved it to a usb stick.

will bringing that wallet back into the client with a block chain download in a seperate session of Live CD create any wallet fingerprints on the hard drive?
no but, I would recommend making another partition on that usb stick just for a reuseable harddrive to put that wallet.dat file


Title: Re: Live CD experts
Post by: cypherdoc on July 08, 2011, 01:56:32 PM
i've created an offline wallet with Ubuntu Live CD and saved it to a usb stick.

will bringing that wallet back into the client with a block chain download in a seperate session of Live CD create any wallet fingerprints on the hard drive?
no but, I would recommend making another partition on that usb stick just for a reuseable harddrive to put that wallet.dat file

on the usb stick?  what difference would that make?


Title: Re: Live CD experts
Post by: drgr33n on July 08, 2011, 02:14:21 PM
Just create a persistent home filesystem and place it in the root of your usb stick or on the root of your local HDD. Then when you reboot everything will get saved to that file and you can encrypt it or do what you like with it :D

Code:
dd if=/dev/zero of=/WHATEVER/YOU/LIKE/home-rw bs=1M count=SIZE
mkfs.ext4 /WHATEVER/YOU/LIKE/home-rw

SIZE = 512 1024 2056 depending on how big you want the partition. Once you have that file you can drop it onto the root of a accessible HDD and boot your live media.

then on ubuntu I think its F6 and add persistent to the end of your boot command and hit enter.

Or if you like you can download on of my persistence files and extract to the root of your chosen media. For ubuntu I think you have to rename live-rw to casper-rw or home-rw just for a persistent home directory.

http://linuxcoin.co.uk/downloads/persistence/


Title: Re: Live CD experts
Post by: david4dev on July 08, 2011, 02:38:35 PM
how do i adjust the swap memory?

Normally, there is a program called 'gparted' (probably in System->Administration->Gparted or System->Adminitration->Partition Manager) on the live CD that you can use to modify partitions. If you already have a swap partition, you can use gparted to resize it. If you don't, you will need to shrink one of your existing partitions and create a swap drive in the newly created empty space.

There is a detailed gparted tutorial here (http://www.dedoimedo.com/computers/gparted.html) which should teach you how to do most common operations.

As others have said, you may be better off making a persistent USB (http://lmddgtfy.com/?q=ubuntu+persistent+usb).


Title: Re: Live CD experts
Post by: cypherdoc on July 08, 2011, 03:14:06 PM
how do i adjust the swap memory?

Normally, there is a program called 'gparted' (probably in System->Administration->Gparted or System->Adminitration->Partition Manager) on the live CD that you can use to modify partitions. If you already have a swap partition, you can use gparted to resize it. If you don't, you will need to shrink one of your existing partitions and create a swap drive in the newly created empty space.

There is a detailed gparted tutorial here (http://www.dedoimedo.com/computers/gparted.html) which should teach you how to do most common operations.

As others have said, you may be better off making a persistent USB (http://lmddgtfy.com/?q=ubuntu+persistent+usb).

i'm going thru your references right now; wow, these are good.  thanks.


Title: Re: Live CD experts
Post by: cypherdoc on July 08, 2011, 10:49:44 PM
ok, so i would like to increase the amount of virtual memory dedicated to the Live CD session so i don't get those "memory low" warnings near the end of the blockchain download.

i'm assuming this has nothing to do with partitioning and gparted.

in System Monitor, System tab i show in Hardware 2GB memory.   i assume this is what is maxing out?  this doesn't make sense to me as i thought the client and blockchain wouldn't take up near this amt of space along with Ubuntu. 

is there a way to adjust this higher?



Title: Re: Live CD experts
Post by: cypherdoc on July 09, 2011, 12:13:59 AM
i have more info regarding the "low memory" warning while downloading block chain in live cd:

around block 128K i get the first of a few low memory warning boxes.  i clicked Examine for details and Disk Usage Analyzer popped up.

1.  the first folder listed is  "/" and is 100% used, size 5.1GB, 20 items
2.  the second sub folder listed is "rofs" and is 34.1% used, 1.7 GB, 18 items.  and it goes down the table with the other sub folders plus this one totalling 100%.
3.  System Monitor shows a Swap of 0 bytes and Memory is 470 MiB (23.5%) of 2.0 GiB.
4.  at the top of Disk Usage Analyzer i see "Total filesystem capacity: 1.3GB (used: 1.3GB available: 0 bytes)"

so "/" is the root folder correct?  

how can i increase this space to get rid of the memory warnings in a live cd session or is this not possible?



Title: Re: Live CD experts
Post by: drgr33n on July 09, 2011, 03:26:32 PM
like I said there are several ways but I would look into persistence.


Title: Re: Live CD experts
Post by: cypherdoc on July 09, 2011, 04:51:47 PM
like I said there are several ways but I would look into persistence.

i use Ironkeys.  at one time i stored the entire data directory with wallet.dat on the Ironkey while storing client on laptop.  updating the block chain was painfully slow so i dumped that idea. 

using persistence, is this any different?
wouldn't Linuxcoin also run slowly if stored on Ironkey?