Making Copy Of USB Puppy (Solved)

Booting, installing, newbie
Message
Author
linuxwannabe
Posts: 94
Joined: Sat 02 May 2015, 19:52
Contact:

Making Copy Of USB Puppy (Solved)

#1 Post by linuxwannabe »

I have been running Slacko 5.7 off a usb pen drive for a couple of years now, how would I go about making a copy just in case the pen drive wears out? It's not as easy as just copying the files to the new pen drive, is it?
Last edited by linuxwannabe on Sun 23 Dec 2018, 18:07, edited 1 time in total.

User avatar
nosystemdthanks
Posts: 703
Joined: Thu 03 May 2018, 16:13
Contact:

Re: Making Copy Of USB Puppy

#2 Post by nosystemdthanks »

linuxwannabe wrote:It's not as easy as just copying the files to the new pen drive, is it?
it could be. not exactly like that, but if you make a second slacko usb and copy your save files or other things youve added, that should work.

you could also try getting a usb that is the same size and copying it with dd.

the issue with dd though is you have to be VERY careful, because if you accidentally specify your hard drive or the source usb as the of=, youll destroy the data on that. you get one chance to get it right.

making a second usb and copying your save files is safer for beginners. dd is pretty safe if youre meticulous and never get distracted.
[color=green]The freedom to NOT run the software, to be free to avoid vendor lock-in through appropriate modularization/encapsulation and minimized dependencies; meaning any free software can be replaced with a user’s preferred alternatives.[/color]

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

Re: Making Copy Of USB Puppy

#3 Post by MochiMoppel »

linuxwannabe wrote:It's not as easy as just copying the files to the new pen drive, is it?
It is - almost. Use Gparted to set the boot flag on the new USB stick. Then simply copy files from your old to the new stick. It should boot.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: Making Copy Of USB Puppy

#4 Post by rcrsn51 »

MochiMoppel wrote:Then simply copy files from your old to the new stick. It should boot.
Not until you install a bootloader on the new stick.

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

Re: Making Copy Of USB Puppy

#5 Post by MochiMoppel »

rcrsn51 wrote:Not until you install a bootloader on the new stick.
I assumed that the bootloader (namely the files grldr and menu.lst when using Grub4Dos ) is part of "files". IIRC copying them over to the new stick is all there is to do.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post by rcrsn51 »

You also need to write a bootloader onto the MBR of the drive to make it bootable.

Grub4Dos Bootloader Config does this. Or by installing syslinux.

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#7 Post by MochiMoppel »

You are right. Haven't done this for a long time :oops:
I now remember that I used grub4dosconfig for virtually all of my sticks. From then on it was a copy job.

linuxwannabe
Posts: 94
Joined: Sat 02 May 2015, 19:52
Contact:

#8 Post by linuxwannabe »

I guess it is not easy because I don't understand any of what you guys said.
Where would I get the bootloader from, how do I install it? Can anyone give me step by step instructions or point me to a tutorial?

What is dd?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#9 Post by rcrsn51 »

When you originally set up your Slacko pen drive, you would have used a procedure that installed a bootloader, like running Grub4Dos Bootloader Config from the System menu.

How did you do it then?

linuxwannabe
Posts: 94
Joined: Sat 02 May 2015, 19:52
Contact:

#10 Post by linuxwannabe »

I don't remember, it was several years ago. I know I came on the forum to ask for instructions. I'll have to do a search to see if I can find that thread.

mostly_lurking
Posts: 328
Joined: Wed 25 Jun 2014, 20:31

#11 Post by mostly_lurking »

linuxwannabe wrote:It's not as easy as just copying the files to the new pen drive, is it?
linuxwannabe wrote:Can anyone give me step by step instructions or point me to a tutorial?
I haven't tested it, but the steps have been mentioned in the above posts already:

1. Copy the files to the new pen drive.

2. Use GParted to set the boot flag on the pen drive. (In GParted, right-click on the USB drive's partition that contains the Puppy files and go to "Manage Flags".)

3. Run the Grub4Dos bootloader configuration program and select the pen drive to install the bootloader to its MBR. (You probably don't need to change most of the program's options, but you might want to check the "search within only this device" one, so that the boot menu will only include the Puppy install on the USB drive, and not any others that are currently present on your system.)

Both GParted and Grub4Dos config can be found in Puppy's "System" menu.

linuxwannabe
Posts: 94
Joined: Sat 02 May 2015, 19:52
Contact:

#12 Post by linuxwannabe »

I found the thread and I used "puppy universal installer to make a puppy usb from a cd, but that is not what I want to do this time. I just want an extra bootable puppy usb in case my current puppy usb fails.

If I can get step by step instructions I think I can manage to make it.
So do I first copy all the files that are on the bootable pen drive to new pen drive and then set the boot flag?

ITSMERSH

#13 Post by ITSMERSH »

Just follow instructions given by mostly_lurking and you'll have success!

Just do it!

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#14 Post by tallboy »

If the pen drive is formatted with ext2/3, there is no need for Grub4dos, just set the boot flag and copy the files.
True freedom is a live Puppy on a multisession CD/DVD.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#15 Post by Mike Walsh »

tallboy wrote:If the pen drive is formatted with ext2/3, there is no need for Grub4dos, just set the boot flag and copy the files.
Mm. That kind of assumes that the original syslinux/isolinux bootloader is still there, doesn't it? When I perform a frugal to hard-drive (my usual), or a frugal to a pen-drive, after running Grub4DOS, those are the first two files I tend to remove.....

------------------------

@ Bill:-

I know I tend to always use Grub4DOS, because I prefer to use it, but.....isn't that what the original syslinux/isolinux files are there for? They are the default bootloaders as supplied (or so I always understood). I've a feeling tallboy's right on this one.


Mike. :wink:

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post by rcrsn51 »

isn't that what the original syslinux/isolinux files are there for? They are the default bootloaders as supplied
What are you claiming? That a new flash drive from the store already has a Linux bootloader installed?

I will leave this for you to check yourself.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#17 Post by Mike Walsh »

@ Bill:-

Okay; I've broken my own rule, there. Not very well explained.

What I should have said was that, to my knowledge, the syslinux/isolinux files as supplied in every Puppy ISO that I've ever used are the default bootloaders for a frugal Puppy USB install.

My first couple of Pups, 4-5 years back, simply installed to a stick via the Universal Installer. I set the machine to boot from USB in the BIOS settings, and it fired straight up. To the best of my knowledge, the installer doesn't run Grub4DOS (though I could very well be wrong here); instead, the syslinux or isolinux bootloaders are used as supplied. Isolinux I believe is the bootloader for an optical disc with certain read-only properties; syslinux, I think, works for a USB stick?

I'm no expert on this stuff, and am more than happy to be corrected/instructed.


Mike. :wink:

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#18 Post by rcrsn51 »

Mike Walsh wrote:What I should have said was that, to my knowledge, the syslinux/isolinux files as supplied in every Puppy ISO that I've ever used
That's true, because ISOs need to be bootable if you are going to burn them to disc. But they also contain code in their "boot sector" that initiates the boot process. Your BIOS loads and executes this code when you power up.

This is equally true for hard drives and USB devices. Setting the Boot Flag does NOT make the device bootable. It simply identifies the device to the BIOS as being potentially bootable.
My first couple of Pups, 4-5 years back, simply installed to a stick via the Universal Installer.
And what do you think that the Universal Installer does? Just copy some files onto the target device?

If you ask, it will also write boot code onto the device's MBR/PBS.

That's the crucial point. In order for a USB device to be bootable, it must have been made bootable by you at some point in its past. If not, just copying some files onto it won't get you bootability.

mostly_lurking
Posts: 328
Joined: Wed 25 Jun 2014, 20:31

#19 Post by mostly_lurking »

@ tallboy, Mike Walsh:

You might have been thinking of the "Superfloppy" install mode, which formats the whole device with no MBR, and which does apparently not require a separate bootloader install when using an ext3 filesystem on a flash drive. It installs a bootloader called "extlinux" (is that yet another variant of syslinux?).

I took the screenshot below when I tried this kind of install in a virtual machine. I used a hard disk image rather than a USB drive, though. I told the Universal Installer it was an internal flash drive - with any hard disk options it would just point me towards using Grub4Dos. (It didn't work; GParted tried to access the non-existing "sda1" and complained about a "bad magic number in super block", and I was unable to set the boot flag.)

EDIT: I tried it with a normal, non-superfloppy install (again declaring the hard disk to be a flash drive), and also got the extlinux option there, but I couldn't get it to boot, despite there seemingly being no formatting errors on the drive this time.
Mike Walsh wrote:What I should have said was that, to my knowledge, the syslinux/isolinux files as supplied in every Puppy ISO that I've ever used are the default bootloaders for a frugal Puppy USB install.
They are part of the CD's bootloader. In addition, the CD also needs some kind of boot sector or whatever (I don't know the details) that points the computer towards that bootloader. If you take all files from your Puppy ISO and stuff them into a new ISO without telling mkisofs to include this kind of data, your new CD image won't be bootable.
Attachments
superfloppy.png
(8.72 KiB) Downloaded 345 times
Last edited by mostly_lurking on Tue 11 Dec 2018, 19:57, edited 1 time in total.

linuxwannabe
Posts: 94
Joined: Sat 02 May 2015, 19:52
Contact:

#20 Post by linuxwannabe »

So now I'm more confused than ever and don't know what steps to take to make a second copy of my puppy usb stick. Is the MBR something that I have to make on the pen drive?

Post Reply