Saluki / Lucid525/528 USB Boot hang (SOLVED)

Please post any bugs you have found
Message
Author
User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: do not trust universal installer

#21 Post by greengeek »

shinobar wrote:But you will be surprised Puppy do not automatically install the boot loader,
Hey Shinobar, where did you make this quote from? I don't see it in the link you gave? I am interested to read the rest of the post you took the quote from.

Your advice is pretty clear - DO NOT TRUST UNIVERSAL INSTALLER -

Now I agree. (Except that I still trust 4.3.1 :-) )

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: do not trust universal installer

#22 Post by shinobar »

greengeek wrote:
shinobar wrote:But you will be surprised Puppy do not automatically install the boot loader,
Hey Shinobar, where did you make this quote from?
Sorry, was in the article 'Try the Grub4Dos...'
http://www.murga-linux.com/puppy/viewtopic.php?t=61348
All papians need to try the Grub4Dos. Why?
- New comers from other distro: You need to use Grub4Dos.
You find Puppy can frugal install, and it is recommended.
But you will be surprised Puppy do not automatically install the boot loader,
and feel difficulty in manually editing the menu.lst because you are not used to the frugal install style.
Unfortunately you may install Puppy frugal on NTFS partitions, realize it cannot boot up from (legacy) grub.

I add similar comment at 'Frugalinstaller'.
http://www.murga-linux.com/puppy/viewtopic.php?t=57711
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Saluki and Lucid 525 / 528 USB Boot freeze.

#23 Post by ETP »

greengeek

Reading this thread I recall that I encountered similar problems when I first tried making bootable sticks & USB hard drives. None of the puppy tools or common utilities worked.
Either they completely failed to boot or did so intermittently.

The problem was down to a quirky BIOS that included some custom code for the PC OEM together with features for INTEL VIIV, energy lake & Raid support. Flashing the BIOS was therefore out of the question.

My salvation came in the form of the HP USB format utility (SP27608.exe) followed by the use of syslinux. (The hidden dos files can then be deleted from the fat stick or drive)

Using this method I have booted all versions of Luci/Lucid/Dpup/Slacko/Saluki etc etc without any problems. In each case I have done a manual fugal install.
I can vouch for syslinux 3.82 – 4.04 not having tried 4.05.

Send me a PM if you have not solved your problem and wish to try the HP utility.

It is interesting to note that in my case the Phoenix BIOS sees all USB devices as hard discs once this utility has been applied.
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: Saluki and Lucid 525 / 528 USB Boot freeze.

#24 Post by greengeek »

There is a lot more testing I need to do, but so far I have learnt a lot about creating a usb stick to boot from. Here is my summary of what I have learnt so far:

1) It is very important to understand that Gparted is NOT suitable to “prepare

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

boot sequence

#25 Post by shinobar »

For your information, the boot sequence:
A. Case of syslinux/extlinux
  1. BIOS sees which drive to boot (some BIOS checks the boot flag)
  2. MBR sees the boot flag on a partition, and chain to the PBS
  3. PBS loads the ldlinux.sys
  4. ldlinux.sys reads syslinux.cfg/extlinux.conf
  5. ldlinux.sys loads vmlinuz and initrd.gz
  6. Linux kernel(extracted vmlinuz) starts the init script in initrd.gz
  7. The init script loads the main sfs and pupsave
  8. Starts /etc/rc.d/rs.sysiinit
  9. ...
Note: syslinux/extlinux installs only PBS and ldlinux.sys.
You need to install MBR and to set the boot flag.
Gparted manages the partition table and flags, does nothing for MBR.

Error messages:
  • "Missing Operating System" means lacking MBR, step 2.
  • “Invalid or damaged Bootable partition
Last edited by shinobar on Mon 14 May 2012, 22:56, edited 2 times in total.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Saluki and Lucid 525 / 528 USB Boot freeze.

#26 Post by ETP »

greengeek

I agree with rcrsn51 that USB bootability has always been a black art. The problem seems to stem from the fact that they were originally envisaged purely as storage devices and no common method was ever specified for making them bootable.

Making them bootable therefore relies on tricking the BIOS into believing that they are one of the other devices that a BIOS is typically happy to boot from. This all depends on how the MBR is layed down.

Some utilities for example, trick the BIOS into seeing the stick as a ZIP drive. However some BIOSs seem to contain code that validates the size of a device. If the BIOS believes that the device is too big to be a ZIP drive it will throw its dummy out of the pram & refuse to boot!

With regard to the HP utility it in effect creates a DOS startup disc and does a FAT format of the device. The 3 DOS files can then subsequently be deleted. Its success I believe, relies on the fact that it works at the lowest common denominator fooling my particular BIOS into seeing the USB device as a hard disc. Syslinux is then used to install the hidden bootloader ldlinux.sys

In conclusion it works at a very fundemental level, all BIOSs being happy to boot from a hard disc and size is not an issue.
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: boot sequence

#27 Post by greengeek »

shinobar wrote: You need to install MBR and to set the boot flag.
Yes, I foolishly believed that the mbr was written by Gparted. I feel so stupid. Now I understand why people rely on Grub4Dos etc for a usb boot. They DON'T need any form of grub, but they DO need the mbr to be written correctly.

When Gparted runs, it has to update the first sector (to add the partition table...) but how does it do that without overwriting the mbr? Or does it rewrite the 446 bytes without changing them?
ETP wrote:In conclusion it works at a very fundemental level, all BIOSs being happy to boot from a hard disc and size is not an issue.
I guess that there are also a variety of modern bioses that "support" usb boot and yet vary in their implementation too.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Gparted and MBR

#28 Post by shinobar »

greengeek wrote: I foolishly believed that the mbr was written by Gparted. .
Right. Gparted manages the partition table and flags, does nothing for MBR.
As you know, the 1st sector contains partition table, flags, and MBR.
Gparted maybe makes a copy of the MBR and write back to the 1st sector with the new partition table and flags.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Saluki and Lucid 525 / 528 USB Boot freeze.

#29 Post by ETP »

I am posting a copy of this email this for the sake of completeness:
Greengeek:

I have given your suggestion a lot of thought but due to the number of variables involved think it best to continue to offer assistance on an ad hoc basis.

In the main these problems afflict pre 2007 motherboards with an AWARD or PHOENIX bios. A cosy cartel means that no bios updates are available. The problem is therefore an ever diminishing one as people renew their kit. In addition flash sticks use different inbuilt controllers and once again it is the older ones that can be problematic – some will never succumb to any technique. Post 2007 manufacturers seem to have settled on sticks presenting themselves as hard discs & the bios may have a specific option to boot from USB HDD.

With regard to the HP utility there are a number of different versions freely available on the web such as:
http://www.bay-wolf.com/usbmemstick.htm

Older versions may work better with old kit. In addition some sticks only respond if formatted as FAT rather than FAT32 as advised by bay-wolf. Another variable is the version of syslinux that is used. (Once again older may work, recent may not)

It is basically a matter of trying out all possible permutations with a particular PC AND a particular stick. What works for one stick may not work for another. I have found that in my case FAT32 only works for more recent sticks.

The syslinux part is pretty straightforward:
Download here:
http://www.kernel.org/pub/linux/utils/boot/syslinux/

Instructions here:
http://www.syslinux.org/wiki/index.php/HowTos
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#30 Post by bigpup »

Have you ever used Bootflash install Puppy to USB?
Usually at menu->Setup->Bootflash install Puppy to USB.
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 :shock:
YaPI(any iso installer)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: Saluki and Lucid 525 / 528 USB Boot freeze.

#31 Post by greengeek »

ETP wrote:I am posting a copy of this email this for the sake of completeness:
Thanks ETP. Useful info.
bigpup wrote:Have you ever used Bootflash install Puppy to USB?
Hi bigpup, yes, I have been trialling bootflash recently, but once again I am labouring under the weight my inexperience. :-)
In particular, I am working with one usb stick that I have never been able to boot from, and trying the USB-HDD option within bootflash. I seem to get things hanging when it tries to copy the files from the iso. I think I am doing something wrong with the location of the iso, so will be trying again with putting the iso in the root folder, and also with a different usb stick. Will report back when I clear the fog of ignorance from my brow. :-)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#32 Post by bigpup »

Bootflash hangs.
If you are running Bootflash from an installed Puppy.
Try this:
Open Rox file manager
Find the Puppy ISO file and left click on it.
This will mount the ISO file.
Now try Bootflash.
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 :shock:
YaPI(any iso installer)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#33 Post by greengeek »

bigpup wrote:If you are running Bootflash from an installed Puppy.
Try this: Open Rox file manager, Find the Puppy ISO file and left click on it.
This will mount the ISO file.
Thanks Bigpup. I have just tried this again and found that as well as being mounted the iso had to be in the root folder. I think this must be why I was having so much trouble before - must have had the iso unmounted and/or in the wrong place.
Just one annoyance though - the bootflash routine did not warn me that both partitions on the usb stick would be overwritten and combined into one. Fortunately I had a backup of all the data lost from the data partition. Trap for young players I guess.

I still need to go back and redo my previous trials using bootflash instead of universal installer to see if it overcomes the two problems I was having. Not just yet though.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#34 Post by greengeek »

rcrsn51 wrote:If you watch closely while the Universal Installer is running, you will see the "unsafe permissions" error message. You will also see that the file ldlinux.sys is NOT written to the flash drive, so it can't boot.

This is because the folder /tmp does not have its "sticky bit" set. I don't know why syslinux cares, but you can fix it with.

Code: Select all

chmod 1777 /tmp
Excellent. Wish i had remembered this old piece of advice. I have been having problems getting slacko 5.6 to prepare a bootable usb stick and the
/tmp permissions issue was the roadblock. Thanks!

Post Reply