How to install Puppy to PC from Android phone?

Moderator: Forum moderators

Post Reply
boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

How to install Puppy to PC from Android phone?

Post by boof »

i have an andoid phone, no google account atm, a usb drive with 3 partitions, uefi puppy, win7, empty and a 2 partitioned hdd in a pc. the usb is not bootable,? the puppy was expanded and copied across from a restricted access win10 pc, no admin access, i have ethernet to pc, wifi to phone via my router. i want to install puppy into the pc. its a win7 compatible machine, i'm not sure of the bios setup.
i'm getting a grub2 error, unrecognised file system in the pc, and it goes into grub rescue. a set command does not show the usb nor its partitions. loopback command is not recognised. if i set the bios to wake on LAN, CAN I BOOT FROM INTERNET? how do I send the puppy to to achieve this. i will disconnect the nbn modem to prevent interference? please be verbose, as i definately do not know what i'm doing. i do not have access to a working unrestricted pc nor cd-rom drive. i have the puppy iso in my phone, but no data cable for it.

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: boot help pls.

Post by boof »

Here's a screenshot

Attachments
IMG_20220607_135125823~3 (2).jpg
IMG_20220607_135125823~3 (2).jpg (83.94 KiB) Viewed 1387 times
User avatar
rcrsn51
Posts: 1390
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: boot help pls.

Post by rcrsn51 »

How did you get GRUB2 installed on the PC?

Is this the only PC you have?

Do you have another working computer on which you could make a bootable flash drive?

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: boot help pls.

Post by boof »

i thought i was clear, i have only the hardware specified. the grub2 on the pc is from a prev install, now corrupted, when i had a spare machine. i need to get puppy installed. i dont know how to do it from here. i cannot root my phone without a working pc. it is difficult , i'm disabled, to get a tech to make a bootable usb with puppy. i have a small social network, none are close or tech savy, none have a pc.

Clarity
Posts: 3842
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1632 times
Been thanked: 525 times

Re: boot help pls.

Post by Clarity »

Hi @boof

2 Questions

  1. Do you have another running PC that you can use to make a recovery USB?

  2. Do you know how to enter the BIOS/UEFI on the offending PC to select the boot device?

Curious.

dogcat
Posts: 266
Joined: Fri Feb 18, 2022 11:14 pm
Has thanked: 73 times
Been thanked: 123 times

Re: boot help pls.

Post by dogcat »

You might be able to boot the Grub2 manually according to these instructions.

https://aty.sdsu.edu/bibliog/latex/debi ... escue.html

The GRUB2 Rescue Shell
Introduction
Nothing is more frustrating than making some small change to your system, and then discovering that it won't boot. This must have happened to me dozens of times over the years; and the problem is always something different and unexpected.

The most frustrating experience you can have with GRUB is to be dropped into its “Rescue shell”. You might get a cryptic error message, followed by

Entering rescue mode . . .

grub rescue>

No help; no advice on how to proceed; and even the Grub2 Manual tells you nothing useful. Yuck.
The rescue shell
The rescue shell is an exceedingly minimal, Spartan environment. It offers only a tiny subset of the regular  Grub shell's commands:

set
unset
ls
insmod

These commands offer no options, and it is impossible even to learn which ones are available. Even common commands like cat and cd are not available. At first glance, it would seem impossible to do anything useful in this limited environment.

And yet, it's actually possible to go through the booting process manually — provided that you know something about the booting process, and how Grub handles it. In fact, the operations that Grub executes automatically can be done by hand, just with the limited means provided by the rescue shell.
Understanding Disaster

Actually, the fact that you see the grub rescue> prompt is good news in disguise. It means you haven't wiped out Grub's booting system. The hardware has gone through the POST process, and loaded the primary stage of the boot loader; but the information available to that stage (supposedly, the addresses of the disk blocks that hold the next stage) was wrong. Grub is alive, but it needs a little help.

The common causes of this situation are things that changed the locations of the next pieces of Grub's boot-time subsystem. Maybe you re-formatted the filesystem that holds those files; maybe you updated a kernel, but didn't re-generate Grub's configuration files; maybe you ran update-grub with incorrect partition identifiers in the /etc/grub.d/40_custom shell script. The result was that Grub's early stages that depend on absolute block addresses couldn't find the following pieces. You can tell the part of Grub that's already working how to proceed.

With luck, the error message that precedes the rescue prompt will tell you what Grub looked for but couldn't find. Write it down, and take appropriate action after you've re-booted your box.
Diagnosing disaster
The first thing to do is to find out what Grub knows already. At the

grub rescue>

prompt, enter the command:

set

and Grub will tell you what little it knows. Again, take note of this information, as it will provide clues to what you need to do next — as well as clues to fixing the problem before the next reboot.

The main Grub variables available at this point are usually the prefix and root parameters. What Grub calls prefix is the location (in Grub's peculiar notation) of the directory that holds Grub's pieces. In normal *IX terminology, this would usually be /boot/grub. But Grub doesn't have mounted filesystems yet; it only knows about disk partitions, which it calls things like (hd0,msdos1).

So, if you have a separate boot partition, which is normally mounted on /boot, Grub will need to have prefix set to an address of the form (hd0,msdos1)/grub. On the other hand, if your /boot directory is in your root-filesystem's partition, Grub will need to have prefix=(hd0,msdos1)/boot/grub.

Similarly, what Grub calls root is NOT the partition that contains the root filesystem, but the partition that contains the kernel and initial RAM filesystem (i.e., initramfs) files. That usually means that Grub thinks root=(hd0,msdos1).
Fixing the problem

First of all, make sure Grub can see the partitions that contain these vital parts. Tell the rescue shell:

ls

and it will show you the partitions it knows about. This will be a list of things like

(hd0,msdos1) (hd0,msdos2) . . .

which mean /dev/sda1, /dev/sda2, and so on. Remember that Grub's name for the first disk is hd0; the second disk is hd1, etc. — but the partitions themselves are numbered normally, starting at 1 instead of zero.

Don't be misled by a superficial resemblance between the rescue-shell ls command and the normal ls that you use at a bash prompt. The normal command has scads of options; the rescue-shell command is a stripped-down version with no options, and a different output format. Only the names are similar.

If the rescue shell had a cat command, you could list the contents of /boot/grub/device.map to learn Grub's correspondence between disks and names; but it doesn't, so you can't. Keep a copy of the device.map file printed out beforehand, because the devices might not map out the way you expect. (For example, on my machine, Grub thinks sda is hd0, as you'd expect; but it also thinks sdb is hd2, and sdc is hd1, which is screwy.)

Then, if Grub has the wrong values for either prefix or root, you can fix its error by telling the rescue shell something like

set prefix=(hd0,msdos1)/boot/grub

or whatever the correct value is in your box.

Remember that you can verify that Grub has the correct values for these parameters with a simple

set

command. And you can double-check by telling the rescue shell to list the contents of those directories:

ls $prefix/
Proceed to boot manually
Now you need to lead Grub through its normal booting sequence. The first step is to make sure it has its normal.mod module available:

insmod normal

This module is the “guts” of Grub2: it contains the apparatus for reading configuration files, and displaying the usual Grub boot menu. The correct prefix and root parameter values are needed, if Grub is to find any modules.

Once the module is inserted, you can execute it as a new rescue-shell command:

normal

Another vital module that must be loaded is the linux.mod file:

insmod linux

Now you can set up the linux kernel's  command line:

linux /boot/vmlinuz-3.16.0-4-686-pae root=/dev/sda2 ro

or whatever is the correct name for your kernel. Note that the “root” in this  line points (in normal terms) to your root filesystem's disk partition; it is different from Grub's root parameter! You can specify the root partition here in perfectly normal terms — either by specifying --fs-uuid and the UUID of the partition, or by using a filesystem label, as in root=LABEL=ROOT (if your root filesystem is named ROOT). If you need additional command-line parameters, like video=640x480, be sure to add them here as well.

Similarly, you need to tell Grub where the initial RAMdisk filesystem is:

initrd /boot/initrd.img-3.16.0-4-686-pae

Make sure it matches the kernel version!

Now, with both the kernel and the initrd modules installed, and their arguments supplied, Grub should be able to boot. Tell the rescue shell to do so:

boot

Once the linux and normal modules are inserted, most of Grub's apparatus will be working, and the larger set of normal GrubScript commands will be accessible. Or, if you get everything messed up and want to start over, the usual <Ctrl><Alt><Delete> invocation will re-boot the system.
Back to normal
When you are back up, be sure to fix the errors that caused the booting problem. If the configuration parameters are set in the /etc/default/grub file and any special scripts (like /etc/grub.d/40_custom), you should be able to get a correct /boot/grub/grub.cfg just by executing (as root):

update-grub

and

grub-install /dev/sda

(or whatever disk is marked as the boot device in your BIOS).

Sometimes, the problem was an incorrect set of boot parameters. If you had to fish around with the rescue shell to find the right ones, be sure to print out the kernel command line that finally got you back up, and keep a hard copy of it in a safe place. You can see the current command line with

cat /proc/cmdline

If the problem was that grub looked for an incorrect disk partition when it tried to find either the kernel files or the regular root partition, you may need to edit the file /boot/grub/device.map, which contains a table of entries like

(hd0) /dev/sda
(hd2) /dev/nvme0n1

that show the correspondence between grub's names for devices and the Linux names.

Sometimes, the error that brought up the rescue shell was

error: no such device:

followed by a UUID for some partition that has disappeared — usually, due to a re-made partition. In this case, you may need to invoke

update-initramfs -u -v

to get the correct partition named in the initrd.img file.

Copyright © 2015, 2017, 2021, 2022 Andrew T. Young
Back to the . . .
booting Debian page

or the alphabetic index page

or the GF home page

or the website overview page

Μακάριοι οι καθαροί στην καρδιά * επειδή, θα δουν τον Θεό.

User avatar
bigpup
Moderator
Posts: 6999
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

Re: How to install Puppy to PC from Android phone?

Post by bigpup »

i have ethernet to pc, wifi to phone via my router. i want to install puppy into the pc. its a win7 compatible machine,

Does this PC, you want to install Puppy on, have access to the internet?

If yes.

Boot the computer using Windows operating system.
Use a browser on the computer, to download, and install the program Lick.
https://github.com/noryb009/lick
When you download the Lick exe file to the computer.
https://github.com/noryb009/lick/releas ... -win32.exe
Lick is a Windows exec program, that you run in Windows.
Navigate in the file manager, to the Lick exe file location.
Simply left mouse click on the Lick exe file, to run it.

To install a Puppy version using Lick.
Download a Puppy ISO package, to a location on the computer, you can find it.
Run Lick and tell it to install that Puppy ISO.

Lick will do an install of Puppy, usually to folder on the C-drive.
It will modify the boot loader, to give options to boot windows or the Puppy install.
When you boot the computer, a boot menu will pop up, asking you to select which one to boot.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
rcrsn51
Posts: 1390
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: How to install Puppy to PC from Android phone?

Post by rcrsn51 »

bigpup wrote: Wed Jun 08, 2022 10:04 am

Boot the computer using Windows operating system.

It's pretty clear by now that boof has neither a functioning Windows computer nor access to one.

He has a PC that can only boot to a corrupted GRUB2 setup.

He needs to get a Puppy boot CD/DVD from somewhere that would get him started again, assuming that this machine has an optical drive.

Last edited by rcrsn51 on Wed Jun 08, 2022 12:52 pm, edited 1 time in total.
User avatar
p310don
Posts: 357
Joined: Tue Dec 03, 2019 7:17 am
Location: Brisbane, Australia
Has thanked: 72 times
Been thanked: 103 times

Re: How to install Puppy to PC from Android phone?

Post by p310don »

https://www.howtoforge.com/tutorial/rep ... ub-rescue/

Might be an answer there..

I'd be looking at boot media. Why doesn't the USB boot? Is it not bootable, or a setting in BIOS that needs to be changed? First option is almost impossible to fix without another PC, second might be an easy fix.

Where do you live @boof . From some of your posts, I can glean we're in the same country. Can post a boot CD perhaps..

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: How to install Puppy to PC from Android phone?

Post by boof »

i made a win7 usb, but the grub2 on the pc is domiinant, and i cant get rid of it. ive set the pc to legacy boot. is there another bootloader i could overwrite grub with pls so i can boot win7 and get lick?

nb i cant copy to my usb, it's not detected by my phone. i believe i can install iso's to usb. lilo/bcd is not avail as an iso.

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: How to install Puppy to PC from Android phone?

Post by boof »

i made bcd into an iso and installed it into a usb, but still no boot. can i connect my phone to the pc by usb and control it from there? i need to edit or remove grub2. i'm not smart enough to diy it. i'm almost out of cash to buy anything. no used ext cdroms avail.

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: How to install Puppy to PC from Android phone?

Post by boof »

i now have an external dvd/cd-rom drive and some verbatim cd's. i have adaptors for the connections. what app do i need to burn the puppy iso to cd from my phone? i presume i cant use the iso2usb app.

User avatar
bigpup
Moderator
Posts: 6999
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

Re: How to install Puppy to PC from Android phone?

Post by bigpup »

iso2usb

Well, the app info says it can make a bootable USB from a operating system ISO.
But can you hook a USB drive to the phone and access it?

I assume not booting computer bios setup gives you an option to select a USB to boot from.
May have a setting to disable/enable USB booting that also needs to be enabled.

To recover Windows boot loader on the not booting computer.

Do you have a Windows 7 installation disc?

You can use it to boot the computer and use recovery options to redo the install of Windows boot loader.
That should replace the Grub2 boot loader.

If no Windows 7 disk.

You can make a Windows system repair disk on another computer and use it.

Here is information on all of this:
https://support.microsoft.com/en-us/win ... 21161c416e

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: How to install Puppy to PC from Android phone?

Post by boof »

my hdd is an ssd. can i safely disconnect it, boot from the cd, then live reconnect it? then i can reinstall puppy?

User avatar
rcrsn51
Posts: 1390
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: How to install Puppy to PC from Android phone?

Post by rcrsn51 »

boof wrote: Fri Jun 10, 2022 12:06 pm

boot from the cd,

Are you saying that you now have a Puppy boot CD?

Is there a problem with getting to the computer's BIOS to change the boot order?

BTW, you can buy Puppy boot CDs on Ebay for a few dollars.

boof
Posts: 559
Joined: Sat Aug 15, 2020 9:17 am
Been thanked: 8 times

Re: How to install Puppy to PC from Android phone?

Post by boof »

fixed. installed slako5.6.x then upupbb32. all done. thx all.

User avatar
bigpup
Moderator
Posts: 6999
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

Re: How to install Puppy to PC from Android phone?

Post by bigpup »

So exactly what did you do?

Give us some details?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “Bionic”