How to back up a USB install?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
wibble
Posts: 76
Joined: Thu 11 Jul 2013, 03:48

How to back up a USB install?

#1 Post by wibble »

Hi,

Sorry if this has been covered before, I tried searching but couldn't find a definitive answer.

Can I just copy the entire content of the puppy (precise 5.6.1) to a directory on the HD and keep that as a backup when I test the new fatdog64?

is there a simple way I can set up a dual boot on the USB? (its a usb2 16gb drive.) at the moment precise puppy 5.6.1 is the only system on the USB.

I just don't want to make a mistake and have to reinstall everything and download all the programs again. so I want to be sure I have it right.

Cheers!

P.S

Found a copy of Linux Kernel in a Nutshell and started to work my way though the book.

My question is what version of the kernel are the various puppy distros based on? is there a list?
Last edited by wibble on Mon 15 Jul 2013, 03:43, edited 1 time in total.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2 Post by sunburnt »

Hi wibble; If you still have the Puppy ISO file you downloaded, that`s all you need.
If you want to you can copy the Puppy dir. to the HD, this will save the Save file also.

You don`t say how you`re booting Puppy, I assume with a grub, but maybe syslinux.
Both can boot multiple Puppies on HD or USB.
Copy the FatDog files to a dir. on the USB, just like Puppy-5.6.1.
Then open the boot config. file ( menu.lst for grub, or syslinux.cfg ) in Geany editor.
Copy the lines for Puppy-5.6.1 making 2 sets of them, and edit the second set.
Change all the precise5.6.1 paths to FatDog paths and change the ID line too.

This is kind of confusing I know... Post your boot config. file and I`ll modify it for you.
Also, say what you named the dir. that FatDog is in.

User avatar
wibble
Posts: 76
Joined: Thu 11 Jul 2013, 03:48

#3 Post by wibble »

thanks for the reply,

I will make a backup of the directory (to be sure i have the save file)

I still have the ISO images.

I created the usb with syslinux i guess - the program was on windows and the icon was like a flower it was called linux live usb creator 2.8.23 ..

I didnt use this program when I extracted the fatdog iso, all I did was created a folder called fatdog on the USB and extracted it there.

Precise puppy is on the root of the usb.

/
/fatdog/


thats pretty much the structure.

do I need to use the live creator program again or did I do the right thing?

Thanks.


here is the syslinux.cfg

Code: Select all

default puppy
display boot.msg
prompt 1
timeout 50

F1 boot.msg
F2 help.msg
F3 help2.msg

label puppy
kernel vmlinuz
append initrd=initrd.gz pmedia=usb
I have not created a directory for fatdog yet on the usb stick. probably will just call it fatdog.

What I would like to do is have an option to make a backup of the usb stick to the hard drive, I wonder if that is possible.

I figure that the drive would need to be mounted and then the files copied. I guess it would be pretty straightforward.

the files are all in /mnt/home/

I know it seems pretty slow but I installed precise puppy on the root of the USB.

:oops:

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#4 Post by sunburnt »

To backup the save file:
Copy the save file to the folder where you`ll save it, then compress the copy:
Then in rxvt, xterm, or roxterm do this:
cd (/path/to/copy)
gzip -9 (puppy-save-file)

To backup the whole Puppy copy: vmlinuz, initrd.gz, (puppy-sfs-file), (puppy-save-file) to a folder on the HD.

You can move the Precise Puppy install to a folder on the USB if you want to.
You must change the boot config. file so the boot manager knows where it is.

### You still haven`t said what boot manager you`re using...

User avatar
wibble
Posts: 76
Joined: Thu 11 Jul 2013, 03:48

#5 Post by wibble »

Hi,

how can i find out what boot manager I am using?

is there a terminal command i can type?

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#6 Post by Flash »

I know nothing about boot managers. I'm only butting in here to recommend that you restore from a backup at least once, to see how it works and to gain confidence that you can do it.

Ideally you would save a backup each time you shut down, and restore from that backup the next time you reboot. Then when disaster strikes, your procedure doesn't vary.

User avatar
wibble
Posts: 76
Joined: Thu 11 Jul 2013, 03:48

#7 Post by wibble »

Hi thanks for the advice,

I was planning to write some sort of simple bash script so i can just run it from the desktop before i shut down for the day.

hopefully there will not be any share/permission conflicts.

if there were a utility to ghost the usb that would be excellent, I saw there was a puppy mirror perhaps that can do it.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#8 Post by sunburnt »

I think the mirror is usually for partition backup, like backing up the USB`s whole partition.

Flash is correct, but I don`t know if backing up the Save file every shutdown is needed.
The Save file is changed with config. changes and added or removed PET packages.
That`s why I always use SFS package files, or DirApp or RoxApp packages, they don`t take up the Save file space.

So backing up the Save file every now and then is good, you can restore to close to the current setup.
USB flash drives run in ram so as to not wear them out, so they auto.-backup every shutdown.

### Boot managers:
If the flash drive has a menu.lst file in it`s root or in /boot, then the manager is grub2 or grub4dos.
If there`s a syslinux.cfg or extlinux.cfg file in the drive`s root or in /boot, then the manager is syslinux.

### Also of interest... What is the flash drive formatted to: ext2-3-4, fat, or ntfs.
.

User avatar
wibble
Posts: 76
Joined: Thu 11 Jul 2013, 03:48

#9 Post by wibble »

Thanks, the boot manager is syslinux.

I formated the drive to fat32.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#10 Post by Sylvander »

Remember...
When you restore your PupSaveHotBackup of the pupsave file...
After deleting the old copy...
And restoring the backup copy...
You will need to edit the name of the restored copy to remove the extra stuff on the end of the name, so it has the same name as had the original.

See below my screenshot of my backup [on the right], and the original [in the middle].

"X File Explorer" [Xfe] is the file explorer displaying the files shown below, and used to make the screenshot.
It has twin file panes to the right, plus a folder hierarchy pane on the left.
The twin panes can be used to "Copy to..." from one pane to the other.
Attachments
00.jpg
(7.85 KiB) Downloaded 283 times

User avatar
wibble
Posts: 76
Joined: Thu 11 Jul 2013, 03:48

#11 Post by wibble »

this is my syslinux.cfg file

Code: Select all

default puppy
display boot.msg
prompt 1
timeout 50

F1 boot.msg
F2 help.msg
F3 help2.msg

label puppy
kernel vmlinuz
append initrd=initrd.gz pmedia=usb
what I am going to change it to is this...

Code: Select all

default puppy
display boot.msg
prompt 1
timeout 50

F1 boot.msg
F2 help.msg
F3 help2.msg

label puppy
kernel vmlinuz
append initrd=initrd.gz pmedia=usb

default puppy
display /fatdog/boot.msg
prompt 1
timeout 50

F1 boot.msg
F2 help.msg
F3 help2.msg

label /fatdog/fatdog
kernel /fatdog/vmlinuz
append /fatdog/initrd=initrd.gz pmedia=usb
I am not sure if this is what you mean? sorry for being slow I don't want to mess it up.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#12 Post by sunburnt »

wibble; Only one default line is allowed, it`s what boots if a menu selection is not made.
It sets the "label" line to boot after the "timeout" seconds have passed.
And your "initrd=" line has the path in the wrong place.
The first 2 paragraphs are generic and only need to be in the file one time.
"timeout" is pretty long at 50 seconds, I use 7 seconds, plenty of time to select the menu.
"kernel" and "append" lines are the boot instructions.
Puppy has many boot options, you should look at them to become familiar with them.
# P.S. I used fatdog64 for the path folder, try to make them complete so they won`t interfere with each other.
A version number on the fatdog folder ( like the precise-5.6.1 folder below ) would be a good idea too.

Here`s the corrected file:

Code: Select all

default precise-5.6.1
display boot.msg
prompt 1
timeout 7

F1 boot.msg
F2 help.msg
F3 help2.msg


label precise-5.6.1
kernel vmlinuz
append initrd=initrd.gz pmedia=usb

label fatdog64
kernel /fatdog64/vmlinuz
append initrd=/fatdog64/initrd.gz pmedia=usb
All you need to do is move the 4 precise files into /precise-5.6.1
Then change the lines like this:

Code: Select all

label precise-5.6.1
kernel /precise-5.6.1/vmlinuz
append initrd=/precise-5.6.1/initrd.gz pmedia=usb
.

User avatar
wibble
Posts: 76
Joined: Thu 11 Jul 2013, 03:48

#13 Post by wibble »

Cheers for that,

You guys have been great, very friendly community.

Will give it a whirl later today.

Post Reply