Saving the OS and files to a new flash drive

Booting, installing, newbie
Post Reply
Message
Author
Electrojim
Posts: 32
Joined: Wed 06 Aug 2014, 02:49

Saving the OS and files to a new flash drive

#1 Post by Electrojim »

I've been running Lucid Puppy on an HP Mini directly from a flash drive; that is, no OS or files saved to the Mini's hard drive. I want to change to a more convenient, physically smaller flash drive and wonder how I go about that. I tried copying all the files from the old flash to the new one (under Windows, actually), but the Mini didn't recognize it. I also tried taking the old flash drive and saving it as an ISO, then transferring the ISO image to the new one, but probably messed that up too. Is there a simple procedure to do this? Thanks!
User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#2 Post by Mike Walsh »

@ ElectroJim:-

Mm. Well, for most OSes, this involves backup programs, or 'cloning', or any number of long, complex procedures. Thankfully, for Puppy, this couldn't be simpler.

With Puppy, it's literally a copy/paste procedure. Assuming you have a second USB port, plug your new USB drive in while running Puppy. Use gParted to format the new drive to ext3 (preferably) & don't forget to add a 'swap' partition, then mount the drive so its window is showing.

Open up the existing drive's /mnt/home (I think that's right, it's ages since I've used a flash drive; mine are all on the hard drives), highlight everything, drag across to the new drive's window, drop, and click on the 'Copy' option. I've done this so many times the procedure's almost automatic by now.....but this will definitely do what you want.

There are Puppy tools to do this in the Utility section of the Menu; if you want to try one of these instead, I believe that Menu->Pudd copy drive/partition is the one you want. I think it uses the dreaded 'dd' command, so just be extra careful to get everything correct before hitting 'OK'.

Hope that helps.


Mike. :wink:
User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#3 Post by nic007 »

Do the copying when running a linux system. Windows could mess up some file names. If you are using a new flashdrive to boot from, you need to make it bootable first.
User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#4 Post by Burn_IT »

If you are copying under Windows, you MUST turn the annoying default of using CAPITALS in the file names off. Windows treats filenames with different case letters as all the same whereas Linux treats them as different entities. This is a hangover from the very old tele-type machines that had limited mechanical characters available.
"Just think of it as leaving early to avoid the rush" - T Pratchett
foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#5 Post by foxpup »

nic007 wrote:If you are using a new flashdrive to boot from, you need to make it bootable first.
And possibly a little more: If it is a legacy boot, you will have to fill the mbr.
You can do that by runnig grub4dos install and let it install mbr on the flash.
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#6 Post by bigpup »

The format of the USB drive can be an issue.
Some computers will only recognize a fat32 format as a boot-able USB drive.

Very important, when using Gparted, you make sure the partition is flagged AS BOOT!

+1
Do any copy and paste from a running Puppy.
NOT WINDOWS :evil: :twisted: :!:
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)
User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#7 Post by RetroTechGuy »

nic007 wrote:Do the copying when running a linux system. Windows could mess up some file names.
...And doesn't understand symbolic links... ;-)

It's useful to make a duplicate copy of your running savefile anyway. Then you can load/run the backup copy, and use it to copy your main savefile copy.

If you copy a mounted savefile, it will corrupt the file...slightly. My observation is that booting with "pfix=fsck" will repair it before loading (I set this as my default boot parameter, and check the file on every boot). But better to copy it in a clean manner (unmounted).
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#8 Post by Burn_IT »

..And doesn't understand symbolic links
Yes it does. It just calls them a different name.
"Just think of it as leaving early to avoid the rush" - T Pratchett
Electrojim
Posts: 32
Joined: Wed 06 Aug 2014, 02:49

#9 Post by Electrojim »

Wow, guys, thanks very much! That's a lot of information, especially for someone who is not familiar at all with Linux operation. I think I can do some 'nondestructive testing' and give this a try without corrupting my existing bootable flash drive; I'll post back with tales of my success (or of woe!). Thanks again, all!
User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#10 Post by Mike Walsh »

RetroTechGuy wrote:If you copy a mounted savefile, it will corrupt the file...slightly. My observation is that booting with "pfix=fsck" will repair it before loading (I set this as my default boot parameter, and check the file on every boot). But better to copy it in a clean manner (unmounted).
^^^ +1!!

I intended to mention this earlier. Yes, it increases the time it takes to boot.....but it's worth it to make sure the file-system structure is still OK.

IMHO, this ought to be default behaviour whenever a save-file is created for the first time. Though that's simply a personal view-point.


Mike. :wink:
User avatar
6502coder
Posts: 677
Joined: Mon 23 Mar 2009, 18:07
Location: Western United States

#11 Post by 6502coder »

More often than not, when I try to get "smart" and take a shortcut, I end up wasting my time. If it were me, I would have simply done a fresh install of Lupu onto the new flash drive using the Puppy Universal Installer, and then copied over the savefile from the original flash drive, plus any stuff that might be outside the savefile such as stuff in /mnt/home.
User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#12 Post by RetroTechGuy »

Mike Walsh wrote:
RetroTechGuy wrote:If you copy a mounted savefile, it will corrupt the file...slightly. My observation is that booting with "pfix=fsck" will repair it before loading (I set this as my default boot parameter, and check the file on every boot). But better to copy it in a clean manner (unmounted).
^^^ +1!!

I intended to mention this earlier. Yes, it increases the time it takes to boot.....but it's worth it to make sure the file-system structure is still OK.

IMHO, this ought to be default behaviour whenever a save-file is created for the first time. Though that's simply a personal view-point.


Mike. :wink:
That's my opinion also... The default when booting from a CD should already have that (suppose you did, as I did when I first played with Puppy, booting a CD with a save file on a flash drive -- not installed, just there).

Also when you install, it should do that automagically.

The people who don't want that probably have the expertise to go in and remove that command -- newbies will be protected without understanding (and will have to perform a deliberate act to avoid that protection)...
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]
Post Reply