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, 15:17
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to boot Puppy on USB flash from NTFS partition
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Author Message
tempestuous

Joined: 10 Jun 2005
Posts: 5234
Location: Australia

PostPosted: Fri 16 Sep 2005, 09:31    Post subject:  How to boot Puppy on USB flash from NTFS partition  

At http://www.murga.org/~puppy/viewtopic.php?t=1058 drj explained how to boot Puppy Type 1 HD install from an NTFS partition using Grub4DOS/Grub4NTLDR.
This technique can be used to boot Puppy from USB flash drive, too.
For those of us with an existing Window$ installation on a single NTFS partition, and a BIOS which cannot boot directly from a USB device, this is ideal because -
1. no need to boot via floppy
2. no need to create a linux partition on the hard drive
3. no need to mess with the hard drive's Master Boot Record.
4. no need to make the USB flash drive bootable.

There are just 4 files to add to the C drive, less than 8MB in total.

Here is a quick HowTo.
(See http://marc.herbert.free.fr/linux/win2linstall.html for thorough explanation of Grub4DOS.)

Boot your Window$ NT/2k/XP installation.
Get Grub4DOS here http://sarovar.org/project/showfiles.php?group_id=320&release_id=507
Extract the files using WinZip. We only need the Grub4NTLDR component - grldr. Copy grldr to C:\
From the Puppy CD (or ISO) copy vmlinuz and image.gz to C:\boot\
From the Puppy CD (or ISO) copy usr_cram.fs to the flash drive (a pupfile will be created on the flash drive the first time it is booted).

Create a text file with notepad called menu.lst in C:\boot\grub\ This is what it should contain -

default 0
timeout 0

title Puppy USB
rootnoverify (hd0,0)
kernel (hd0,0)/boot/vmlinuz root=/dev/ram0 PSLEEP=25 PFILE=pup100-none-262144 PHOME=sda
initrd (hd0,0)/boot/image.gz
boot


Now open C:\boot.ini in notepad (boot.ini may be hidden, and you can back up this file first if nervous), add this text -

C:\grldr="GRUB Puppy USB"

Next time you boot Window$ you will see this extra option.
Back to top
View user's profile Send private message 
Jee
Guest


PostPosted: Wed 22 Feb 2006, 10:36    Post subject: Error message  

Hi,

I tried the steps above to have puppy booting from my USB drive, but unfortunately, it doesn't work.
I always got the following message:

"FAILED TO LOAD USB BASE DRIVER MODULE"

Any idea of how to fix that ?

(My config is a dell latitude with XP on NTFS partition.)

Thanks
Back to top
Max Raign
Guest


PostPosted: Fri 24 Feb 2006, 01:29    Post subject: Does that really work?  

Hello,
I have a doubt on that. Does this really work if the Mother board has not an option to boot from the USB port? I mean the BIOS. Because I have tried different thumb drives (about 15 makes), and failed to do so. So please post that if you can boot without a compatibe BIOS.
Regards
Max
Back to top
Valiantineus

Joined: 05 Apr 2006
Posts: 1

PostPosted: Wed 05 Apr 2006, 20:24    Post subject: Does it work or not?  

Hello,
I was wondering if anybody has had success with this method. My Bios does not allow booting from usb, but I really don't want to carry a fragile (not to mention cumbersome) cd around with for when I want to use linux. All other options are unacceptible to me as well for various reasons. So, if there are any success stories out there, please don't hesitate to brag about it. Wink

Thanks
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5234
Location: Australia

PostPosted: Thu 06 Apr 2006, 06:30    Post subject:  

Sorry, slight error in my original instructions - "PHOME=sda" is wrong, it should be "PHOME=sda1"
Also, the forum's text formatting may be showing a line break when there shouldn't - the line starting with "kernel" is followed by the line starting with "initrd".

I just tried this now with Puppy 1.0.7 and it works fine on a Pentium2 motherboard circa 1999. The onboard USB1.0 port works, and so does the PCI-card-USB2.0 port.

Max Raign wrote:
Does this really work if the Mother board has not an option to boot from the USB port?

Yes, because the process I have described boots the kernel and initial ramdisk from hard disk. Then the filesystem (usr_cram.fs) and persistent storage (pup100) are accessed from the USB drive.
Back to top
View user's profile Send private message 
slvrldy17

Joined: 17 Feb 2006
Posts: 292
Location: Mid western USA

PostPosted: Thu 06 Apr 2006, 10:05    Post subject: A question...  

For the sake of an easily confused newbie could you clarify one point? Are the lines in your instructions starting with "kernel" and "initrd" supposed to be one continuos line or two with no extra spaces between them?

Thanks,

Alice
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5234
Location: Australia

PostPosted: Thu 06 Apr 2006, 10:16    Post subject:  

Two.

title ...
rootnoverify ...
kernel ...
initrd ...
boot
Back to top
View user's profile Send private message 
slvrldy17

Joined: 17 Feb 2006
Posts: 292
Location: Mid western USA

PostPosted: Thu 06 Apr 2006, 10:30    Post subject: Thanks...  

Thank You Tempestuous! I may give this one a shot when things quiet down a bit. It's been a zoo the last couple of weeks. I'll let y'all know how it comes out if I do.

Thanks,

Alice
Back to top
View user's profile Send private message 
tetraform

Joined: 15 Apr 2006
Posts: 1
Location: Vancouver Canada

PostPosted: Sun 16 Apr 2006, 00:18    Post subject:  

Hurray!! It works for me on my IBM T22 laptop. If it doesn't work at first just keep going over it and you'll probably find you just made a little mistake somewhere setting it up. Very Happy
Back to top
View user's profile Send private message 
shankargopal

Joined: 03 Dec 2005
Posts: 295

PostPosted: Mon 29 May 2006, 12:05    Post subject:  

I had actually come up with this independently, and it works fine.

By the way some of you who are having problems may be having them because your USB drive is not sda or Puppy is not on the first partition of the drive (sda1 - unlikely but possible).

The easiest way to test this may be to use this line instead of tempestuous' suggested line:

kernel (hd0,0)/boot/vmlinuz root=/dev/ram0 PSLEEP=25 PFILE=ask

Puppy will then boot and ask you which partition you want to use, including both your hard dirves and your flash drive (or it should, if all works properly). Then choose your USB drive as per the instructions and type "pup100" at the prompt for the file name.

This has worked fine for me on multiple computers. I use it all the time.
Back to top
View user's profile Send private message 
gianni76

Joined: 04 Jun 2006
Posts: 1

PostPosted: Sun 04 Jun 2006, 17:25    Post subject:  

Can anyone say how to adapt this to work with Puppy 2?
Also:
a) should the USB key be formatted in some way before putting the programs up?
b) what size USB is sufficient?
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5234
Location: Australia

PostPosted: Sun 04 Jun 2006, 22:00    Post subject:  

From the Puppy CD (or ISO) copy vmlinuz and initrd.gz to C:\boot\
From the Puppy CD (or ISO) copy pup_200.sfs to the flash drive.

In menu.lst, the "kernel" and "initrd" lines need to be changed:

kernel (hd0,0)/boot/vmlinuz root=/dev/ram0 PMEDIA=usbflash #(PMEDIA might not be necessary)
initrd (hd0,0)/boot/initrd.gz

I have not tried this.

gianni76 wrote:
a) should the USB key be formatted in some way before putting the programs up?

Default FAT32 formatting is fine.

gianni76 wrote:
b) what size USB is sufficient?

You need 68MB for pup_200.sfs, plus your saved data file pup_save.3fs, which has a default size of 512MB, but Puppy will create a smaller file if it sees you don't have enough space.
So who knows ... 128MB might be enough? Certainly 256MB should be fine.
Back to top
View user's profile Send private message 
Fossil

Joined: 13 Dec 2005
Posts: 576
Location: Gloucestershire, UK.

PostPosted: Wed 21 Jun 2006, 11:47    Post subject: Puppy 109CE USB boot on a Compaq Ipaq  

Puppy does it again!
I can confirm that Puppy 109CE will boot and run very easily from a 256 Meg flash drive. Even better, this computer has no CD or a floppy drive, nor a USB boot option in the BIOS..

The story goes like this. I discovered a UK-based PC dealer selling secondhand Compaq Ipaq 500 MHz machines for 14.50 GBP. The specifications were reasonable, with a 500 Mhz Intel processor, 8.4 Gig hard drive and 128 megs of RAM. So I bought one just for the fun of playing around. I then added another 128 megs of RAM. On booting the computer up, I also discovered Windows 2000 Pro NTFS was pre-installed. This did make life a bit easier.
The 256 meg flash drive I was going to use is generic (purchased from my local Co-operative store about a year ago). The semi-transparent housing shows the chip, which reads, 'BUFFALO. RUF-C256ML/U2E'. If that's of any help. I adhered to Tempestuous original boot script with one exception, changing the boot reference to the suggested, 'kernel (hd0,0)/boot/vmlinuz root=/dev/ram0 PSLEEP=25 PFILE=ask'. Everything else remained the same.
Taking the simple option, I copied Puppy 109CE's vmlinuz, image.gz and usr_cram.fs from another computer with a CD, onto the flash drive I was going to use as the host. Once the Ipaq was booted into Windows, I moved vmlinuz and image.gz from the flash drive to C:\boot\.
Then, the moment of truth.
My first boot was unsuccessful - simply because of my impatience - and failing to state that I wanted Puppy to boot from sda1. The second try started smoothly and continued to do so. I'm currently running Puppy on the USB flash drive. It was worth it. Aside from the computer's fan humming quietly away in the background, there is no other sound. Puppy 109CE, complete with Firefox, is running very sweetly.
Back to top
View user's profile Send private message 
PaulBx1

Joined: 16 Jun 2006
Posts: 2308
Location: Wyoming, USA

PostPosted: Thu 20 Jul 2006, 00:10    Post subject:  

OK, now explain to me what the point of all this is? Smile

I mean, compared to an ordinary "poor man's install", where all this stuff is on the hard drive.

The only thing I can think of, is that you can haul your USB flash around pretty easily, and run it off someone else's computer. But if you do that, you still have to mess around with their autoexec.bat and get grub set up on their machine. Hard to imagine someone going along with that...

Perhaps I am missing something here. Wouldn't be the first time. Laughing
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5234
Location: Australia

PostPosted: Sat 22 Jul 2006, 00:07    Post subject:  

Everyone has their own particular circumstances. This technique evolved in response to a private message I received from a forum member who wanted to run Puppy on their employer-owned laptop. The laptop had no floppy drive, so Bootpup could not be used.
The IT department strictly disallowed any "foreign" software on their machines, but made an exception for the 8MB of Puppy bootup files, after the forum member demonstrated how it worked on a separate laptop.

And this system can be made slightly more portable by having the necessary bootup files already on the USB drive, in the correct directories, ready to copy to a Windows machine for the first time just prior to rebooting this machine to the USB drive. This simplifies the initial setup.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0829s ][ Queries: 11 (0.0038s) ][ GZIP on ]