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 20 Sep 2014, 02:11
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Puppy won't load over PXE network (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Author Message
raffy

Joined: 25 May 2005
Posts: 4765
Location: Manila

PostPosted: Sun 20 May 2007, 07:39    Post subject: Success!  

Success! The test machine booted without problems and saved to USB flash on shutdown. On reboot, it was initially unable to use the pup_save settings (a failed read from the same saved-to USB device), so I used another USB device. The values below combine the outputs from the two trials (the bold values show changed values in the second successful attempt).

Here again are the files:

bootinit.log
USB-Storage: Loading usb-storage module
USB-Storage: Detecting connected device(s)... 1 2 3 4 5
USB-Storage: Device scan complete, found 0 1 devices
PDEV1=sda1
FSTYPE=vfat
PUPSFS=ext2,root,/pup_216.sfs
DEV1PUP=
PUPSAVE=vfat,sda1,/pup_save.2fs
ZDRV=
umount: cannot umount /mnt/dev_ro1: Invalid argument (this line is not present in the successful boot)
e2fsck 1.38 (30-Jun-2005)
ext2fs_check_if_mount: No such file or directory while determining whether /dev/loop1 is mounted.

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/loop1: 186/16384 files (0.0% non-contiguous), 4284/65536 blocks
ls: *_216.sfs: No such file or directory
Cleaning out /tmp...


PUPSTATE
PUPMODE=5 13
PDEV1='' 'sda1'
DEV1FS='' 'vfat'
PUPSFS='ext2,root,/pup_216.sfs'
PUPSAVE='' 'vfat,sda1,/pup_save.2fs'
PMEDIA='xxx' 'usbflash'
SATADRIVES=''
#these directories are unionfs layers in /initrd...
SAVE_LAYER='' '/pup_ro1'
PUP_LAYER='/pup_ro2'
#The partition that has the vfat,sda1,/pup_save.2fs file is mounted here...
PUP_HOME='/mnt/dev_save'
#(in /initrd) ...note, /mnt/home is a link to it.

df and mount

sh-3.00# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 90975 90415 560 99% /initrd
/dev/loop0 71808 71808 0 100% /initrd/pup_ro2
tmpfs 119880 4472 115408 4% /initrd/pup_rw
unionfs 191688 76280 115408 40% /
(trial 2 has same values up to /dev/loop0)
/dev/sda1 255716 173976 81740 68% /initrd/mnt/dev_save
/dev/loop1 63461 2210 61251 3% /initrd/pup_ro1
tmpfs 119880 3108 116772 3% /initrd/pup_rw
unionfs 255148 77128 178020 30% /


sh-3.00# mount
/dev/root on /initrd type ext2 (rw)
/dev/loop0 on /initrd/pup_ro2 type squashfs (ro,noatime)
tmpfs on /initrd/pup_rw type tmpfs (rw)
unionfs on / type unionfs (rw,dirs=/initrd/pup_rw=rw:/initrd/pup_ro2=ro,debug=42 94967295,delete=whiteout)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /mnt/sda1 type vfat (rw,fmask=0022,dmask=0022,codepage=cp437,iochar set=iso8859-1,shortname=mixed)

sh-3.00# mount
/dev/root on /initrd type ext2 (rw)
/dev/loop0 on /initrd/pup_ro2 type squashfs (ro,noatime)
/dev/sda1 on /initrd/mnt/dev_save type vfat (rw,noatime,fmask=0022,dmask=0022,co depage=cp437,iocharset=iso8859-1)
/dev/loop1 on /initrd/pup_ro1 type ext2 (rw,noatime)
tmpfs on /initrd/pup_rw type tmpfs (rw)
unionfs on / type unionfs (rw,dirs=/initrd/pup_rw=rw:/initrd/pup_ro1=ro:/initrd/ pup_ro2=ro,debug=4294967295,delete=whiteout)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)


Cheers!
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sun 20 May 2007, 10:28    Post subject:  

Great! before I officially release it though, as "humongous initrd 2.16final", I will examine this:
PDEV1='' 'sda1'
DEV1FS='' 'vfat'
...although it works, sda1 is not really the boot partition and I don't like PDEV1 being set to sda1. It doesn't seem to do any harm, but I'll examine the logic in the init script.

Note, I don't really know what to set PDEV1 to, to accurately reflect that it's a PXE boot. On the first boot, before creating the pup_save file, it comes up as set to nothing, which seems like it might be appropriate? Ditto, DEV1FS initially comes up set to nothing.
Back to top
View user's profile Send private message Visit poster's website 
steven

Joined: 21 May 2007
Posts: 1

PostPosted: Mon 21 May 2007, 23:37    Post subject:  

BarryK wrote:
Raffy, Steven,
Okay, try the humongous '2.16rc2':
ftp://ibiblio.org/pub/linux/distributions/puppylinux/test

Hopefully, you should not get the error message at bootup, then at shutdown it should ask if you want to save the session. Then more hopefully, it will load the pup_save file at next bootup. You could use a usb flash drive for the pup_save file.


Barry, yes, now it works here. No more error messages and never have to wait for 60 secs. Thank you very much.
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4765
Location: Manila

PostPosted: Tue 22 May 2007, 06:47    Post subject: Welcome  

Welcome to the forum, Steven!

Thanks to your support, this feature is now added to Puppy 2.16.

(For the reader's info, Steven initiated the creation of "humongous initrd" for Puppy Linux, please see this thread in Barry's developer blog.)

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
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.0576s ][ Queries: 12 (0.0050s) ][ GZIP on ]