Page 8 of 8

Re: Grub2config replaces Grub4Dos

Posted: Wed Sep 11, 2024 11:05 pm
by sinc

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


Re: Grub2config replaces Grub4Dos

Posted: Thu Sep 12, 2024 4:03 am
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?


Re: Grub2config replaces Grub4Dos

Posted: Thu Sep 12, 2024 9:27 pm
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


Re: Grub2config replaces Grub4Dos

Posted: Fri Sep 13, 2024 1:05 am
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


Re: Grub2config replaces Grub4Dos

Posted: Sat Sep 14, 2024 4:45 pm
by sinc

This is all of it.


Re: Grub2config replaces Grub4Dos

Posted: Sat Sep 14, 2024 5:36 pm
by rockedge

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


Puppies on NTFS partitions

Posted: Sat Sep 14, 2024 11:13 pm
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
}


Re: Grub2config replaces Grub4Dos

Posted: Sun Sep 15, 2024 12:35 am
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.


Re: Grub2config replaces Grub4Dos

Posted: Sun Sep 15, 2024 5:03 am
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]


Re: Puppies on NTFS partitions

Posted: Sun Sep 15, 2024 5:19 am
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
}


grub2config-2.1

Posted: Sun Sep 15, 2024 6:32 am
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,


A bug in grub2config-2.1

Posted: Tue Sep 17, 2024 5:10 pm
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
}


Re: Puppies on NTFS partitions

Posted: Thu Sep 19, 2024 5:02 am
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.


Re: Puppies on NTFS partitions

Posted: Thu Sep 19, 2024 5:17 am
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.


Re: ntfs

Posted: Thu Sep 19, 2024 6:13 am
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.


Re: Grub2config replaces Grub4Dos

Posted: Thu Sep 19, 2024 3:25 pm
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


Re: grub2config-2.1.1

Posted: Tue Sep 24, 2024 12:17 pm
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