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 Thu 23 May 2013, 22:38
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pupinfo - an answer to "pup-xxx.sfs not found"
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
Crash


Joined: 09 Dec 2005
Posts: 425
Location: Garland, TX

PostPosted: Sun 11 Oct 2009, 11:35    Post subject:  pupinfo - an answer to "pup-xxx.sfs not found"  

Here is a shell script that gives useful information if you get the message "pup-430.sfs not found" when booting. It automates the process that I normally do by hand. You have to add it to initrd.gz. When the boot process drops you to the prompt, you type "sh pupinfo", and something like the following comes out:

Code:
# sh pupinfo

Gathering information.........

Cannot find contents of CD.

If you are booting from a Live CD, chances are that you will not be
able to boot Puppy Linux directly since the Kernel doesn't recognize
the CD hardware.

You can still run Puppy Linux by copying the .sfs files to a writable
media such as hard drive.

This program will continue, showing what media the Kernel recognizes.

At the end, you can choose to save this information on the medium
of your choice.

Press ENTER to continue

Found ntfs partition sda1.

Contents of sda1 root directory are:

autoexec.bat Boot bootmgr BOOTSECT.BAK
config.sys DCIM Documents and Settings EVERIO
hiberfil.sys hp June_Restore New
Open_Office pagefile.sys PerfLogs ProgramData
Program Files $Recycle.Bin System Volume Information updatedatfix.log
Users WINDOWS

Press ENTER to continue

Found ntfs partition sda2.

Contents of sda2 root directory are:

BOOT bootmgr Desktop.ini DRECOVERY
hp HPCD.sys Master.log PC-Doctor 5 for Win PE
pcdr.ini preload Protect.ed RECOVERY
$RECYCLE.BIN SOURCES System Volume Information

Press ENTER to continue

Found fat partition sdc1.

Found Puppy file(s) in this partition:

pup_421.sfs
pup_save.2fs
pupsave.2fs

Press ENTER to continue

Contents of sdc1 root directory are:

1evx_421.sff 1initrd.bak 1up-430.sfs 246.txt
400.txt 430initrd.gz atals b214b.bat
b214g.bat b217.bak b217.bat b217d.bat
b217p.bat b217t.bat b301.bak b301.bat
b301t.bat b400.bat b411.bat b411c.bat
b411rc.bak b411rc.bat b412a.bat b412.bat
b412b.bat b412c.bat b412d.bat b412e.bat
b412f.bat b412r.bat b41.bat b41b.bat
b41bt.bat b41rc.bat b41rcd.bat b421.bat
b421t.bat b421tt.bat b42aa.bat b42a.bat
b42.bak b42.bat b42b.bak b42b.bat
b42e.bat b42rc.bat b430.bat b430t.bat
Backup bb.bat bb.lin bfat.bat
bha.bat bh.bat bhb.bat bhe.bat
Book1.xls Boot bootex.log bootlog.prv
bootlog.txt busybox cardsoft Cardsoft3
Cardsoft4 cardsoft.exe cardwiz choice.exe
cimg1911.jpg command command.com csalloc
devload.com devx devx_430.sfs disk2.tgz
dos driver drvspace.bin edit.com

--- More --- Press ENTER to continue

fdlinux flopper fruscr_init Grub
grub.exe himem.sys img19.jpg initrd.gz
initrd_unl init.txt io.sys July8
June10old June9 kernel_41 Laptop2.JPG
Laptop.JPG linld linld.com linux
ls120 ls120fil lwp_archive lwpDec27
md5_puppy-unleashed-core-4.2.1.tar.txt menu.lst mke2fs mousedrv.ini
mouse.exe msdos.sys nu p421.lin
p421t.lin p421tt.lin p430.lin p430t.lin
pcm320 pcmcia pup_421.sfs puppy-4.2.1-k2.6.25.16-seamonkey.iso
pup_save.2fs pupsave.2fs QB45_2009 results
sav2_initrd.gz sav_initrd.gz sav_vmlinuz shsurdrv.exe
sva2_vmlinuz sys425.cfg syssoft t.bat
test.bat tomsrtbt tt1.bat tt.bat
ttt.bat uclibc untitled.txt usbflash
vmlinuz x.bat xtgold zp430305.sfs

Press ENTER to continue

Found ext partition sdb1.

Found Puppy file(s) in this partition:

1pupsave-freebasic.2fs
pup_421.sfs
pup-430.sfs
pup_save.2fs
pupsave-430.2fs

Press ENTER to continue

Contents of sdb1 root directory are:

1pupsave-freebasic.2fs 2up_save.2ff 421initrd.gz 421vmlinuz
boot devx_421.sfs devx_430.sfs fbctest
freeBASIC-0.18.4.pet info initrd.gz isos
lost+found pup_421_md5sums.txt pup_421.sfs pup-425.iso
pup-430.iso pup430md5sums.txt pup-430-recycle.iso pup-430-recycle-iso-md5sum.txt
pup-430-recycle_old.iso pup-430.sfs pup_save.2fs pupsave-430.2fs
pupswap.swp $RECYCLE.BIN results vmlinuz
zp430305.sfs

Press ENTER to continue

Cannot find any iso partitions.

Press ENTER to continue

Do you want to save this information anywhere?

As a reminder, here is a summary of the partitions:

Partition    Type    Size
/dev/sda1    ntfs    957312960
/dev/sda2    ntfs    19456000
/dev/sdb1    ext2    976767056
/dev/sdc1    vfat    8016372

Do you want to save this information anywhere? (YES/NO)
YES
Enter a partition to save it to. The information will be
saved in a directory under the root directory called 'info'.
Example: enter 'sda1'
sdc1
Save finished.

Done
#


/// Edited October 14

I made a few minor changes to enhance readability, etc.

///
pupinfo.tar.gz
Description  pupinfo shell script Oct 14 version - add to initrd.gz
gz

 Download 
Filename  pupinfo.tar.gz 
Filesize  1.56 KB 
Downloaded  242 Time(s) 
Back to top
View user's profile Send private message 
Crash


Joined: 09 Dec 2005
Posts: 425
Location: Garland, TX

PostPosted: Thu 22 Oct 2009, 23:47    Post subject:  

In the absence of any comments, I am adding my own:

This script doesn't do anything on its own, and isn't useful to its intended audience - the newcomer. Here's why:

A newcomer won't know what to do with this script. Since the newcomer is only at the point of trying to get Puppy running for the first time, they are in no position to do more esoteric things like modify the initrd.gz to insert this script. So unless the script was included within the distribution, it wouldn't be useful.

Quote:
Dr. Strangelove: Of course, the whole point of a Doomsday Machine is lost, if you keep it a secret! Why didn't you tell the world, EH?
Ambassador de Sadesky: It was to be announced at the Party Congress on Monday. As you know, the Premier loves surprises.


Even if this script was included in the distro, it wouldn't do any good stand-alone. The init script would also have to be edited to make reference to it. Otherwise, it would exist, and be available, but the newcomer wouldn't know it was there. A great example of that is the inclusion in version 4.3 of a script in /sbin called "debug_init", that does many of the same things as this pupinfo script. How many of the readers of this post know that the debug_init script even exists? It isn't referenced in the readme file, nor have I seen any reference in Barry's blog, although I haven't read every piece of it. So it is there but doesn't really do any good.

At any rate, I think there is great value in including a script that runs from the Kernel's command prompt in the event that Puppy cannot be fully launched. But its existence and usefulness needs to be made evident. Something as simple as a message in the init script when it drops into the command prompt like "if the user wants to look more closely at the hardware that the Kernel recognizes, they can type 'debug_init" or 'pupinfo'". Something. Anything. Having a message that the teletype machine isn't connected isn't too useful. My teletype machine hasn't been connected since 1978.

Anyway, I guess I jumped right from the problem, which was "what to do when "Can't find pupxxx" file" to a design solution without going through the rest of the development stages - iterative discussion on how to approach the problem, suggested methods of attack, etc. I made a solution that made sense to me, but was lost in the tall grass of issues surrounding it.

Anyway, I'm rambling. I'm much better at writing code than actually communicating in English. Maybe what I'm saying makes sense to others, maybe not. At any rate, the whole purpose was to create something that would allow more people who have limited experience with Linux to get Puppy Linux running for the first time. If you can get someone to be successful the first time, you will have a repeat customer who gets a lot of benefit from the experience. In short, you get a convert. Wow, sounds pretty religious, doesn't it?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.0632s ][ Queries: 13 (0.0094s) ][ GZIP on ]