How to fix Grub4DOS Error 13, wee 13>, due to 64-bit Ext4

How to do things, solutions, recipes, tutorials
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#21 Post by musher0 »

Hi guys.

There is also an article about it on Linux.com:
https://www.linux.com/learn/using-new-g ... ncient-mbr

@s243a:
Does that mean that you have to have two complete sets of menus for
all OS's on your box, one for grub4dos and one for grub2?

At this point, I'm thinking of creating a grub2 menu on CD and
converting to it all all my entries in grub4dos' menu.lst.

An advantage would be security: you don't have the CD with the general
grub2 menu on it, you can't access my box.

Although booting from CD is so passé, plus I feel lazy ATM!

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

jd7654
Posts: 296
Joined: Mon 06 Apr 2015, 16:10

#22 Post by jd7654 »

I like rEFInd as the master boot manager on UEFI systems. Has a nice GUI and automatically finds other Grub2 bootloaders for the menu.

I hate how each distro you install likes to take over the whole drive and the disk booting. Geez, leave my disk alone! You only get one partition. No. Make them subordinate or install their Grub2 to the Partition Boot Sector.(I know, blocklists are not standard) rEFInd can then load each of those distro Grub2 installs. Also have a Lick (Grub2 standalone) entry for Puppies, and also a Windows choice.

On old BIOS systems, I usually have Grub4DOS as the master bootloader, and chainloads to other distro Grub2 on PBR, or boot Puppy directly.

srvictor
Posts: 4
Joined: Wed 03 Jun 2020, 18:15

Boot error 15

#23 Post by srvictor »

Hello, I have a Windows 7x64 installed and I want to make a dual boot in the same disk with Puppy Linux x64 system.

My partitions are:

sda1-System Reserved;:
sda2-Windows7 Ultimate x64
sda3-Puppy x64
sda4-Fat32


My menu.lst is in sda1:

Code: Select all

# menu.lst produced by grub4dosconfig-v1.9.3
color white/blue black/cyan white/black cyan/black
#splashimage=/splash.xpm
timeout 10
default 0

# Frugal installed Puppy

title Puppy bionicpup64 8.0 (sdb1)
  kernel /vmlinuz     pmedia=usbflash pfix=fsck
  initrd /initrd.gz

# Full installed Linux

title Bionicpup64 8.0 (sda3/boot)
  kernel /boot/vmlinuz root=/dev/sda3 rw 
  initrd /boot/initrd.gz

title Bionicpup64 8.0 (sda3/boot)
  kernel /boot/vmlinuz root=/dev/sda3 rw 
  initrd /boot/initrd.gz

# Windows
# this entry searches Windows on the HDD and boot it up
title Windows\nBoot up Windows if installed

# Advanced Menu
title Advanced menu
  configfile /menu-advanced.lst
  commandline

The menu-advanced.lst is:

Code: Select all

# /menu-advanced.lst  produced by grub4dosconfig-v1.9.3

title Back to the main menu
  configfile /menu.lst
  commandline

title Puppy bionicpup64 8.0 (sdb1) Safe mode (without X)\nTry 'xorgwizard' after bootup succeed to start graphic mode.

  kernel /vmlinuz     pfix=ram,nox nosmp noapic i915.modeset=0 radeon.modeset=0 nouveau.modeset=0
  initrd /initrd.gz

title Puppy bionicpup64 8.0 (sdb1) RAM mode\nBoot up Puppy without pupsave

  kernel /vmlinuz     pfix=ram
  initrd /initrd.gz

# Multiple Windows

title Windows (sda1)
  chainloader /bootmgr

title Previous menu(sda1/menu-2020-06-04-015949.lst)
  configfile /menu-2020-06-04-015949.lst
  commandline

title Boot from sdb (G & T USB Flash Drive)
  map (hd1) (hd0)
map (hd0) (hd1)
  chainloader (hd0)+1

# additionals
title Bootup from HDD\nBootup from the master boot record of the hard disk drive
  chainloader (hd0)+1

title Grub4Dos commandline\n(for experts only)
  commandline

title Reboot computer
  reboot

title Halt computer
  halt  


And the logs are:

Code: Select all

/usr/sbin/grub4dosconfig PBS
version 1.9.3
Wed Jun  3 19:30:02 +08 2020
BINSTALLER=bootlace.com
232.9GiB
512000
52263936
52775936
3.7GiB
3890176
sda|232kB_ATA_SAMSUNG_HM251HI
sda1|(ntfs)_500MB_Reservado
sda2|(ntfs)_49.8GB_
sda3|(ext4)_50.3GB_
sdb|3kB_G_&_T_USB_Flash_Drive
sdb1|(vfat)_3.7GB_CDROM
PCPARTS:
/dev/sda1|ntfs|512000
/dev/sda2|ntfs|52263936
/dev/sda3|ext4|52775936
 /dev/sdb1|vfat|3890176

LPART:/dev/sda1|ntfs|512000
MYPUPPY=sdb1/puppy_bionicpup64_8.0.sfs
sdb1/puppy_bionicpup64_8.0.sfs,initrd.gz|puppy_bionicpup64_8.0
sda3/boot/initrd.gz,/boot/vmlinuz|bionicpup64_8.0
sda3/boot/initrd.gz,/boot/vmlinuz|bionicpup64_8.0
sda1/bootmgr|Windows
sda1/menu.lst|Puppy_bionicpup64_8.0_(sdb1)


WIN:sda1/bootmgr|Windows
Writing... /mnt/sda1/menu.lst
sdb1/puppy_bionicpup64_8.0.sfs,initrd.gz|puppy_bionicpup64_8.0
:Windows:
:Windows (sda1):
Installing grldr ...
'/usr/lib/grub4dos/grldr' -> '/mnt/sda1/grldr'
Installing bootloader on /dev/sda1(PBS)...


Filesystem type is NTFS.



Success.

/dev/sda Bootalbe: yes, yes

How can I fix this problem, because it showsin the boot at start the PC, but when I click to boot the Puppy, it doesn't load.

Thanks.

nnriyer
Posts: 4
Joined: Mon 13 Apr 2020, 12:39

Grubdos

#24 Post by nnriyer »

Please see below my menu entry for full installation. You have to change UUID details according to your hard disk partition. uuid can be retrieved from console command blkid
Cut and paste your uuid after listing blkid command as below

title Bionicpup64 8.0 (sda3/boot)
find --set-root uuid () 2531fd7a-6e6b-4841-b1da-2a815581974c
kernel /boot/vmlinuz root=UUID=2531fd7a-6e6b-4841-b1da-2a815581974c rw
# root=/dev/sda3

Please note that I am just sharing my knowledge.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

grub4dos and full install

#25 Post by foxpup »

Welcome to Puppyland, srvictor!

I second nnriyer:
Grub4dos does a bad job with full installs of Puppy.

Are you aware frugal install is recommended anyway for Puppy.

Can you boot your windows?

srvictor
Posts: 4
Joined: Wed 03 Jun 2020, 18:15

#26 Post by srvictor »

Hello nnriyer, thanks for the help. It worked.

Best regards,

srvictor
Posts: 4
Joined: Wed 03 Jun 2020, 18:15

Re: grub4dos and full install

#27 Post by srvictor »

foxpup wrote:Welcome to Puppyland, srvictor!

I second nnriyer:
Grub4dos does a bad job with full installs of Puppy.

Are you aware frugal install is recommended anyway for Puppy.

Can you boot your windows?
Regarding the full install, I don't know really why I made a full install, but I think that it was better for my niece.

The recommended is Frugal install that is a copy, I think, of a pen drive system to a folder in windows.

What do you think? Do you think is better frugal? I accomplished working with full install.

Now is missing to know where puppy system put the profile in use the save file. Can you tell me?

Thanks a lot.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#28 Post by foxpup »

I think there is only one reason to do a full install for Puppy:
when you have very little RAM,
because Puppy tries to copy to RAM.
But even then, you could do a frugal install, and add pfix=nocopy to the kernel line in the entry in menu.lst.

But now you got it working, you can let the full install be.

In case you want to try a frugal install, it is very easy
make a folder for each Puppy
it can be anywhere you want, it can be next to a full install of windows or nix or in a partition for Puppy especially
open (click) the iso of that Puppy
copy (drag) vmlinuz, initrd.gz and all .sfs from iso to folder

run grub4dos for a new menu.lst, you need not to install mbr again
(fix the entry for full install)
there should be find --set-root in the entries for frugal installs to look for the right folder
the kernel line may need psubdir=folder as well

When you shutdown a Puppy for the first time, it will offer to make a pupsave. Accept.
Next time it boots, it will look for fitting pupsave(s) and use it, or if there are more give you the choice.

tip: if you have a good basic configuration, make a copy of that pupsave (not when it is in use)
You can always fall back on it in case of calamity.

There are 2 main ways to add to your Puppy;
load .sfs files, you can unload them easily, good for big apps
or install packages through the PPM / clicking .pets/.debs/.tgz packages
The latter puts it in pupsave,
the former not, unless it is a full install in which case it becomes almost impossible to uninstall it again
Last edited by foxpup on Thu 04 Jun 2020, 13:39, edited 1 time in total.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Re: grub4dos and full install

#29 Post by mikeslr »

srvictor wrote:
,,,What do you think? Do you think is better frugal? I accomplished working with full install.

This is why you want a Frugal Install in almost all circumstances: http://murga-linux.com/puppy/viewtopic. ... 89#1023489

Now is missing to know where puppy system put the profile in use the save file. Can you tell me?

Thanks a lot.
Not sure what you mean. Frugal installs employ a 'merge file system'. In practice, your operating system is in RAM, created anew each time you boot into a Frugal Puppy. On bootup, Puppies copy into Random Access Memory files from the file-systems in storage. One of those file-systems is the SaveFile/Folder you create. That ALONE holds your settings and customizations: e.g., your screen size, which are your default applications, which SFSes load on bootup, which font your word-processor uses as its default and so on. In the 'merge file system' your SaveFile/Folder has priority: if there's a conflict, the files and/or instructions you placed in your SaveFile/Folder are the only instructions which exist in RAM and therefore on your current operating system..

A merge file-system is sort-of-like layering in a graphics program. You can change the color of an object from say blue to red. But that change is only in RAM until you Save it. If you close without Saving, when you reload the file the object will still be blue. Change it to red and Save it: then it's red until you change it again.

Post Reply