LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you transfer linux already on a usb to a second usb (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-transfer-linux-already-on-a-usb-to-a-second-usb-826602/)

jorbaud 08-16-2010 04:28 PM

How do you transfer linux already on a usb to a second usb
 
I have puppy linux on a 512mb usb flash drive. I would like to put all of it onto a different usb flash drive with more memory. I used windows vista and copied all of the files from my first usb to my second but when I tried to boot it did not work.
Thank You in advance.

linus72 08-16-2010 04:29 PM

you need to install syslinux or whatever to the second usb
how did you install it to usb first time?

jorbaud 08-16-2010 04:32 PM

Quote:

Originally Posted by linus72 (Post 4068126)
you need to install syslinux or whatever to the second usb
how did you install it to usb first time?

I used UNbootin and put the .iso onto the usb.

linus72 08-16-2010 04:43 PM

just repeat the install on the 2nd usb using unetbootin and transfer the pup save manually
if no pupsave then just repeat the install

royce2020 08-16-2010 05:19 PM

You could use partimage. I don't know if this is in puppy, but it is in the Knoppix and DSL boot CDs, as well as GParted Live.
Partimage works a bit like Norton Ghost, making an almost exact copy of one partition as a file that can be writen back to the second.

plug the first USB stick in, and assuming your stick is sdb1, run the following command:
Code:

partimage -z1 -d -c -b -V50 -f3 save /dev/sdb1 ~/myUSB.part.gz
This will make a compressed, non-described, non-checked, image broken into 50Mb pieces called myUSB.part.gz### in your home directory.

You can now unplug the first stick (unless you booted from it).
Plug in the second, larger stick.
Assuming the new stick is /dev/sdc1, run the following:
Code:

partimage restore -b /dev/sdc1 -b ~/myUSB.part.gz000
This will write the image onto the new stick, along with the boot sector, hidden files and so on. One of the neat features is that the two partitions don't have to be the same size (like using DD or ghost would need).

If you wanted to, you can use this method for backing up any sort of storage device, too.

jorbaud 08-16-2010 05:32 PM

Quote:

Originally Posted by linus72 (Post 4068137)
just repeat the install on the 2nd usb using unetbootin and transfer the pup save manually
if no pupsave then just repeat the install

I did this and transfered my save over. I am on linux again but it still says I have the same memory left (62mb). I am running off of a 1gb instead of a 512mb now. How can I get it to realize it has more space?

linus72 08-16-2010 05:33 PM

Quote:

but it still says I have the same memory left (62mb).
what do you mean ?

you mean you want to make the pupsave bigger?

jorbaud 08-16-2010 05:35 PM

Quote:

Originally Posted by linus72 (Post 4068185)
what do you mean ?

you mean you want to make the pupsave bigger?

I do not really know, sorry. How would I make the pupsave bigger?

Kenny_Strawn 08-16-2010 05:40 PM

Even simpler:

Code:

sudo dd if=/dev/sdb of=/dev/sdc
provided that /dev/sdb is your first USB device and /dev/sdc is your second USB device.

linus72 08-16-2010 05:46 PM

jorbaud please be careful with dd
there may be an easier way Kenny

Doesnt the new puppy have the menu option at desktop to make the save bigger?

jorbaud what happens if you
boot puppy and at desktop open file manager
navigate to where the pup-save is and try to mount it?

make a folder to mount it on say "pup"
mkdir /pup
mount -o loop /path/to/pup_save /pup

replace "pup_save" with whatever the real name is

jefro 08-16-2010 10:04 PM

We'd need to know how you installed puppy to proved the best answer. There are a few ways to install puppy.


All times are GMT -5. The time now is 03:40 PM.