The time now is Mon 20 May 2013, 22:21
All times are UTC - 4 |
| Author |
Message |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Mon 19 Dec 2011, 16:56 Post subject:
USB Install not seeing save file [SOLVED] Subject description: Using multiple option usb config |
|
wasn't sure where to post this...didn't look right on the NOP Racy thread..
Racy NOP 5.2.2 is not seeing my save file. I'm using a USB boot, it boots great, but doesn't give any initial options upon boot (pfix=ram or any of that). it acts like it is looking for the save file but it is not seeing any save files (tried plugging in different flash drives with other ones on it).
The usb is configured to have two partitions as a multiple option usb (can't remember the exact phrasing; the one that is supposed to look like an external harddrive, floppy and zip drive all at once). The entire usb is 1gig, the first partition like 150mb, then the save file is on the other partition.
Any advise?
Last edited by steve_s on Tue 20 Dec 2011, 11:18; edited 1 time in total
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Mon 19 Dec 2011, 17:36 Post subject:
|
|
On a hard drive frugal I'd use psubdir in grub to direct to the save file...can that be done even on a usb install (no grub)? Don't know how to 'direct' to this savefile on the second usb partition...
|
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 919 Location: Queensland Australia ɹǝpu∩uʍop
|
Posted: Mon 19 Dec 2011, 18:20 Post subject:
|
|
| steve_s wrote: | | On a hard drive frugal I'd use psubdir in grub to direct to the save file...can that be done even on a usb install (no grub)? Don't know how to 'direct' to this savefile on the second usb partition... |
Hi steve_s,
Try this, on the usb drive in the syslinux.cfg add this then it will think it's a CD and look for saves. | Code: | #default vmlinuz initrd=initrd.gz pmedia=usbflash
default vmlinuz initrd=initrd.gz pmedia=cd pfix=copy nosmp |
I'm sure it only will look on the USB partition that it is installed on for saves if in USB mode.
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7018 Location: qld
|
Posted: Mon 19 Dec 2011, 18:23 Post subject:
|
|
Try appending the psubdir arg to the kernel line in extlinux.conf or syslinux.cfg (depending whether your stick is ext or vFAT). It should work.
Also, I think shinobar did a good post somewhere on installing grub4dos to usb, I did try it at one point and it worked well.
HTH
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Tue 20 Dec 2011, 10:35 Post subject:
|
|
| Geoffrey wrote: | Try this, on the usb drive in the syslinux.cfg add this then it will think it's a CD and look for saves. | Code: | #default vmlinuz initrd=initrd.gz pmedia=usbflash
default vmlinuz initrd=initrd.gz pmedia=cd pfix=copy nosmp |
|
Ok, gotta try that one...that's a good idea...
| 01micko wrote: |
Try appending the psubdir arg to the kernel line in extlinux.conf or syslinux.cfg (depending whether your stick is ext or vFAT). It should work.
|
To say what? This is the modification that I was looking for...its vfat, fyi...
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Tue 20 Dec 2011, 11:13 Post subject:
|
|
One man's cheat is another man's solution, or something...
Ok, gonna try the mod's mentioned above, but yesterday I got it to work by cheating.
Problem: the usb mode was causing it to use only save files in the same partition that the boot files were on. The configuration of the flash drive was like 141mb on one partition and 800mb on the other partition, so i had my save file on the 800 partition, but the boot files weren't seeing it. I had created this flash drive configuration using the USB/flash configuration tool found in Puppy (called bootable usb or something) and selected the multi boot option (the one that lets your drive look like an external hard drive, cd, etc.).
I just needed the first partition to be bigger so that I could put the save file there.
So i changed the script from here and changed all the things that said 140mb to 800mb and changed the line that reads
| Code: |
dd if=/dev/zero of=${WKGPATH}/image..
|
and changed the count= part from what it was (like 137162 or something) to 800000.
Then ran the script.
This did just what I wanted in that basically made the first partition 800 mb and the rest as the second partition. I put the boot files there along with the save file and it sees it all fine.
I'm still gonna try the other options as my method is a bit of a hack and doesn't really fix the issue, just went around it.
I'll attach the modified code later when I can figure out how to archive it in a gz file (I'm in Win7 now and don't know what the native archive program is..ugh).
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Tue 20 Dec 2011, 11:17 Post subject:
|
|
It should be noted that to do the hack that I did I had multiple drives going and I booted from a different flash so that I could modify the one that I wanted to modify. I had mentioned that before although I would think that would be pretty clear...just didn't want someone trying to boot from the usb they were going to modify as that might turn out to be disastrous.
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Tue 20 Dec 2011, 11:29 Post subject:
|
|
Here is the modified program that I did, assuming I can attach a zip file...
In my opinion, when you unpack this, don't install it, just set it aside somewhere. Then, when you want to run it, just cd to that directory in your terminal and run it via ./bigusbboot.
| Description |
|

Download |
| Filename |
bigusbboot.zip |
| Filesize |
7.32 KB |
| Downloaded |
85 Time(s) |
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Tue 20 Dec 2011, 12:03 Post subject:
|
|
The problem I'm running into with modifiying syslinux.cfg is that I can tell it where to look for all the files but not JUST the save file besides in the first directory (psubdir doesn't go past one directory level). Forum member rhadon outlines it pretty well here.
Here is what syslinux.cfg says right now:
| Code: |
default vmlinuz initrd=initrd.gz pmedia=usbflash
|
So how can it be modified to point to a different directory for the save file?
In other words, I could tell it to look in a different partition like this:
| Code: |
default vmlinuz initrd=initrd.gz PDEV1=sdb4 pmedia=usbflash
|
but that would make it look for the boot files there also, not just the save file.
Ideas?
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Tue 20 Dec 2011, 14:30 Post subject:
|
|
Ok, our Aussie friend was right on the money: Geoffrey, your suggestion appears to be the easiest solve to this right now.
So: open syslinux.cfg and modify the line and change:
to
this simply, according to Geoffrey, has puppy search around, as if it were a cd, looking for save files. It worked great and found the one I had on the second partition of the flash drive, actually designated as sdb4. It should be noted that I didn't have any other save files on the hard drive or anywhere else, so don't know how this would respond to that, assume it would give you the option to pick.
Other solutions? Some way to point directly to a save file on a partition? Would like to know how to do that.
Also, instead of going through the hack job I did on that program earlier, one would think that you could simply run gparted and use it to resize the partitions, making certain you weren't using them at the time, of course.
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Sat 31 Dec 2011, 18:06 Post subject:
|
|
Observation: the pmedia to cd method doesn't work on my old laptop. Granted, the laptop is having Grub (on the internal hard drive) point to the flash drive and boot it that way, so that may be a factor.
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1543 Location: Austin, TX, USA
|
Posted: Sat 31 Dec 2011, 18:18 Post subject:
|
|
| steve_s wrote: | | Observation: the pmedia to cd method doesn't work on my old laptop. Granted, the laptop is having Grub (on the internal hard drive) point to the flash drive and boot it that way, so that may be a factor. |
And just figured that one out: I change the line in grub that booted to the flash drive from pmedia=usbflash to pmedia=cd. Remember, in the case of my laptop, this grub, which is on the internal hard drive, is pointed to the flash drive, so changing this line didn't make sense to me. But with this flash drive configuration it works.
|
|
Back to top
|
|
 |
|
|
|
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
|