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 Tue 20 Aug 2019, 12:26
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Need script for USB -> full install
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 6 [80 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
starhawk

Joined: 22 Nov 2010
Posts: 5056
Location: Everybody knows this is nowhere...

PostPosted: Mon 04 Apr 2016, 13:08    Post subject:  

May need to run updater within PPM to get it to work... I don't remember... probably.

gnu-fdisk_1.2.5-2 installs for me. Now to see if it works... Wink

On the netbook and out of the house, so replies will be unusually terse and infrequent.

EDIT: well, that's pretty useless Embarassed let's see if I can get gdisk to install...

_________________

Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 5056
Location: Everybody knows this is nowhere...

PostPosted: Mon 04 Apr 2016, 13:17    Post subject:  

Package gdisk_0.8.8 installs fine for me -- you need to update the repository info.

Default PPM window -> wrench-n-screwdriver icon, upper LH corner -> "Update database" tab -> "Update now" button... grab a cuppa, but take the comp with you, you need to press [ENTER] (and NO other key!) at each prompt for updates (it shouldn't need that level of interactivity IMO but it has it). When done, [ENTER] closes, and PPM restarts -- this time with the correct package retrieval info.

_________________

Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Tue 05 Apr 2016, 10:17    Post subject:  

starhawk wrote:
Package gdisk_0.8.8 installs fine for me -- you need to update the repository info.


I actually tried that however when I hit <Enter> the window closed and
nothing was updated.

Anyway this is a little bit aside from the main issue.

I will drop further investigations in how to get PARTUUID since
root=/dev/sdxx will work if you name sdxx right example sdc1
and provide "rootwait" option.

I will output a reminder from install script at the end where it says
it's time for grub4dos something like
Quote:

If you intend to boot from a USB memory device then don't forget to
add rootwait to extra? options


will research the exact wording of course
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Tue 05 Apr 2016, 14:23    Post subject:  

Here is a version of the script that is working for me: puppy_full_installer

It works both with legacy support and without (running with -n parameter).

It uses unsquashfs instead of loop mount & cp.
I don't know if that is a problem.
Is unsquashfs present on most puppies?

If you run into trouble define DEBUG for more verbose output

like so

Code:
export DEBUG=true && ./puppy_full_installer


Request For Comments
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 5056
Location: Everybody knows this is nowhere...

PostPosted: Tue 05 Apr 2016, 15:57    Post subject:  

Output from run of new script... I don't think it worked Sad

Code:
root# ./puppy-full-installer.sh
I assume you have formatted the drive to ext(2,3,4)
I'm not babysitting so if it isn't do it now!
Is it? (y or n + [Enter/Return])
y
Assuming you are not stupid...
OK, remember.. I'm not responsible here...
Proceeding...

Insert your drive and mount it.
Then tell me the target drive partition (eg: sdc1, sdd1 etc)
GET IT RIGHT!
what is the drive partition?
sdd1
Seems sane..
Ok, /mnt/sdd1 exists. Good.

Now we need some source files
either mount a CD/DVD or an ISO file
THEN, tell me the mount point path
EXAMPLE: /mnt/sr0 or /mnt/+mnt+sda5+iso+tahr64-6.0.3.9.iso
An easy way to do that is enter the mounted folder and type 'pwd' in a terminal
Type the source mount point path.
/mnt/+root+Downloads+X-tahr-1b3.iso
Seems sane..

Install from /mnt/+root+Downloads+X-tahr-1b3.iso to /mnt/sdd1
Press y + [Enter/Return] to continue
y
---------------------------------------------------------------

Decompressing: /mnt/+root+Downloads+X-tahr-1b3.iso/puppy_tahr_6.0.2.sfs
To target: /mnt/sdd1

please have patience.

Parallel unsquashfs: Using 2 processors
20527 inodes (24780 blocks) to write

[===========================================================/] 24780/24780 100%
created 14790 files
created 1761 directories
created 5402 symlinks
created 335 devices
created 0 fifos

Decompressing: /mnt/+root+Downloads+X-tahr-1b3.iso/zdrv_tahr_6.0.2.sfs
To target: /mnt/sdd1

please have patience.

Parallel unsquashfs: Using 2 processors
2918 inodes (3190 blocks) to write

[=============================================================/] 3190/3190 100%
created 2909 files
created 596 directories
created 9 symlinks
created 0 devices
created 0 fifos
Upgrading tahrpup to version 6.0.2...
Updating w.m. menus...
grep: /etc/xdg/templates/_root_.jwmrc: No such file or directory
Updating boot and shutdown system scripts...
Executing depmod, to update module files...
/bin/kmod
depmod: ERROR: could not open directory /lib/modules/3.17.4: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
find: warning: you have specified the -noleaf option after a non-option argument -path, but options are not positional (-noleaf affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

Updating /etc/networkmodules...
grep: /lib/modules/3.17.4/modules.dep: No such file or directory
cat: /lib/modules/3.17.4/modules.dep: No such file or directory
gtk-update-icon-cache: Cache file created successfully.
Files being translated:
 /etc/rc.d/functions4puppy4
 /etc/rc.d/rc.sysinit
 /etc/rc.d/rc.update
 /etc/rc.d/rc.country
 /usr/local/petget/0setup
Files being translated:
 /root/Choices/ROX-Filer/PuppyPin
cp: cannot stat '/root/Choices/ROX-Filer/PuppyPin': No such file or directory
 /root/.jwmrc-tray
cp: cannot stat '/root/.jwmrc-tray': No such file or directory
+ '[' '!' /root ']'
+ '[' /root = / ']'
+ export HOME
+ '[' -f /root/.jwm/menuheights ']'
++ find /etc/profile.d -name '*.csh'
+ CSH=
+ '[' '' ']'
+ '[' en_US.UTF-8 = C ']'
++ echo -n en_US.UTF-8
++ cut -f 1 -d _
+ LANG1=en
++ tr '\n' ' '
++ ls -1 /etc/xdg/templates
+ TEMPLATES=
++ which variconlinks
+ '[' ']'
++ which tempicons
+ '[' ']'
++ which fbpanel_menu_refresh
+ '[' ']'
++ which lxpanel_menu_refresh
+ '[' ']'
++ which jwm2fluxbox
+ '[' ']'
++ which obmenu-refresh
+ '[' ']'
++ which jwm2pekwm
+ '[' ']'
++ which xfce4-panel
+ '[' /usr/bin/xfce4-panel ']'
+ xfce4-panel -r

(process:23454): Gtk-WARNING **: Locale not supported by C library.
   Using the fallback 'C' locale.
+ gtk-update-icon-cache -f -i /usr/share/icons/hicolor
gtk-update-icon-cache: Cache file created successfully.
+ touch --no-create /usr/share/applications/
rmdir: failed to remove ‘/mnt/+root+Downloads+X-tahr-1b3.iso’: Device or resource busy
---------------------------------------------------------------

Hopefully we're done ...

Do not forget if your target is a USB drive then add "rootwait"
in the Options textbox in grub4dos-config window with title:

"Grub4DosConfig - List of detected operating systems"

It is essential for a successful boot.

now run grub4dos-config to make it bootable.
root#

_________________

Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Tue 05 Apr 2016, 16:54    Post subject:  

starhawk wrote:
Output from run of new script... I don't think it worked Sad


How did it look in sdd1?

Could you do the export DEBUG=true before another run?


Are these error what you mean by not working?

Code:

Upgrading tahrpup to version 6.0.2...
Updating w.m. menus...


grep: /etc/xdg/templates/_root_.jwmrc: No such file or directory

Executing depmod, to update module files...
/bin/kmod
depmod: ERROR: could not open directory /lib/modules/3.17.4: No such file or directory
depmod: FATAL: could not search modules: No such file or directory



find: warning: you have specified the -noleaf option after a non-option argument -path, but options are not positional (-noleaf affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

Updating /etc/networkmodules...
grep: /lib/modules/3.17.4/modules.dep: No such file or directory
cat: /lib/modules/3.17.4/modules.dep: No such file or directory


cp: cannot stat '/root/Choices/ROX-Filer/PuppyPin': No such file or directory /root/.jwmrc-tray
cp: cannot stat '/root/.jwmrc-tray': No such file or directory



rmdir: failed to remove ‘/mnt/+root+Downloads+X-tahr-1b3.iso’: Device or resource busy


All of them except the rmdir at the end are from this line

Code:
chroot $DESTMNTPT /etc/rc.d/rc.update option2hdinstall


I also got some errors here but it did still work, heck when running with -n
it still worked

please report what you get in sdd1

and what errors when booting

or you could try running script with -n
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 5056
Location: Everybody knows this is nowhere...

PostPosted: Tue 05 Apr 2016, 19:08    Post subject:  

Screenshot of sdd1 (shows up as sdc1 because I took it out and later reinserted it) attached.

Will report boot results shortly, gotta make the attempt first Razz

EDIT: no I'm doesn't! Missing attachment has been fixed.
Screenshot.jpg
 Description   
 Filesize   40.62 KB
 Viewed   198 Time(s)

Screenshot.jpg


_________________

Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 5056
Location: Everybody knows this is nowhere...

PostPosted: Tue 05 Apr 2016, 19:14    Post subject:  

Boot attempt was a failure. "No operating system found."

I'm beginning to think that I've got a system-side controller failure here. I've ordered another WYSE system of essentially identical specs for other reasons -- when it arrives I'll be able to test that.

Let's set this aside till then, since I've not been able to get the machine to successfully boot from its IDE header in a while now.

_________________

Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Wed 06 Apr 2016, 03:19    Post subject:  

be careful when you boot and drive letter has changed.

if comp now detects it as sdc1

it may still say in menu.lst

kernel root=/dev/sdd1


anyway you forgot to run Grub4DosConfig

there is no grldr and menu.lst in screen shot
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 5056
Location: Everybody knows this is nowhere...

PostPosted: Wed 06 Apr 2016, 11:14    Post subject:  

Yeah, I figured that out.

Unfortunately -- all that did was get me "operating system not found" 'stead of a blinking cursor.

I've got a replacement box on the way... for now, I consider this to be a hardware failure.

_________________

Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Wed 06 Apr 2016, 13:16    Post subject:  

starhawk wrote:
Yeah, I figured that out.

Unfortunately -- all that did was get me "operating system not found" 'stead of a blinking cursor.

I've got a replacement box on the way... for now, I consider this to be a hardware failure.


Okay - good job then

It works good for me now.

I'll await your report on the replacement box...
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12450
Location: S.C. USA

PostPosted: Wed 06 Apr 2016, 14:10    Post subject:  

Scooby,

Just to let you know it worked for me!
Good job Very Happy

I used your latest code to do a full install of Slacko 6.3.0 to a USB flash drive.

Posting from it now!!!

If you want to work on this and make it a finished program.
There are a few tweaks to the info that would help new users.
A few minor improvements I could suggest.
Do not know if you want to give it nice windows or just leave it a terminal screen Idea

About using a Puppy full install on a USB flash drive
It opens programs slower.
Selecting stuff in a program, runs slower, if that selection requires reading data from the flash drive.
It writes more often to the flash drive, than a normal frugal installed Puppy..

Probably all of this slowness is caused by the read speed of the flash drive and the USB connection.
Mine is USB 2.
Also, a full install does not load much into memory on boot-up.
Only the basic Puppy operating system is in memory.

However, Linux is about options.
You just gave Puppy another install option!!

Thanks!!!!!

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12450
Location: S.C. USA

PostPosted: Wed 06 Apr 2016, 14:22    Post subject:  

Scooby,

Your code is small enough, that you can make it into a pet package and post it to this forum.

I think 200KB is the max size limit for the forum.
Your code is much smaller than that.

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601

Last edited by bigpup on Wed 06 Apr 2016, 14:57; edited 1 time in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12450
Location: S.C. USA

PostPosted: Wed 06 Apr 2016, 14:49    Post subject:  

Scooby,

We are thinking about adding this option to YaPI.
Your code shows it is workable.

If you want to help with YaPI, please help!!!!
http://www.murga-linux.com/puppy/viewtopic.php?t=101127

If you want to keep it your own program, that is also a good thing Exclamation

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Thu 07 Apr 2016, 02:23    Post subject:  

bigpup wrote:

If you want to work on this and make it a finished program.
There are a few tweaks to the info that would help new users.
A few minor improvements I could suggest.
Do not know if you want to give it nice windows or just leave it a terminal screen Idea

Sure if you hav any good suggestions I am willing to cooperate.
Nah I think it should be a terminal program

Others like yapi can do the full userfriendliness thing

bigpup wrote:

Your code is small enough, that you can make it into a pet package and post it to this forum.


Sure I could do that but then again downloading one script file from a gist
works equally well


bigpup wrote:

We are thinking about adding this option to YaPI.
Your code shows it is workable.

You are more than welcome too

This script was basically 01Micko's to start with. I stole some from Yapi
and did some patching.

I just wanted to help starhawk was all.

If you have any questions about code I will try to help you

Anyway I am a commandline kind of guy and I did try out yapi
as a part of this project. It is userfriendly but took an awful lot of time
searching hdd's, was a bit annoyed with that. Then I looked at code
and found you could use it in terminal so for me that's good

If I did a
Code:
yapi /path/to/Xtahr.iso sdc sdc1


and filled in "rootwait" in grub4dosconfig step I am sure this also would boot, right?

maybe would not be a full install, cannot remember?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 6 [80 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.1670s ][ Queries: 13 (0.0307s) ][ GZIP on ]