Page 1 of 1

error at booting from sd card reader

Posted: Sat Jul 06, 2024 6:54 pm
by deepforest

all worked good,
save session to local hdd, sdd3,
at next reboot see error at moment before puppy copy sfs to ram
https://i.ibb.co/PZCG5WB/IMG-20240706-214738-198.jpg
reboot again, all working...
again error after reboot...
reboot, normal boot...
again error after reboot...
reboot, normal boot...
...why it happens?


Re: error at booting from sd card reader

Posted: Sat Jul 06, 2024 7:33 pm
by williwaw

are you using an USB connected external cardreader?


Re: error at booting from sd card reader

Posted: Sun Jul 07, 2024 1:00 pm
by deepforest

yes
pc>usb hub>sd card reader


Re: error at booting from sd card reader

Posted: Sun Jul 07, 2024 3:56 pm
by PipzDex

Hi @deepforest

share your menu.lst so we can help you...

I use the same type of installation
sdcard formatted to ext4 with usb adapter using grub4dos

This is mine, I hope it serves as an example for you.

title Puppy fossapup64 9.6 (sdc1/F96-CE_4)
find --set-root --ignore-floppies --ignore-cd /F96-CE_4/initrd.gz
kernel /F96-CE_4/vmlinuz psubdir=/F96-CE_4 pmedia=usbhd pfix=nocopy
initrd /F96-CE_4/initrd.gz

maybe this can help

Cheers!


Re: error at booting from sd card reader

Posted: Tue Jul 09, 2024 3:55 pm
by deepforest

Code: Select all

#
# menu.lst
#

#color NORMAL            HIGHLIGHT       HELPTEXT       HEADING
#       f/b               f/b              f/b           f/b
color light-gray/black yellow/red cyan/black light-blue/black

timeout 10
default 0

# 0.4.6a
graphicsmode -1 800 600
splashimage /boot/splash.jpg

title BookwormPup64 10.0.6
  kernel /vmlinuz    pmedia=cd pfix=fsck,fsckp
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title BookwormPup64 10.0.6 - Copy SFS files to RAM
  kernel /vmlinuz    pmedia=cd pfix=fsck,fsckp,copy
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title BookwormPup64 10.0.6 - Don't copy SFS files to RAM
  kernel /vmlinuz    pmedia=cd pfix=fsck,fsckp,nocopy
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title BookwormPup64 10.0.6 - Force xorgwizard (xorgwizard)
  kernel /vmlinuz    pmedia=cd pfix=fsck,fsckp,xorgwizard
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title BookwormPup64 10.0.6 - No X. Try 'xorgwizard' after bootup
  kernel /vmlinuz    pmedia=cd pfix=fsck,fsckp,nox
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title BookwormPup64 10.0.6 - No Kernel Mode Setting
  kernel /vmlinuz    pmedia=cd nomodeset pfix=fsck,fsckp
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title BookwormPup64 10.0.6 - Safe mode, no X
  kernel /vmlinuz    pmedia=cd pfix=fsck,fsckp,ram,nox
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title BookwormPup64 10.0.6 - RAM only - no pupsave
  kernel /vmlinuz    pmedia=cd pfix=fsck,fsckp,ram
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title BookwormPup64 10.0.6 - Ram Disk Shell
  kernel /vmlinuz    pmedia=cd pfix=fsck,fsckp,rdsh
  errorcheck off
  initrd /initrd.gz
  initrd /ucode.cpio /initrd.gz

title
  root

title Help - Boot Params
  configfile /boot/grub/menu_phelp.lst

title
  root
  
# Boot from Partition Boot Sector

title Boot first hard drive (hd0,0)
  root (hd0,0)
  chainloader +1 || chainloader /grldr || chainloader /bootmngr

title
  root

# additionals

title Grub4Dos commandline (for experts only)
  commandline

title Reboot computer
  reboot

title Halt computer
  halt

Re: error at booting from sd card reader

Posted: Tue Jul 09, 2024 9:38 pm
by bigpup

Change in the entry the pmedia=cd to pmedia=usbflash

See if that helps?


Re: error at booting from sd card reader

Posted: Tue Jul 09, 2024 9:56 pm
by mikewalsh

@deepforest :-

Yup, I concur with my colleague. Either pmedia=usbflash OR pmedia=usbhd (as given by PipzDex, above) should work. These will tell the bootloader exactly what type of install to look for.....and crucially with USB, it allows those extra few seconds to get things detected.

I'm beginning to think myself that the pmedia=cd statement is perhaps getting long in the tooth, and in need of finally being retired.......especially given that not many machines come with an optical drive any more. For most Linux users, USB is now the preferred interface for either trying-out OR installing from/to. Either way, Puppy - to the best of my knowledge - remains the only distro I know of that, uniquely, can still 'save' a session back to the very same CD/DVD that it was loaded from.......provided the disc was burnt (and left) in the 'open' condition.

Mike. ;)


Re: error at booting from sd card reader

Posted: Tue Jul 09, 2024 11:15 pm
by deepforest

pmedia=usbflash, working for sd reader but booting to default session with no my saved session restoration,
i am now also make frugal installation at hdd, puppy
pmedia=cd, is working and last saved sessions restored, for frugal,

also every time if i rebooting from sd reader session to frugal hdd session i have error, but afeter reboot all booting normally
https://i.ibb.co/VSZJtbh/IMG-20240709-223249-127.jpg


Re: error at booting from sd card reader

Posted: Wed Jul 10, 2024 2:24 am
by MochiMoppel
mikewalsh wrote: Tue Jul 09, 2024 9:56 pm

Yup, I concur with my colleague. Either pmedia=usbflash OR pmedia=usbhd (as given by PipzDex, above) should work.

only if the settings in @deepforest 's menu.lst are correct, which most likely they are not (see the listing he posted).

The reason why pmedia=cd works better for him lies in the questionable "feature" of this parameter to scan all HD partitions for a suitable savefile or even main sfs. If found Puppy would load them, giving them preference, essentially ignoring files that exist on the boot device. It assumes that the user appreciates the much faster loading time compared to loading from a slow CD. In @deepforest's case this "feature" seems to work as a crude error correction by ignoring insuffienct grub4dos settings


Re: error at booting from sd card reader

Posted: Wed Jul 10, 2024 1:57 pm
by mikewalsh

@MochiMoppel :-

Mochi, is there actually a list of 'definitions', tucked-away somewhere, for all these boot parameters? And if so, where would I find it?

Cheers.

Mike. ;)


Re: error at booting from sd card reader

Posted: Wed Jul 10, 2024 2:51 pm
by dimkr

pmedia=cd means "search all partitions", while pmedia=usbwhatever means "only search USB devices". The former is a superset of the latter, but the latter also activates PUPMODE 13.


Re: error at booting from sd card reader

Posted: Wed Jul 10, 2024 6:17 pm
by peebee
mikewalsh wrote: Wed Jul 10, 2024 1:57 pm

@MochiMoppel :-

Mochi, is there actually a list of 'definitions', tucked-away somewhere, for all these boot parameters? And if so, where would I find it?

Cheers.

Mike. ;)

viewtopic.php?t=5484


Re: error at booting from sd card reader

Posted: Wed Jul 10, 2024 9:00 pm
by bigpup

pmedia=usbflash, working for sd reader but booting to default session with no my saved session restoration,
save session to local hdd, sdd3

Copy this save to the SD card install.
Same location as the Puppy SFS files.
Have the same save at both locations.

Then the booting with the SD card, should find and use it.

The pmedia=usbflash is telling the boot process to only look on the USB device for the files.

pmedia=cd for booting from a USB does not work.
Because it is telling the boot process that the Puppy OS files should be on a CD/DVD and not on some other external device.
But it does tell it to look on other internal drive devices, for the save. Which also lets it see the Puppy OS stuff, on internal drives, during the search.
Booting from a CD/DVD, is most likely going to have to put the save, on some other drive.

Booting from USB and looking for the save on another device, is getting into the very,very newest versions of Puppy.
But it is still in testing, to make sure it will always work.

Best thing to do, is always have the save file/folder on the same drive, as the Puppy install.
At the same location, on the drive, as the Puppy OS SFS files.


Re: error at booting from sd card reader

Posted: Thu Jul 11, 2024 12:57 am
by bigpup

also every time if i rebooting from sd reader session to frugal hdd session i have error, but afeter reboot all booting normally

First you are assuming all the hardware in this computer is working 100% perfect all the time.

Rebooting does not totally make sure everything in RAM is totally removed.
Assuming it is, may or may not be true all the time, or some of the time.

So, the best way to change to a different operating system, is to do a total OS shutdown and power off.

Wait one minute.
(totally makes sure nothing is still in RAM or partially still in it)

Then do a power on boot up, of some other operating system.

Plus a complete power on boot up, forces the computers bios to do a complete new, power up of the hardware.

Yes, I have seen this work as fix for strange issues, if all I did was just reboot into something else, without first doing a power off, wait 1 minute, and power on boot up.


Re: error at booting from sd card reader

Posted: Thu Jul 11, 2024 1:50 am
by mikewalsh
peebee wrote: Wed Jul 10, 2024 6:17 pm
mikewalsh wrote: Wed Jul 10, 2024 1:57 pm

@MochiMoppel :-

Mochi, is there actually a list of 'definitions', tucked-away somewhere, for all these boot parameters? And if so, where would I find it?

Cheers.

Mike. ;)

viewtopic.php?t=5484

Thanks, Peter. I had vague memories of something in the Wikka, years ago, but this is even more comprehensive that what I remembered... And it shows I don't read everything that gets posted here; even old dogs CAN learn new tricks!

Cheers.

Mike. :thumbup: