Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Dec 2014, 08:27
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to back up a USB install?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
wibble


Joined: 10 Jul 2013
Posts: 77

PostPosted: Sat 13 Jul 2013, 12:00    Post subject:  How to back up a USB install?
Subject description: Is it as simple as copying the drive's contents to a HD?
 

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 Sun 14 Jul 2013, 23:43; edited 1 time in total
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Sat 13 Jul 2013, 14:21    Post subject:  

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.
Back to top
View user's profile Send private message 
wibble


Joined: 10 Jul 2013
Posts: 77

PostPosted: Sat 13 Jul 2013, 15:11    Post subject:  

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:

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.

Embarassed
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Sun 14 Jul 2013, 14:21    Post subject:  

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...
Back to top
View user's profile Send private message 
wibble


Joined: 10 Jul 2013
Posts: 77

PostPosted: Sun 14 Jul 2013, 18:24    Post subject:  

Hi,

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

is there a terminal command i can type?
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11180
Location: Arizona USA

PostPosted: Sun 14 Jul 2013, 19:30    Post subject:  

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.
Back to top
View user's profile Send private message 
wibble


Joined: 10 Jul 2013
Posts: 77

PostPosted: Sun 14 Jul 2013, 20:28    Post subject:  

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.
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Sun 14 Jul 2013, 23:56    Post subject:  

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.
.
Back to top
View user's profile Send private message 
wibble


Joined: 10 Jul 2013
Posts: 77

PostPosted: Mon 15 Jul 2013, 01:05    Post subject:  

Thanks, the boot manager is syslinux.

I formated the drive to fat32.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3551
Location: West Lothian, Scotland, UK

PostPosted: Mon 15 Jul 2013, 01:16    Post subject:  

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.
00.jpg
 Description   
 Filesize   7.85 KB
 Viewed   247 Time(s)

00.jpg

Back to top
View user's profile Send private message 
wibble


Joined: 10 Jul 2013
Posts: 77

PostPosted: Tue 16 Jul 2013, 10:32    Post subject:  

this is my syslinux.cfg file

Code:

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:

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.
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Tue 16 Jul 2013, 20:29    Post subject:  

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:
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:
label precise-5.6.1
kernel /precise-5.6.1/vmlinuz
append initrd=/precise-5.6.1/initrd.gz pmedia=usb

.
Back to top
View user's profile Send private message 
wibble


Joined: 10 Jul 2013
Posts: 77

PostPosted: Wed 17 Jul 2013, 02:17    Post subject:  

Cheers for that,

You guys have been great, very friendly community.

Will give it a whirl later today.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0810s ][ Queries: 13 (0.0061s) ][ GZIP on ]