Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 23 Aug 2014, 13:29
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Grub4DosConfig
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 22 of 23 [335 Posts]   Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23 Next
Author Message
shinobar


Joined: 28 May 2009
Posts: 2617
Location: Japan

PostPosted: Wed 25 Sep 2013, 22:25    Post subject: Re: safe mode fails  

The menu advanced.lst
Code:
# /menu-advanced.lst  produced by grub4dosconfig-v1.8.9

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

title Puppy slacko 5.6.0 (sda3/slacko5.6.0frugal) Safe mode (without X)\nTry 'xorgwizard' after bootup succeed to start graphic mode.
  uuid 3f9de134-a95d-4a9d-9d42-cd5e98895ac6
  kernel /slacko5.6.0frugal/vmlinuz  pmedia=atahd psubdir=slacko5.6.0frugal pfix=ram,nox acpi=off apm=off nosmp noapic nodma nopcmcia
  initrd /slacko5.6.0frugal/initrd.gz

title Puppy slacko 5.6.0 (sda3/slacko5.6.0frugal) RAM mode\nBoot up Puppy without pupsave
  uuid 3f9de134-a95d-4a9d-9d42-cd5e98895ac6
  kernel /slacko5.6.0frugal/vmlinuz  pmedia=atahd psubdir=slacko5.6.0frugal pfix=ram
  initrd /slacko5.6.0frugal/initrd.gz

Confirmed. Need to remove 'nodma nopcmcia'.
Code:
  kernel /slacko5.6.0frugal/vmlinuz  pmedia=atahd psubdir=slacko5.6.0frugal pfix=ram,nox acpi=off apm=off nosmp noapic

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2617
Location: Japan

PostPosted: Wed 25 Sep 2013, 22:38    Post subject: grub4dos v1.9  

grub4dos-0.4.4.v1.9.pet (2013-09-26)
#17may13 v1.8.9: multiple Windows in the advanced menu, porteus
#25sep13 v1.9: do not use uuid for removable media, fix was failed safe mode (thanks to bigpup), fix the top puppy
http://shino.pos.to/linux/puppy/

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
simargl5

Joined: 29 Oct 2013
Posts: 31

PostPosted: Tue 29 Oct 2013, 10:43    Post subject:  

Hi shinobar

I'm trying to make grub4dos config recognize frugal installation of alphaos now that is based on Linux Live Kit from Tomas M. and Slax, but this script has so many variables I can't find where this suppose to go.

This is list of files in frugal installation- top directory of sda6 partition
Code:
alphaos
alphaos/alpha_12.sb
alphaos/changes.fs4
alphaos/extra_12.sb
alphaos/boot
alphaos/boot/vmlinuz
alphaos/boot/initrfs.img
alphaos/modules
....


Here is what's needed addition for a working menu.lst
Code:
title alphaos (sda6/alphaos)
  uuid f6cfd2a9-cfed-483c-85c9-6904637405dd
  kernel /alphaos/boot/vmlinuz
  initrd /alphaos/boot/initrfs.img
Back to top
View user's profile Send private message 
simargl5

Joined: 29 Oct 2013
Posts: 31

PostPosted: Sat 02 Nov 2013, 08:53    Post subject:  

These two entries both work, and from boot code should always be used, without difference if it's hard disk or usb installation to avoid potential problem i.e. loading system data from wrong directory.

Code:
title alphaos (sda6/alphaos)
  uuid f6cfd2a9-cfed-483c-85c9-6904637405dd
  kernel /alphaos/boot/vmlinuz from=/alphaos
  initrd /alphaos/boot/initrfs.img

title alphaos (sda6/alphaos)
  find --set-root --ignore-floppies --ignore-cd /alphaos/boot/initrfs.img
  kernel /alphaos/boot/vmlinuz from=/alphaos
  initrd /alphaos/boot/initrfs.img
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2617
Location: Japan

PostPosted: Sun 03 Nov 2013, 03:44    Post subject: alphaOS support  

simargl5 wrote:
I'm trying to make grub4dos config recognize frugal installation of alphaos now that is based on Linux Live Kit from Tomas M. and Slax, but this script has so many variables I can't find where this suppose to go.

This is list of files in frugal installation- top directory of sda6 partition
Code:
alphaos
alphaos/alpha_12.sb
alphaos/changes.fs4
alphaos/extra_12.sb
alphaos/boot
alphaos/boot/vmlinuz
alphaos/boot/initrfs.img
alphaos/modules
....

1. Current grub4dosconfig does not find 'initrfs.img'.
2. Current grub4dosconfig does not search deeper 'boot' directory.
If you want to hack, find the code for Wubi and slitaz in the script. They can be a help.

BTW, most recent alphaOS_12.1-20121019.iso has these files:
Code:
alpha_12.sfs
boot.cat
extra_12.sfs
initrd.gz
isolinux.bin
syslinux.cfg
vmlinuz

These can be found by the current grub4dosconfig when they are frugal installed in a sub-directory. The grub4dosconfig doesn't know what is the alphaOS, and takes 'Extra-12' for the title.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
gcmartin

Joined: 14 Oct 2005
Posts: 4220
Location: Earth

PostPosted: Mon 04 Nov 2013, 00:17    Post subject: Re: alphaOS support  

shinobar wrote:
simargl5 wrote:
... This is list of files in frugal installation- top directory of sda6 partition
Code:
alphaos
alphaos/alpha_12.sb
alphaos/changes.fs4
alphaos/extra_12.sb
alphaos/boot
alphaos/boot/vmlinuz
alphaos/boot/initrfs.img
alphaos/modules
....

1. Current grub4dosconfig does not find 'initrfs.img'.
2. Current grub4dosconfig does not search deeper 'boot' directory.
If you want to hack, find the code for Wubi and slitaz in the script. They can be a help.

BTW, most recent alphaOS_12.1-20121019.iso has these files:
Code:
alpha_12.sfs
boot.cat
extra_12.sfs
initrd.gz
isolinux.bin
syslinux.cfg
vmlinuz

These can be found by the current grub4dosconfig when they are frugal installed in a sub-directory. The grub4dosconfig doesn't know what is the alphaOS, and takes 'Extra-12' for the title.

Shinobar, are you sharing that grub4dos will NOT search 3 levels deep for the kernel-init needs or are you sharing that all things need be in a single directory?
Trying to understand which.

Thanks in advance.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
simargl5

Joined: 29 Oct 2013
Posts: 31

PostPosted: Mon 04 Nov 2013, 04:58    Post subject:  

Edit: Ignore this post

I've fixed (partially) grub4dosconfig to recognize alphaos frugal installation (based on linux live)
file: http://alphaos.tuxfamily.org/forum/download/file.php?id=44
diffs:
Code:
@@ -252,6 +252,7 @@
   io.sys) DISTRO_NAME="Windows 9x/Me";;
   plpbt.bin) DISTRO_NAME="PLOP_boot_manager";;
   rootfs*.gz) DISTRO_NAME="Slitaz Linux";;
+  initrfs.img) DISTRO_NAME="alphaOS";;
   initrd) DISTRO_NAME="Fatdog64";;
   puppy.sfs) # frugal installed Puppy with simple file name
     DISTRO_IDSTRING=$(tail -c 16 $TOPDIR$KEYFILE)
@@ -290,7 +291,7 @@
    [ -f $TOPDIR/etc/DISTRO_SPECS ] && source $TOPDIR/etc/DISTRO_SPECS
    [ "$DISTRO_VERSION" != "" ] && DISTRO_NAME="$DISTRO_NAME $DISTRO_VERSION"
    [ "$DISTRO_NAME" ] && echo "$DISTRO_NAME" && return
-
+
   # other linux
    if [ "$DISTRO_NAME" = "" ]; then
      if [ -f $TOPDIR/etc/vine-release ] ; then
@@ -972,6 +973,18 @@
     fi
     break
   done
+
+  # alphaos
+  for D in alphaos alphaOS Alphaos AlphaOS alphaos.usb alphaos-usb; do
+    if [ -f $TOPDIR/$D/boot/vmlinuz -a -f $TOPDIR/$D/alpha*sb ];then
+      LINUXOPTIONS="$LINUXOPTIONS from=/$D"
+      KEYFILE="/$D/boot/initrfs.img,/$D/boot/vmlinuz"
+      ITEM="$PART$KEYFILE|$(read_distro_specs $TOPDIR)"
+      FULLINSTS="$FULLINSTS
+      $ITEM"
+    fi
+  done
+
   # Wubi
   if [ -f $TOPDIR/ubuntu/disks/boot/grub/menu.lst ];then # ununtu on Windows
     KEYFILE=/ubuntu/disks/boot/grub/menu.lst

problem: in case two frugal installation are on the same disk, in will add from=/dir1 from=/dir2 for both entries...

Last edited by simargl5 on Thu 07 Nov 2013, 04:10; edited 1 time in total
Back to top
View user's profile Send private message 
simargl5

Joined: 29 Oct 2013
Posts: 31

PostPosted: Mon 04 Nov 2013, 12:43    Post subject:  

shinobar, do you consider this as a bug - fact that Grub4DosConfig is not being able to find alphaos frugal installation, and not just alphaos, it also can't boot Slax, one of distributions with highest reputation and long tradition. If yes what's status of that bug: need more info, wontfix, pending...
Back to top
View user's profile Send private message 
simargl5

Joined: 29 Oct 2013
Posts: 31

PostPosted: Wed 06 Nov 2013, 18:00    Post subject:  

I mark this bug as SOLVED

... not upstream, but doesn't matter - will use my patch.
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Fri 08 Nov 2013, 06:36    Post subject: enhancment request
Subject description: puppy frugal install 2 levels down
 

Many current puppies , (at least the ones I have installed) support frugal installs down 2 directories, as per the following menu.lst entry:
Code:
title squeeze 5.X.3.4.12
  uuid 160b47eb-a8de-4fa1-ac7e-8f795e7bbe8d
  kernel /puppy/squeeze/vmlinuz   psubdir=puppy/squeeze pmedia=atahd pfix=fsck
  initrd /puppy/squeeze/initrd.gz

Will Grub4DosConfig's search facility ever be changed so that it will find these?

gyro
Back to top
View user's profile Send private message 
EdD

Joined: 09 Dec 2013
Posts: 166
Location: Southside Virginia

PostPosted: Mon 06 Jan 2014, 15:57    Post subject:  

nooby wrote:
Oops sorry. maybe the name is EasyBCD and NeoGrub is the name of a program within the EBCD program.



nooby, thanks for the link. just found this old thread in my quest to learn about grub and the page you linked has a good tutorial on syntax, which is what was suggested to me earlier by mikeb.

Regards,
Ed
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7794
Location: qld

PostPosted: Mon 10 Feb 2014, 20:00    Post subject:  

Hello shinobar,

If you are interested, woof-CE has deprecated the 'mini-icons' in favour of svg icons. This breaks the images in the grub4dos-config gui. We have also deprecated the 24 icons in the icon-themes. I have made a patch which should be backward compatible against v1.9.1
Code:
diff -ru a/usr/sbin/grub4dosconfig b/usr/sbin/grub4dosconfig
--- a/usr/sbin/grub4dosconfig   2014-01-08 00:29:03.000000000 +1000
+++ b/usr/sbin/grub4dosconfig   2014-02-11 09:58:27.713443548 +1000
@@ -192,6 +192,9 @@
   which $PROG >/dev/null && HELPVIEWER=$PROG && break
 done
 ICONS="/usr/local/lib/X11/mini-icons"
+icon=mini-clock.xpm
+width=
+[ -d /usr/share/pixmaps/puppy ] && ICONS="/usr/share/pixmaps/puppy" icon=clock.svg width="<width>16</width>"
 
 splash() {
   ACTION="$1"
@@ -199,7 +202,7 @@
   if [ "$ACTION" = "start" ]
   then
      DIALOG="<window title=\"$_Title\"><hbox>
-       <pixmap><input file>$ICONS/mini-clock.xpm</input></pixmap>
+       <pixmap><input file>$ICONS/$icon</input>$width</pixmap>
        <text><input>echo -en \"$MSG\"</input></text>
 </hbox></window>"
      $GTKDIALOG -p DIALOG  -c &>/dev/null &
@@ -2042,7 +2045,7 @@
    <text><label>$_Unmount</label></text>"
 fi
  [ "$FLOPPY" != "" ] &&  mount /dev/fd0 /mnt/fd0
- EDITADVANCED="<button><input file>/usr/local/lib/X11/pixmaps/edit24.png</input>
+ EDITADVANCED="<button><input file stock=\"gtk-edit\"></input>
  <label>\"$_Edit_Advanced\"</label><action>defaulttexteditor $TOPDIR$ADVANCEDMENU &</action></button>"
  [ "$ONEPAGE_MENU" = 'true' ] && EDITADVANCED=""
  DIALOG="<window title=\"$_Title - Success\"><vbox>
@@ -2050,10 +2053,10 @@
   <text use-markup=\"true\"><label>\"$_Success $_Fairwell1 $FILES $_Fairwell2 <b>$TOPDIR</b>. $_Fairwell3\"</label></text>
   $MORE
   <hbox>
-    <button><input file>/usr/local/lib/X11/pixmaps/edit24.png</input>
+    <button><input file stock=\"gtk-edit\"></input>
     <label>\"$_Edit\"</label><action>defaulttexteditor $TOPDIR/menu.lst &</action></button>
     $EDITADVANCED
-    <button><input file>/usr/local/lib/X11/pixmaps/file24.png</input><label>$(gettext 'See log')</label>
+    <button><input file stock=\"gtk-file\"></input><label>$(gettext 'See log')</label>
    <action>defaulttextviewer $MYLOG &</action></button>
    </hbox>
   <hbox>

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
gcmartin

Joined: 14 Oct 2005
Posts: 4220
Location: Earth

PostPosted: Tue 11 Feb 2014, 04:24    Post subject:  

Hi @Shinobar
This was posted about GRUB4DOS.

Has there been any changes in BIOS support?

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 5086
Location: Charleston S.C. USA

PostPosted: Tue 11 Feb 2014, 17:48    Post subject:  

A Grub4dos install problem.
http://www.murga-linux.com/puppy/viewtopic.php?t=91838

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 123

PostPosted: Thu 08 May 2014, 08:29    Post subject: version 1.9.1 'unknown' entries
Subject description: issue/bug report
 

I installed and ran version 1.9.1 on Quirky Tahr 6.0.5. It found the exact NUMBER of frugal installs on my hhd but all menu.lst entries where labelled 'unknown' and resolved to /vmlinuz initrd=/initrd.gz.
I then uninstalled version 1.9.1 and installed version 1.8.0. It found the exact number of installs and built a complete, correct menu.lst file.
So there seems to be a problem in the way 1.9.1 builds menu.lst.

menu.lst the good one
(

the bad one looks the same but all entries are:

title unknown (sdb1)
kernel /vmlinuz
initrd /initrd.gz

)
Code:

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

# Frugal installed Puppy

title Flp 013 (sdb1/fluppy)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /fluppy/vmlinuz   psubdir=fluppy pmedia=atahd pfix=fsck
  initrd /fluppy/initrd.gz

title Puppy carolite 1.2 (sdb1/puppy-carolite)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-carolite/vmlinuz   psubdir=puppy-carolite pmedia=atahd pfix=fsck
  initrd /puppy-carolite/initrd.gz

title Saluki printer scanner 001 (sdb1/puppy)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy/vmlinuz   psubdir=puppy pmedia=atahd pfix=fsck
  initrd /puppy/initrd.gz

title Puppy lina 1.1 (sdb1/puppy-lina)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-lina/vmlinuz   psubdir=puppy-lina pmedia=atahd pfix=fsck
  initrd /puppy-lina/initrd.gz

title Puppy lxpup 13.10 (sdb1/puppy-lxpup1310)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-lxpup1310/vmlinuz   psubdir=puppy-lxpup1310 pmedia=atahd pfix=fsck
  initrd /puppy-lxpup1310/initrd.gz

title Puppy lxpup 13.04 (sdb1/puppy-lxpup13)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-lxpup13/vmlinuz   psubdir=puppy-lxpup13 pmedia=atahd pfix=fsck
  initrd /puppy-lxpup13/initrd.gz

title Puppy lxpup 12.12 (sdb1/puppy-lxpup)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-lxpup/vmlinuz   psubdir=puppy-lxpup pmedia=atahd pfix=fsck
  initrd /puppy-lxpup/initrd.gz

title Xfce 4.10 (sdb1/puppy-precise)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-precise/vmlinuz   psubdir=puppy-precise pmedia=atahd pfix=fsck
  initrd /puppy-precise/initrd.gz

title Saluki printer scanner 001 (sdb1/puppy-saluki)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-saluki/vmlinuz   psubdir=puppy-saluki pmedia=atahd pfix=fsck
  initrd /puppy-saluki/initrd.gz

title Puppy xprecise 5.7.1 (sdb1/puppy-X-precise)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-X-precise/vmlinuz   psubdir=puppy-X-precise pmedia=atahd pfix=fsck
  initrd /puppy-X-precise/initrd.gz

# Full installed Linux

title Linux Mint 13 Maya (sdb1)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /vmlinuz root=/dev/sdb1 ro
  initrd /initrd.img

title Linux (sdc1)
  uuid A8EE-83EE
  kernel /vmlinuz root=/dev/sdc1 ro

# Windows

title Windows
  map (hd3) (hd0)
  map (hd0) (hd3)
  map --hook
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  chainloader /bootmgr

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


menu.lst and MBR saved to /dev/sdd1 USB key.
Code:

# blkid
/dev/sdd1: LABEL="PUP" UUID="9024-4D2D" TYPE="vfat"
/dev/mmcblk0p1: LABEL="RDYBST   " UUID="E806B96D0C36BE46" TYPE="ntfs"
/dev/sdc1: LABEL="ZIP16" UUID="A8EE-83EE" TYPE="vfat"
/dev/sdb5: UUID="81b9917a-974c-4c8e-8740-e91411253526" TYPE="swap"
/dev/sdb3: LABEL="DATA" UUID="08557d54-76ce-490c-9615-c47f2378b6c9" TYPE="ext3"
/dev/sdb2: LABEL="WIN" UUID="1CAA7CBBAA7C92CE" TYPE="ntfs"
/dev/sdb1: LABEL="LINUX" UUID="9f5d11ff-714b-48b1-860c-84924f0e9ece" TYPE="ext4"
/dev/sda8: LABEL="BOOT" UUID="1676-EF88" TYPE="vfat"
/dev/sda7: LABEL="SWAP" UUID="9cf61a01-225c-4313-8e3e-488ac04d0b16" TYPE="swap"
/dev/sda6: LABEL="WIN" UUID="25DAB16455F2E4C2" TYPE="ntfs"
/dev/sda5: LABEL="LINUX" UUID="4dc99106-5b4d-47d2-b04b-7031455e1cd8" TYPE="f2fs"
/dev/sda1: TYPE="vfat"
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 22 of 23 [335 Posts]   Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1326s ][ Queries: 13 (0.0151s) ][ GZIP on ]