WANT TO RUN YOUR CANNABISCOIN USB ON A LARGER FLASH DRIVE?
HERE'S HOW:
So, you'd like to have your CannabisCoin wallet on a USB like the ready-to-download one
here but, well, you'd really like something larger than 8Gb so you can install your electrum bitcoin wallet and perhaps a couple of other coins you've had your eye on?
No problem! The ready-to-use CannabisCoin USB flash drive image was made to be extensible with a minimum of fuss. Just use a larger USB size when you follow the tutorial linked above and you're all set to follow this tutorial to increase the drive space available for data storage, regardless of what you want to use it for.
Before you do anything - back up your wallet.dat file if you have one in use. The only reason you do not back up your wallet.dat is if you have not yet created one.
Alright, you want to know how to grow that provided 8Gb Ubuntu 12.04 system to utilize a larger key drive. Here we go, once again I'll try to do this pictorially for the benefit of those whose first language is other than English:
First things first, you need the tools for the job. Since we are using Ubuntu to host our CannabisCoin wallet let's work with that (besides, the tools are free
).
In fact, we can use a pair of USB flash drives with the CannabisCoin image already copied onto them so go ahead and boot up from one of the USB images.
From the Ubuntu software center just type gparted into the search field:
Click on "install":
To install software you must authenticate (give your permission, in other words) so go ahead and put in your password, which you have hopefully upgraded from the default password of YesWeCann and then click Authenticate.
Once it has been installed you'll find it on the task bar at left but you do not need it just yet.
Go ahead and plug in the drive we are to expand. It will be auto-mounted by Ubuntu and a file manager window will open - you can close it by clicking the button in the top-left of the window because we do not need it.
Because gparted exists to alter file systems and partitions it needs your permission even to run, hence we have another authentication window when you click the gparted icon. Go ahead, do that and authenticate now:
By default gparted will display the drive you are working from. Take note of the drive indicated, in this case one of my virtual drives. Click there and select the drive to modify.:
Pictured here I have mounted a 16Gb flash drive (yes, it does say 14.9Gb but that is because device manufacturers generally cite the volume in metric bytes while Ubuntu works in the binary value, hence 1024x1024x1024 or 1,073,741,824 bytes, apart from that Ubuntu does not count system reserved areas, etc., just go with it):
Ubuntu is very helpful and does a lot for us without being asked, including auto-mounting partitions ready for use. See the little key symbols in the image below? They indicate that the main partition - in fact the only mountable primary partition, which hosts the logical partition holding our filesystem is mounted already, which this time we do not want.
Right-click (or control-click, I think it is if you only have one mouse button) the extended partition and select "unmount". The key symbols will disappear and we are just about ready to to expand first the primary partition and then the logical partition to occupy the previously unallocated space.
So, right-click the extended partition again, this time selecting "Resize/Move":
This will open our partition editing dialogue:
Click and hold the right-most triangle and drag it all the way to the right, then click "Resize/Move":
and do the same with the logical partition it hosts (/dev/sdb5 in the pictures), right-click, drag, click "Resize/Move":
Note that the unallocated space has disappeared once we have completed this and we are ready to actually perform the operations listed as "pending". Do this by clicking the check mark (or tick, depending on where you are from) in the action menu icons:
GParted is going to ask if we
really want to do this, just click "Apply" to proceed:
GParted will be busy for a few minutes doing as we asked, just let it do its thing:
Hopefully everything went well and you will be told "All operations successfully completed":
If you click on the details tab you will see the primary partition was grown to the limit of available space and the logical partition - where our files "live" has been grown to occupy the larger primary (or physical) partition:
Once you close that dialogue you will see we now have plenty of room for our filesystem to grow:
Your flash drive is represented by this icon:
Right-click and select "Eject" to remove your now larger USB drive, ready for testing:
On first boot when you try to use the altered drive the system may complain about the /tmp directory, just wait for a moment or two while the system checks out its new accommodation and it should start normally. Rummage around a little and satisfy yourself that things are working as they should before you repeat the process with your other flash drive(s).
Another word of warning - cann1204.dd was built with a simplified partition layout, just a tiny swap and one single working partition. Other supplied images, wherever you got them, may not be so expansion-friendly, so do this with caution.
Remember, always, ALWAYS keep multiple wallet.dat backups - it's the file that holds the keys to your coins. Treat it carefully and keep it secure.
Hopefully the above has been sufficient to help you expand your CannabisCoin Ubuntu drive for whatever purpose suits you.
Anyone having trouble can PM me here or email me at
[email protected].
In the meantime good luck everyone, have fun and share a smile with someone new today.