[Freedos-user] jq 1.7.1 for DOS
Greetings, Here is a link to download jq 1.7.1 for DOS built with DJGPP and lightly tested on DOSBox and FreeDOS. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. https://archive.org/details/jq171-for-dos -Ben ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Post-install problem with GRUB2 bootloader
Thank you all for your responses. Apparently my responses have been over the 40k limit; I'm not familiar with the site so pardon my delay in responding. There is only one active partition; it is sda1. it got moved to sda3 where DOS was installed when I used the fdisk that was part of the FreeDOS installation but I moved it back with KDE Partition Manager, the same tool I used to shrink the Linux BTRFS partition on sda2. FD's fdisk would not allow resetting sda1 as active. I will attempt to attach the terminal output showing lsblk -f etc. There is no rescue mode (that I can find) on this release of Fedora; it used to be an option in GRUB. -CH- liveuser@localhost-live:~$ su root@localhost-live:/home/liveuser# [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS BIOS root@localhost-live:/home/liveuser# dnf list installed | grep grub grub2-common.noarch 1:2.06-100.fc39 @anaconda grub2-efi-ia32.x86_641:2.06-100.fc39 @anaconda grub2-efi-ia32-cdboot.x86_64 1:2.06-100.fc39 @anaconda grub2-efi-x64.x86_64 1:2.06-100.fc39 @anaconda grub2-efi-x64-cdboot.x86_64 1:2.06-100.fc39 @anaconda grub2-pc.x86_64 1:2.06-100.fc39 @anaconda grub2-pc-modules.noarch 1:2.06-100.fc39 @anaconda grub2-tools.x86_64 1:2.06-100.fc39 @anaconda grub2-tools-efi.x86_64 1:2.06-100.fc39 @anaconda grub2-tools-extra.x86_64 1:2.06-100.fc39 @anaconda grub2-tools-minimal.x86_64 1:2.06-100.fc39 @anaconda grubby.x86_648.40-72.fc39 @anaconda root@localhost-live:/home/liveuser# lsblk NAMEMAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:00 2.2G 1 loop loop1 7:10 8.8G 1 loop ├─live-rw 253:00 8.8G 0 dm / └─live-base 253:10 8.8G 1 dm loop2 7:2032G 0 loop └─live-rw 253:00 8.8G 0 dm / sda 8:00 223.6G 0 disk ├─sda18:10 1G 0 part ├─sda28:20 219.6G 0 part └─sda38:30 3G 0 part sdb 8:16 1 14.4G 0 disk ├─sdb18:17 1 2.3G 0 part /run/initramfs/live ├─sdb28:18 1 11.6M 0 part └─sdb38:19 1 300K 0 part sr0 11:01 1024M 0 rom zram0 252:00 7.6G 0 disk [SWAP] root@localhost-live:/home/liveuser# lsblk -f NAMEFSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS loop0 squashf 4.0 loop1 ext41.0 Anaconda f9515758-5765-4fca-b24e-633f7fdea3fb ├─live-rw │ ext41.0 Anaconda f9515758-5765-4fca-b24e-633f7fdea3fb 2G77% / └─live-base ext41.0 Anaconda f9515758-5765-4fca-b24e-633f7fdea3fb loop2 DM_snap └─live-rw ext41.0 Anaconda f9515758-5765-4fca-b24e-633f7fdea3fb 2G77% / sda ├─sda1 ext41.0 c9c2f8e9-f99f-4dba-934b-96904da5b63a ├─sda2 btrfs fedora_localhost-live a9a3c9e0-18e3-4fec-9678-529faf02a1b3 └─sda3 vfatFAT32 DOS1960-1C23 sdb iso9660 Joliet Fedora-KDE-Live-39-1-5 2023-11-01-01-34-53-00 ├─sdb1 iso9660 Joliet Fedora-KDE-Live-39-1-5 2023-11-01-01-34-53-00 0 100% /run/initramfs/live ├─sdb2 vfatFAT16 ANACONDA B3C2-9928 └─sdb3 sdc └─sdc1 vfatFAT32 1C2E-2966 28.8G 0% /run/media/liveuser/1C2E-2966 sr0 zram0 [SWAP] root@localhost-live:/home/liveuser# fdisk -l Disk /dev/sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors Disk model: CT240BX500SSD1 Units:
Re: [Freedos-user] Post-install problem with GRUB2 bootloader
If you did not save the first megabyte of your hard drive before overwriting it with your FreeDOS installation, then this is, in my opinion, the fastest and easiest way to recover: 1. Boot a Linux system from rescue media (exactly as you did in the session that you recently posted to this mailing list). 2. Mount the root filesystem of your Fedora system (which, if memory serves, resides on /dev/sda2) on a suitable directory -- for the purposes of this example, let us call it /mnt/Fedora. 3. Save the first megabyte of /dev/sda somewhere, in case you mess up Step 4 and render your computer unbootable: dd if=/dev/sda bs=1M count=1 of=/mnt/Fedora/Old_FreeDOS_Bootloader 4. Execute the following commands: mount -t proc proc /mnt/Fedora/proc mount -t sysfs sys /mnt/Fedora/sys mount -B /dev /mnt/Fedora/dev chroot /mnt/Fedora grub2-install /dev/sda 5. Edit /boot/grub2/grub.cfg -- yes, this is the file that says, in prominent capital letters, DO NOT EDIT THIS FILE -- and add a menu entry that boots FreeDOS: menuentry 'FREEDOS 1.3' { set root=(hd0,3) chainloader /BOOTSECT.DOS } Copy /boot/grub2/grub.cfg to /boot/grub2/grub.cfg.backup in case some idiot runs grub2-mkconfig explicitly or implicitly. 5a. As an alternative to Step 5, if you insist on relying on grub2-mkconfig, then put the FreeDOS menuentry into the /etc/grub.d/40_custom file. 6. Reboot your system (you will have to exit from the chroot first). You should see your old GRUB2 menu, with an additional menu item that lets you boot into FreeDOS. Jay F. Shachter 6424 North Whipple Street Chicago IL 60645-4111 (1-773)7613784 landline (1-410)9964737 GoogleVoice http://m5.chicago.il.us j...@m5.chicago.il.us "But when she traced the killer's IP address ... it was in the 192.168/16 block!" ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user