Install to USB script?

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Install to USB script?

Post#1 by Ahau » 21 Jan 2011, 15:57

I was thinking last night that, if possible, it might be useful to have a script that would automate the installation of Porteus to a USB drive, from a CD.

For example, the standard Porteus .iso file could include a script saved as a module that is only loaded when Porteus is run on a CD (put in /porteus/optional and loaded with the load= cheatcode). This module would place an item on the desktop, called "Install Porteus to USB Drive" or something similar.

Upon double clicking, the script would open a console, prompt the user to plug in a usb device, detect the device's location (e.g. sdb), inform the user that they are about to install Porteus on device sdb (if details about the size and brand of the device could be given to verify it's the right device to the user, that would be great), then copy /boot and /porteus from the cd to the specified device and finally, run the bootinst.sh script on the device (if it could also detect the device's filesystem and run a script to install extlinux if it's a linux fs, that would be great, too, but this would mostly be for windows users).

Now, personally, I'd still rather manually move the files and run the install script myself, but new users (especially windows users) may be a little intimidated by finding a way to extract the files from an .iso file and running an install script through windows. Burning a CD, rebooting, and clicking on an icon would be easier, and would provide an end run around all of the administrative privilege issues in Windows.

Of course, this is an idea coming from someone who doesn't know how to script (or if scripting this is even possible, without potentially hosing the user's MBR on occasion)....

Thoughts?
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
X-Factor
Black ninja
Black ninja
Posts: 88
Joined: 29 Dec 2010, 23:19
Location: bali, indonesia

Re: Install to USB script?

Post#2 by X-Factor » 21 Jan 2011, 16:40

:good: the less painfull for TOTAL newbies installing porteus the quicker we'll catch up with other distro 8)
I've been confine to my quarter
http://img143.imageshack.us/i/medusathing.jpg/

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Install to USB script?

Post#3 by fanthom » 21 Jan 2011, 18:01

@Ahau
give a chance to Porteus-2-usb script from Kmenu which does similar thing.

I agree on Readme/Installation.txt file included in the default ISO which could help windows users with installation on the stick. I'm still hoping to get G4D installer for windows users so no point for creating this Readme file now.
Please add [Solved] to your thread title if the solution was found.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Install to USB script?

Post#4 by Ahau » 22 Jan 2011, 00:44

Oh, you already wrote the script, and I didn't see it! My apologies!
Please take a look at our online documentation, here. Suggestions are welcome!

Post Reply