Grub2config replaces Grub4Dos

Moderator: Forum moderators

User avatar
shinobar
Posts: 89
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 13 times
Been thanked: 72 times
Contact:

Re: Grub2config replaces Grub4Dos

Post by shinobar »

sinc wrote: Wed Sep 11, 2024 11:05 pm

Thanks so much d-pupp!!! That did it!

Please show us your entry lines.
Mine is like this:
menuentry 'Dpupbw64 10.0.7 RAM mode(sda3/dpupbw64-10.0.7)' --class puppylinux{
search --no-floppy --set=root --fs-uuid 0c17217e-4723-4d30-a4bf-3da1636875b8
linux /dpupbw64-10.0.7/vmlinuz psubdir=/dpupbw64-10.0.7 pmedia=ataflash pfix=fsck
if [ -e /dpupbw64-10.0.7/ucode.cpio ]; then
initrd /dpupbw64-10.0.7/ucode.cpio /dpupbw64-10.0.7/initrd.gz
else
initrd /dpupbw64-10.0.7/initrd.gz
fi
}

the line
search --no-floppy --set=root --fs-uuid UUID_OF_THE_PARTISION
does't work?

sinc
Posts: 16
Joined: Thu Aug 11, 2022 3:44 pm
Has thanked: 8 times

Re: Grub2config replaces Grub4Dos

Post by sinc »

All I added were these two statements:
pupsfs=1E74E51174E4EC89 psave=1E74E51174E4EC89

It did not work prior to this. I did not try without the psave command. Maybe this one is not necessary.

menuentry 'BWPup Linux' --class puppylinux{
search --no-floppy --set=root --fs-uuid 1E74E51174E4EC89
linux /BWPup/vmlinuz pupsfs=1E74E51174E4EC89 psave=1E74E51174E4EC89 psubdir=/BWPup pmedia=atahd pfix=fsck
if [ -e /BWPup/ucode.cpio ]; then
initrd /BWPup/ucode.cpio /BWPup/initrd.gz
else
initrd /BWPup/initrd.gz
fi
}

menuentry 'Windows uefi boot' --class puppylinux{
search --no-floppy --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

if [ $grub_platform = "efi" ] ; then
menuentry 'UEFI Firmware Settings' --class puppylinux{
fwsetup
}
fi

williwaw
Posts: 2151
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 196 times
Been thanked: 414 times

Re: Grub2config replaces Grub4Dos

Post by williwaw »

sinc wrote: Thu Sep 12, 2024 9:27 pm

All I added were these two statements:
pupsfs=1E74E51174E4EC89psave=1E74E51174E4EC89

It did not work prior to this. I did not try without the psave command. Maybe this one is not necessary.

menuentry 'BWPup Linux' --class puppylinux{
search --no-floppy --set=root --fs-uuid 1E74E51174E4EC89

sinc, as a test, try putting your full uuid in the search --no-floppy --set=root --fs-uuid 1E74E51174E4EC89 statement and without the recently added pupsfs=1E74E51174E4EC89 in the kernel line
the command blkid should show a longer number similar to shinobars example above

sinc
Posts: 16
Joined: Thu Aug 11, 2022 3:44 pm
Has thanked: 8 times

Re: Grub2config replaces Grub4Dos

Post by sinc »

This is all of it.

Attachments
screenshot-1.png
screenshot-1.png (231.41 KiB) Viewed 2638 times
User avatar
rockedge
Site Admin
Posts: 7022
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3149 times
Been thanked: 2934 times
Contact:

Re: Grub2config replaces Grub4Dos

Post by rockedge »

Seems like the partition being formatted as NTFS is what is requiring the extra parameter(s) pupsfs=1E74E51174E4EC89 psave=1E74E51174E4EC89 being needed.

User avatar
shinobar
Posts: 89
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 13 times
Been thanked: 72 times
Contact:

Puppies on NTFS partitions

Post by shinobar »

rockedge wrote: Sat Sep 14, 2024 5:36 pm

Seems like the partition being formatted as NTFS is what is requiring the extra parameter(s) pupsfs=1E74E51174E4EC89 psave=1E74E51174E4EC89 being needed.

I guess this is the BookwormPup specific issue.
Fossapup64 has no problem, but the BookwormPup fails. Both on the same ntfs partition, sda2.
probepart shows:
/dev/sda1|ntfs|50M
/dev/sda2|ntfs|39.3G
/dev/sda3|ntfs|564M
/dev/sda4|ext4|10.0G
/dev/sdb1|vfat|1.2G
/dev/sdb2|ext3|6.0G
/dev/sr0|none|1023M

but the script init of the BookwormPup omits ntfs partitions.
HAVE_PART shows:
sda4|ext4
sdb1|vfat
sdb2|ext3

(grub.cfg entries)
menuentry 'Dpupbw64 10.0.7 (sda2/dpupbw64-10.0.7)' --class puppylinux{
search --no-floppy --set=root --fs-uuid FABC3FAEBC3F6473
linux /dpupbw64-10.0.7/vmlinuz psubdir=/dpupbw64-10.0.7 pmedia=atahd pfix=fsck
if [ -e /dpupbw64-10.0.7/ucode.cpio ]; then
initrd /dpupbw64-10.0.7/ucode.cpio /dpupbw64-10.0.7/initrd.gz
else
initrd /dpupbw64-10.0.7/initrd.gz
fi
}

menuentry 'Fossapup64 9.5 (sda2/fossapup649.5frugal)' --class puppylinux{
search --no-floppy --set=root --fs-uuid FABC3FAEBC3F6473
linux /fossapup649.5frugal/vmlinuz psubdir=/fossapup649.5frugal pmedia=atahd pfix=fsck
if [ -e /fossapup649.5frugal/ucode.cpio ]; then
initrd /fossapup649.5frugal/ucode.cpio /fossapup649.5frugal/initrd.gz
else
initrd /fossapup649.5frugal/initrd.gz
fi
}

User avatar
rockedge
Site Admin
Posts: 7022
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3149 times
Been thanked: 2934 times
Contact:

Re: Grub2config replaces Grub4Dos

Post by rockedge »

@shinobar Could you download the file that contains updated versions of probedisk and probepart and test these out in your BookwormPup system?

The BookwormPup init script will need a look.

Attachments
probedisk-probepart-void.tar.xz
decompress this file!
(2.5 KiB) Downloaded 40 times
User avatar
shinobar
Posts: 89
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 13 times
Been thanked: 72 times
Contact:

Re: Grub2config replaces Grub4Dos

Post by shinobar »

rockedge wrote: Sun Sep 15, 2024 12:35 am

@shinobar Could you download the file that contains updated versions of probedisk and probepart and test these out in your BookwormPup system?

The BookwormPup init script will need a look.

Tnx. just the same as i posted before
probepart shows:
/dev/sda1|ntfs|50M
/dev/sda2|ntfs|39.3G
/dev/sda3|ntfs|564M
/dev/sda4|ext4|10.0G
/dev/sdb1|vfat|1.2G
/dev/sdb2|ext3|6.0G
/dev/sr0|none|1023M

# probedisk
/dev/sda|drive|ATA VBOX HARDDISK
/dev/sdb|usbdrv|UFD_3.0 Silicon-Power8G
/dev/sr0|optical|VBOX CD-ROM [Rev 1.0]

User avatar
shinobar
Posts: 89
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 13 times
Been thanked: 72 times
Contact:

Re: Puppies on NTFS partitions

Post by shinobar »

shinobar wrote: Sat Sep 14, 2024 11:13 pm

I guess this is the BookwormPup specific issue.
Fossapup64 has no problem, but the BookwormPup fails. Both on the same ntfs partition, sda2.

Anyway, pdrv option solves.
(grub.cfg entry)
menuentry 'Dpupbw64 10.0.7 (sda2/dpupbw64-10.0.7)' --class puppylinux{
search --no-floppy --set=root --fs-uuid FABC3FAEBC3F6473
linux /dpupbw64-10.0.7/vmlinuz psubdir=/dpupbw64-10.0.7 pdrv=FABC3FAEBC3F6473 pmedia=atahd pfix=fsck
if [ -e /dpupbw64-10.0.7/ucode.cpio ]; then
initrd /dpupbw64-10.0.7/ucode.cpio /dpupbw64-10.0.7/initrd.gz
else
initrd /dpupbw64-10.0.7/initrd.gz
fi
}

User avatar
shinobar
Posts: 89
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 13 times
Been thanked: 72 times
Contact:

grub2config-2.1

Post by shinobar »

Major update:
grub2config-2.1
http://shinobar.server-on.net/puppy/opt ... ig-2.1.pet

#2024-09-15 v2.1: mbr stuff ext4 support no need wee nor grub4dos, pdrv option, check target space, refresh_drive_icons,

User avatar
shinobar
Posts: 89
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 13 times
Been thanked: 72 times
Contact:

A bug in grub2config-2.1

Post by shinobar »

grub2config-2.1 produces incorrect entry for the RAM mode. Please manually edit the file 'MOUNTPOINT/grub.cfg', where the 'MOUNTPOINT' is the mount point of the boot partition, mayby the first partition of the boot drive.

Correct 'pfix=fsck' to 'pfix=ram'

example:
menuentry 'Dpupbw64 10.0.7 RAM mode(sda3/dpupbw64-10.0.7)' --class puppylinux{
search --no-floppy --set=root --fs-uuid 0c17217e-4723-4d30-a4bf-3da1636875b8
linux /dpupbw64-10.0.7/vmlinuz psubdir=/dpupbw64-10.0.7 pmedia=ataflash pfix=fsck
if [ -e /dpupbw64-10.0.7/ucode.cpio ]; then
initrd /dpupbw64-10.0.7/ucode.cpio /dpupbw64-10.0.7/initrd.gz
else
initrd /dpupbw64-10.0.7/initrd.gz
fi
}

correct to:
menuentry 'Dpupbw64 10.0.7 RAM mode(sda3/dpupbw64-10.0.7)' --class puppylinux{
search --no-floppy --set=root --fs-uuid 0c17217e-4723-4d30-a4bf-3da1636875b8
linux /dpupbw64-10.0.7/vmlinuz psubdir=/dpupbw64-10.0.7 pmedia=ataflash pfix=ram
if [ -e /dpupbw64-10.0.7/ucode.cpio ]; then
initrd /dpupbw64-10.0.7/ucode.cpio /dpupbw64-10.0.7/initrd.gz
else
initrd /dpupbw64-10.0.7/initrd.gz
fi
}

radky
Posts: 377
Joined: Fri May 28, 2021 2:14 am
Has thanked: 42 times
Been thanked: 340 times

Re: Puppies on NTFS partitions

Post by radky »

shinobar wrote: Sat Sep 14, 2024 11:13 pm
rockedge wrote: Sat Sep 14, 2024 5:36 pm

Seems like the partition being formatted as NTFS is what is requiring the extra parameter(s) pupsfs=1E74E51174E4EC89 psave=1E74E51174E4EC89 being needed.

I guess this is the BookwormPup specific issue.
Fossapup64 has no problem, but the BookwormPup fails. Both on the same ntfs partition, sda2.
probepart shows:
/dev/sda1|ntfs|50M
/dev/sda2|ntfs|39.3G
/dev/sda3|ntfs|564M
/dev/sda4|ext4|10.0G
/dev/sdb1|vfat|1.2G
/dev/sdb2|ext3|6.0G
/dev/sr0|none|1023M

but the script init of the BookwormPup omits ntfs partitions.
HAVE_PART shows:
sda4|ext4
sdb1|vfat
sdb2|ext3

(grub.cfg entries)
menuentry 'Dpupbw64 10.0.7 (sda2/dpupbw64-10.0.7)' --class puppylinux{
search --no-floppy --set=root --fs-uuid FABC3FAEBC3F6473
linux /dpupbw64-10.0.7/vmlinuz psubdir=/dpupbw64-10.0.7 pmedia=atahd pfix=fsck
if [ -e /dpupbw64-10.0.7/ucode.cpio ]; then
initrd /dpupbw64-10.0.7/ucode.cpio /dpupbw64-10.0.7/initrd.gz
else
initrd /dpupbw64-10.0.7/initrd.gz
fi
}

menuentry 'Fossapup64 9.5 (sda2/fossapup649.5frugal)' --class puppylinux{
search --no-floppy --set=root --fs-uuid FABC3FAEBC3F6473
linux /fossapup649.5frugal/vmlinuz psubdir=/fossapup649.5frugal pmedia=atahd pfix=fsck
if [ -e /fossapup649.5frugal/ucode.cpio ]; then
initrd /fossapup649.5frugal/ucode.cpio /fossapup649.5frugal/initrd.gz
else
initrd /fossapup649.5frugal/initrd.gz
fi
}

@shinobar , @dimkr

It seems the failed init detection of ntfs partitions may be due to the kernel definition of filesystems in /proc/filesystems.

If I understand correctly, the modern init of BookwormPup64 defines builtin filesystem support (KFILESYSTEMS) as follows:

Code: Select all

KFILESYSTEMS="$(cat /proc/filesystems | grep -v "nodev" | grep -v "fuseblk" | sed -e "s#\t##g" | tr '\n' '|' | sed -e 's#|$##g')

which returns the following for my system which has vfat and ntfs partitions:

Code: Select all

KFILESYSTEMS="ext3|ext2|ext4|squashfs|vfat|msdos|exfat|iso9660|ntfs3|udf|xfs|f2fs|btrfs#"

NOTE: the above report specifies support for 'ntfs3' filesystems

---

On my system, probepart -hr returns the following:

/dev/sda1|vfat|260M
/dev/sda2|none|16M
/dev/sda3|ntfs|117.9G
/dev/sda4|ntfs|1000M
/dev/sdb1|vfat|28.6G
/dev/sdc1|vfat|28.9G

However, the init (HAVE_PARTS) searches specifically for filesystems defined by KFILESYSTEMS.

Consequently, on my system the search for 'ntfs3' fails and the 'ntfs' partitions are not detected:

sda1|vfat
sdb1|vfat
sdc1|vfat

Maybe the init (HAVE_PARTS) could be adjusted to correctly detect and define ntfs3 as ntfs.

dimkr
Posts: 2512
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1267 times

Re: Puppies on NTFS partitions

Post by dimkr »

radky wrote: Thu Sep 19, 2024 5:02 am

the modern init of BookwormPup64

Nobody is maintaining it (see https://github.com/puppylinux-woof-CE/w ... nitrd/init for evidence) and I can't say I'm surprised to hear about more issues that crop up as this messy piece of code ages.

radky wrote: Thu Sep 19, 2024 5:02 am

However, the init (HAVE_PARTS) searches specifically for filesystems defined by KFILESYSTEMS.

Which makes absolutely no sense.

I simplified the init script a lot in https://github.com/vanilla-dpup/woof-CE, to speed it up, make it more reliable and drop assumptions that used to be true back in the days when people actually maintained woof-CE but now break things (like the ntfs vs ntfs3 thing).

KFILESYSTEMS can be removed very easily, with zero side effects.

ozsouth
Posts: 1713
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 260 times
Been thanked: 780 times

Re: ntfs

Post by ozsouth »

I still use ntfs-3g in my kernels, as I wait for ntfs3 to mature. Other than some slow transfers, seems trouble-free - I have my main storage on it.

User avatar
peebee
Posts: 1717
Joined: Mon Jul 13, 2020 10:54 am
Location: Worcestershire, UK
Has thanked: 165 times
Been thanked: 753 times
Contact:

Re: Grub2config replaces Grub4Dos

Post by peebee »

Configuration problem when used in Woof-CE builds.......

All items in /usr/share/doc get put into the optional docx.sfs rather than the main puppy.sfs

This means the gnibble2.png icon is not present in installs without docx.sfs - and maybe other items....

Can the real icon be moved to /usr/share/pixmaps rather than a link? Do other items need to move?

[LATER] grub2config could be added to:
https://github.com/puppylinux-woof-CE/w ... istro#L512

but better if all could be moved to /usr/share/grub2config

Builder of LxPups, SPups, UPup32s, VoidPups; LXDE, LXQt, Xfce addons; Chromium, Firefox etc. sfs; & Kernels

User avatar
shinobar
Posts: 89
Joined: Sat Oct 17, 2020 2:21 am
Location: Japan
Has thanked: 13 times
Been thanked: 72 times
Contact:

Re: grub2config-2.1.1

Post by shinobar »

(Bugfix release)
#2024-09-24 v2.1.1: RAM mode entry, sort detected os, background2 for removable devices

grub2config-2.1.1 (2024-09-24)
from https://shinobar.net/puppy/opt/grub2con ... -2.1.1.pet

User avatar
AntonioPt
Posts: 306
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 130 times
Been thanked: 55 times

Re: grub2config-2.1.1

Post by AntonioPt »

shinobar wrote: Tue Sep 24, 2024 12:17 pm

(Bugfix release)
#2024-09-24 v2.1.1: RAM mode entry, sort detected os, background2 for removable devices

grub2config-2.1.1 (2024-09-24)
from https://shinobar.net/puppy/opt/grub2con ... -2.1.1.pet

Hello all just finish talking to @nilsonmorales on Telegram and gonna check/analyze code and see why ain't doing what is suppose to do :)
i just can't promises nutting for yesterday since im dam slow lol and yet fresh to Bash
Speak soon with updates :)

Why astronauts use Linux
Because you can't open windows in space

Post Reply

Return to “Boot”