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 23 May 2017, 03:24
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Full Installer to USB flash drives
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [54 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
bigpup


Joined: 11 Oct 2009
Posts: 8694
Location: Charleston S.C. USA

PostPosted: Thu 14 Apr 2016, 20:14    Post subject:  Full Installer to USB flash drives
Subject description: Installer script that will do a full install to a USB drive (code developer: Scooby)
 

Full install to USB drive

Puppy runs better and faster as a frugal install to a USB device.
However, this is Linux and Linux is about options, even if they are something you normally should not do.

Thanks to Scooby for this code.

Here is a script that can do a full install to a USB flash drive and probably a USB hard drive.
This script runs from a terminal.

As base gist:
It's at https://gist.github.com/suedi/8897880a873d68ea05f5
Copy and paste into Geany
Save as... puppy_full_installer
Give execute permission
In a terminal enter: sh puppy_full_installer

As a zip file:
https://gist.github.com/suedi/8897880a873d68ea05f5/archive/9ce07f2cebd4ba64e45fd77b9d2416227168abc1.zip
Unzip
Give execute permission
In a terminal enter: sh puppy_full_installer

It runs from a terminal and is very basic.
Easy to use.
Just answer some simple questions and input the correct information that is asked.

To make USB storage device bootable.
Install a boot loader to the USB drive and make the boot menu entry look similar to this one for a USB flash drive full install.
Example:
(USB flash drive sdb1)
Boot menu entry for Grub4dos boot loader.
Code:
title Slacko Puppy 6.3.0 (sdb1/boot)
  uuid 1b94bf9f-2c37-4152-a564-52eefa24c3d3
  kernel /boot/vmlinuz root=/dev/sdb1 rootwait


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:
1. The read speed of the flash drive and the USB connection.
Mine is USB 2.
2. A full install does not load much into memory on boot-up.
Only the basic Puppy operating system is in memory.

_________________
I have found, in trying to help people, 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

Last edited by bigpup on Mon 18 Apr 2016, 01:46; edited 9 times in total
Back to top
View user's profile Send private message 
scsijon

Joined: 23 May 2007
Posts: 1203
Location: the australian mallee

PostPosted: Thu 14 Apr 2016, 22:13    Post subject:  

Is there any chance bigpup of having scooby add a section that checks size of source against required vacent space on device and erroring with a message if there is not enough? That's one thing that's always bugged me!

Other than that, from a quich scan, I think it's a nice script, I'll try it on a test system this weekend.
Back to top
View user's profile Send private message Visit poster's website 
april


Joined: 14 Sep 2013
Posts: 924
Location: Burning up on the Great Barrier Reef (Mostly Dead or Dying(me too))

PostPosted: Thu 14 Apr 2016, 22:27    Post subject:  

Just trying this .
For your perusal I list what I got -Ill take it all off in a day or two when you have had a chance to see it .
Precise 5.7.1
Reckon us stupids need a bit more info. I didn't get a bootable drive
Code:

puppy_full_installer
# puppy_full_installer
bash: puppy_full_installer: command not found
# ./puppy_full_installer
bash: ./puppy_full_installer: Permission denied
# ./puppy_full_installer
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?
sdc1
Seems sane..
Ok, /mnt/sdc1 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/sr0
Seems sane..

Install from /mnt/sr0 to /mnt/sdc1
Press y + [Enter/Return] to continue
y
---------------------------------------------------------------
cp: cannot stat `/mnt/sr0/vmlinuz': No such file or directory
ls: cannot access /mnt/sr0/*.sfs: No such file or directory
mv: cannot stat `/mnt/sdc1/vmlinuz': No such file or directory
losetup-FULL: failed to setup loop device: Is a directory
mount: /dev/loop2: can't read superblock
cp: cannot create directory `/mnt/sdc1/lib/modules/3.9.11/': No such file or directory
WARNING: Couldn't open directory /mnt/sdc1/lib/modules/3.9.11: No such file or directory
FATAL: Could not open /mnt/sdc1/lib/modules/3.9.11/modules.dep.temp for writing: No such file or directory
./puppy_full_installer: line 130: /mnt/sdc1/etc/rc.d/PUPSTATE: No such file or directory
./puppy_full_installer: line 131: /mnt/sdc1/etc/rc.d/PUPSTATE: No such file or directory
cp: cannot create special file `/mnt/sdc1/dev/': No such file or directory
cp: cannot create special file `/mnt/sdc1/dev/': No such file or directory
chroot: can't execute '/etc/rc.d/rc.update': No such file or directory
mv: cannot stat `/mnt/sdc1/etc/fstab': No such file or directory
./puppy_full_installer: line 164: /mnt/sdc1/etc/fstab: No such file or directory
./puppy_full_installer: line 165: /mnt/sdc1/etc/fstab: No such file or directory
./puppy_full_installer: line 166: /mnt/sdc1/etc/fstab: No such file or directory
./puppy_full_installer: line 167: /mnt/sdc1/etc/fstab: No such file or directory
./puppy_full_installer: line 168: /mnt/sdc1/etc/fstab: No such file or directory
umount: can't umount /mnt/sdc1/srcmntpt: Invalid argument
---------------------------------------------------------------

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.
#  grub4dos-config
bash: grub4dos-config: command not found
# grub4dos-config
bash: grub4dos-config: command not found
# ./puppy_full_installer
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?
sdc1   
Seems sane..
Ok, /mnt/sdc1 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.
sr0
Not sane! try again
Type the source mount point path.
/mnt/sr0
Seems sane..

Install from /mnt/sr0 to /mnt/sdc1
Press y + [Enter/Return] to continue
y
---------------------------------------------------------------

Decompressing: /mnt/sr0/puppy_precise_5.7.1.sfs
To target: /mnt/sdc1

please have patience.

Parallel unsquashfs: Using 2 processors
15759 inodes (18306 blocks) to write

[===========================================================|] 18306/18306 100%
created 12545 files
created 2145 directories
created 2878 symlinks
created 336 devices
created 0 fifos
mv: cannot move `/mnt/sdc1/vmlinuz' to `/mnt/sdc1/boot/': Not a directory
Upgrading Precise Puppy to version 5.7.1...
Updating w.m. menus...
Updating boot and shutdown system scripts...
Executing depmod, to update module files...
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...
Adding i2400m-usb
Adding iwlwifi
Adding rndis_wlan

Took a big chunk out here


Adding hso
Adding atl2
Adding prism2_usb
gtk-update-icon-cache: Cache file created successfully.
Error opening file for reading: No such file or directory
Error opening file for reading: No such file or directory
Error opening file for reading: No such file or directory
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
 /root/.jwmrc-tray
Generating /root/.icewm/menu...
Generating /root/.jwmrc...
---------------------------------------------------------------

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.
#
FullInstallUSB.png
 Description   
 Filesize   35 KB
 Viewed   826 Time(s)

FullInstallUSB.png


Last edited by april on Sat 16 Apr 2016, 14:43; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger 
bigpup


Joined: 11 Oct 2009
Posts: 8694
Location: Charleston S.C. USA

PostPosted: Fri 15 Apr 2016, 01:54    Post subject:  

april,

Thanks for your post.
Do not remove it. It is information to consider and needs to stay posted.

Looking at your results. I think your flash drive had file system errors.
Try it again after a repartition and format.
Only have it partitioned in one single partition.
I used ext2 format on my USB flash drive.

I assume you tried to use a Precise 5.7.1 live CD/DVD to get the Precise 5.7.1 data from.
I am not totally sure Scooby coded this to do that.
I think you need to actually mount a Puppy version iso file.
The iso file could be on a CD/DVD.
I did the install from a mounted Slacko 6.3.0.iso file that was on my hard drive.
It worked for me.

Also, the part of your post about upgrading/updating Precise 5.7.1 seems really wrong to be happening. Not sure what that is about. Not part of what this script should be doing.

Grub4dos bootloader does need to be installed to the USB flash drive.
In your example sdc1.
When you run Grub4dos config, choose to install to sdc1 and search only the USB flash drive.

The usb drive identified as sdc1 could cause problems if you boot the computer with it and the computer is seeing it now as sdb1 or something else.
The Grub4dos boot info, on the drive, will be looking for sdc1 for data.
This boot menu entry controls this:
My usb flash is seen as sdb1
Code:
 kernel /boot/vmlinuz root=/dev/sdb1 rootwait


Here is what my flash drive looks like. (Libreoffice.sfs is a file I downloaded not part of the install)
Screenshot(2).png
 Description   
 Filesize   51.61 KB
 Viewed   887 Time(s)

Screenshot(2).png


_________________
I have found, in trying to help people, 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

Last edited by bigpup on Fri 15 Apr 2016, 02:55; edited 4 times in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 8694
Location: Charleston S.C. USA

PostPosted: Fri 15 Apr 2016, 02:22    Post subject:  

scsijon,

I am not sure if Scooby wants to work on or improve this script.
Lets see what he says about your request.

He may want to talk bad about me, because I posted this before I got his permission to do so. Shocked Evil or Very Mad Twisted Evil

If this topic suddenly, is not here anymore, you now know why Laughing

I hope Scooby allows it to stay.

_________________
I have found, in trying to help people, 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
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Fri 15 Apr 2016, 17:07    Post subject:  

bigpup wrote:
scsijon,

I am not sure if Scooby wants to work on or improve this script.
Lets see what he says about your request.

Problem is "improvement" does not carry the same meaning for you and me.

As for free space checking I will not work on adding it.

Anyone else wanting to do so are free to do it.
They have any questions about the code I will help.


bigpup wrote:

He may want to talk bad about me, because I posted this before I got his permission to do so. Shocked Evil or Very Mad Twisted Evil

If this topic suddenly, is not here anymore, you now know why Laughing

I hope Scooby allows it to stay.

I'll allow it if the archive ready for download is updated to the latest version
https://gist.github.com/suedi/8897880a873d68ea05f5/archive/2d1e58d15e446de2018b24c51a3a9e0ea70fd08d.zip

Maybe you should just give base gist so user will always grab the
latest versions themselves?

It's at https://gist.github.com/suedi/8897880a873d68ea05f5

I have changed only comments at the start reflecting
origins of the script. ( +Grub4DosConfig in message and
a possible fix of april's vmlinuz issue)

Man this almost wants me to do a greetings scroller like back in
the commodore64 days, with piss-off greetings and all Very Happy


I want to ask you all why you feel there is a need for a pet for this?
It is one file. easier to just DL and run.

Or do you want it searchable in packagemanager?

Last edited by Scooby on Fri 15 Apr 2016, 17:48; edited 3 times in total
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Fri 15 Apr 2016, 17:31    Post subject:  

@april

Code:

puppy_full_installer
# puppy_full_installer
bash: puppy_full_installer: command not found
# ./puppy_full_installer
bash: ./puppy_full_installer: Permission denied
# ./puppy_full_installer


Maybe this is why a pet is needed then again april did get it to run
in the end



Code:

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/sr0
Seems sane..

Install from /mnt/sr0 to /mnt/sdc1
Press y + [Enter/Return] to continue
y
---------------------------------------------------------------
cp: cannot stat `/mnt/sr0/vmlinuz': No such file or directory
ls: cannot access /mnt/sr0/*.sfs: No such file or directory
mv: cannot stat `/mnt/sdc1/vmlinuz': No such file or directory
losetup-FULL: failed to setup loop device: Is a directory
mount: /dev/loop2: can't read superblock
cp: cannot create directory `/mnt/sdc1/lib/modules/3.9.11/': No such file or directory
WARNING: Couldn't open directory /mnt/sdc1/lib/modules/3.9.11: No such file or directory
FATAL: Could not open /mnt/sdc1/lib/modules/3.9.11/modules.dep.temp for writing: No such file or directory
./puppy_full_installer: line 130: /mnt/sdc1/etc/rc.d/PUPSTATE: No such file or directory
./puppy_full_installer: line 131: /mnt/sdc1/etc/rc.d/PUPSTATE: No such file or directory
cp: cannot create special file `/mnt/sdc1/dev/': No such file or directory
cp: cannot create special file `/mnt/sdc1/dev/': No such file or directory
chroot: can't execute '/etc/rc.d/rc.update': No such file or directory
mv: cannot stat `/mnt/sdc1/etc/fstab': No such file or directory
./puppy_full_installer: line 164: /mnt/sdc1/etc/fstab: No such file or directory
./puppy_full_installer: line 165: /mnt/sdc1/etc/fstab: No such file or directory
./puppy_full_installer: line 166: /mnt/sdc1/etc/fstab: No such file or directory
./puppy_full_installer: line 167: /mnt/sdc1/etc/fstab: No such file or directory
./puppy_full_installer: line 168: /mnt/sdc1/etc/fstab: No such file or directory
umount: can't umount /mnt/sdc1/srcmntpt: Invalid argument
---------------------------------------------------------------



In this run what did you have mounted on /mnt/sr0?

The script urges you to
"either mount a CD/DVD or an ISO file"

Did you mount a valid ISO on /mnt/sr0?

Code:

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.
#  grub4dos-config
bash: grub4dos-config: command not found
# grub4dos-config
bash: grub4dos-config: command not found


How do you run grub4dos-config from the commandline
is it Grub4DosConfig?

I will definately change the message since it is clearly misdirecting



Code:

...
mv: cannot move `/mnt/sdc1/vmlinuz' to `/mnt/sdc1/boot/': Not a directory


Some sort of bug here
Will research...




Cannot really say what the error message of Grub4dosConfig is all about.
what I can say is that the script puppy_full_installer does not touch
partition tables.

Last edited by Scooby on Fri 15 Apr 2016, 17:53; edited 1 time in total
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Fri 15 Apr 2016, 17:46    Post subject:  

Tralllalllalla Why can I not delete this extra superfluous post
Back to top
View user's profile Send private message 
april


Joined: 14 Sep 2013
Posts: 924
Location: Burning up on the Great Barrier Reef (Mostly Dead or Dying(me too))

PostPosted: Fri 15 Apr 2016, 20:30    Post subject:  

Scooby wrote:

Maybe this is why a pet is needed then again april did get it to run
in the end
........I could have hidden it but sometimes I am just a bit slow especially when I have no coffee. Ran out and am travelling south in boat so grumpy too
Scooby wrote:

In this run what did you have mounted on /mnt/sr0?

The script urges you to
"either mount a CD/DVD or an ISO file"
..........CD with Precise 5.7.1 files on it see pic
Scooby wrote:
how do you run "grub4dos-config"
..from menu
OpticalDrive4Scooby.png
 Description   
 Filesize   73.41 KB
 Viewed   713 Time(s)

OpticalDrive4Scooby.png


Last edited by april on Sat 16 Apr 2016, 02:05; edited 3 times in total
Back to top
View user's profile Send private message Yahoo Messenger 
starhawk

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

PostPosted: Fri 15 Apr 2016, 21:01    Post subject:  

Irony is fun sometimes... Wink Twisted Evil

http://murga-linux.com/puppy/viewtopic.php?t=106066

Nothing sinister, I promise. Just an observation.

_________________

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


Joined: 11 Oct 2009
Posts: 8694
Location: Charleston S.C. USA

PostPosted: Sat 16 Apr 2016, 01:25    Post subject:  

starhawk,

That is where this script was originally made.
I posted it here to move it out of the section of the forum that is for discussion of programing in general.

Did you ever get it to work for you?

I feel this is cutting edge for Puppy.
Doing full installs to USB flash drives, has never been supported by Puppy installers.
Well, Quirky did do it, but it is not official Puppy.

_________________
I have found, in trying to help people, 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
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 8694
Location: Charleston S.C. USA

PostPosted: Sat 16 Apr 2016, 01:53    Post subject:  

Scooby,

I updated the first post.

Thanks!!

If you change this script and tell us you did it. I will update the first post.

Quote:
I want to ask you all why you feel there is a need for a pet for this?
It is one file. easier to just DL and run.

Just easier for people to download and run as a pet.
Some people have problems understanding this:
Download.
Unzip
Give execute permission
In a terminal enter: sh puppy_full_installer

_________________
I have found, in trying to help people, 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
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Sat 16 Apr 2016, 06:34    Post subject:  

april wrote:

Code:

...
now run grub4dos-config to make it bootable.
#  grub4dos-config
bash: grub4dos-config: command not found
# grub4dos-config
bash: grub4dos-config: command not found



Downloaded grub4dos-0.4.4.v1.9.2.pet and checked that the executable is
/usr/sbin/grub4dosconfig

I think /usr/sbin is in PATH on puppy right?

I updated puppy_full_installer message of to reflect the correct name of the executable to avoid the situation above


bigpup can you please update link in first post to

https://gist.github.com/suedi/8897880a873d68ea05f5/archive/756a2af5aea28b8c8e5d6641d0a2d01c7386aea4.zip
Back to top
View user's profile Send private message 
april


Joined: 14 Sep 2013
Posts: 924
Location: Burning up on the Great Barrier Reef (Mostly Dead or Dying(me too))

PostPosted: Sat 16 Apr 2016, 13:20    Post subject:  

OK Thank you very much for your efforts .
I assume now I must gparted my USB to remove partitions first . I'll do that in a sec. Here is terminal output with a couple of errors I spotted just in case you want to see .
Code:
# ls
puppy_full_installer
# puppy_full_installer
bash: puppy_full_installer: command not found
# sh puppy_full_installer
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/sr0
Seems sane..

Install from /mnt/sr0 to /mnt/sdd1
Press y + [Enter/Return] to continue
y
---------------------------------------------------------------

Decompressing: /mnt/sr0/puppy_precise_5.7.1.sfs
To target: /mnt/sdd1

please have patience.

Parallel unsquashfs: Using 2 processors
15759 inodes (18306 blocks) to write

[===========================================================\] 18306/18306 100%
created 12545 files
created 2145 directories
created 2878 symlinks
created 336 devices
created 0 fifos
Upgrading Precise Puppy to version 5.7.1...
Updating w.m. menus...
Updating boot and shutdown system scripts...
Executing depmod, to update module files...
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...
Adding i2400m-usb
Adding iwlwifi
Adding rndis_wlan

Took a big chunk out here


Adding int51x1
Adding qmi_wwan
Adding hso
Adding atl2
Adding prism2_usb
gtk-update-icon-cache: Cache file created successfully.
Error opening file for reading: No such file or directory
Error opening file for reading: No such file or directory
Error opening file for reading: No such file or directory
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
 /root/.jwmrc-tray
Generating /root/.icewm/menu...
Generating /root/.jwmrc...
---------------------------------------------------------------

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 grub4dosconfig to make it bootable.
# grub4dosconfig
root: PROBEDISK ERROR: MOUNTED UNPLUGGED sdc1
/usr/sbin/grub4dosconfig: line 691: 14022 Terminated              $GTKDIALOG -p DIALOG -c &>/dev/null
Sectors/Track is expected 63. But the drive: 'sdd' seems Sectors/Track= \nThe Grub4DosConfig does not support this drive. Remove all the partitions on the drive (after backing up all the data) and rewrite the partition tabe with Gparted.
#

Last edited by april on Sat 16 Apr 2016, 14:46; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger 
april


Joined: 14 Sep 2013
Posts: 924
Location: Burning up on the Great Barrier Reef (Mostly Dead or Dying(me too))

PostPosted: Sat 16 Apr 2016, 14:19    Post subject:  

Success ! A booting USB stick

I started again and reformatted the USB stick but I cannot get an option that lets me format it as sdc. Rather I can only make sdc1 so that's what I did and I added the boot flag later too .

I did not understand where to put the "rootwait" command as I could not find an options box? Actually I found this now where "ro" appears on the first GUI page. I assume you delete the "ro"

Here is the output from this session . let me know and I'll remove the long posts when you are ready.

Code:
# sh puppy_full_installer
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?
sdc1
Seems sane..
Ok, /mnt/sdc1 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/sr0
Seems sane..

Install from /mnt/sr0 to /mnt/sdc1
Press y + [Enter/Return] to continue
y
---------------------------------------------------------------

Decompressing: /mnt/sr0/puppy_precise_5.7.1.sfs
To target: /mnt/sdc1

please have patience.

Parallel unsquashfs: Using 2 processors
15759 inodes (18306 blocks) to write

[===========================================================\] 18306/18306 100%
created 12545 files
created 2145 directories
created 2878 symlinks
created 336 devices
created 0 fifos
Upgrading Precise Puppy to version 5.7.1...
Updating w.m. menus...
Updating boot and shutdown system scripts...
Executing depmod, to update module files...
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...
Adding i2400m-usb
Adding sfc
Adding hamachi
Adding yellowfin

Took a big chunk out here

Adding hostap_cs
Adding hostap_pci
Adding iwlwifi
Adding atl2
Adding prism2_usb
gtk-update-icon-cache: Cache file created successfully.
Error opening file for reading: No such file or directory
Error opening file for reading: No such file or directory
Error opening file for reading: No such file or directory
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
 /root/.jwmrc-tray
Generating /root/.icewm/menu...
Generating /root/.jwmrc...
---------------------------------------------------------------

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 grub4dosconfig to make it bootable.
# grub4dosconfig
/usr/sbin/grub4dosconfig: line 691: 29920 Terminated              $GTKDIALOG -p DIALOG -c &>/dev/null
Boot flag not found on sdc.\nSome BIOS does not boot from the drive which has no boot flag. Click 'Cancel' here and set the boot flag by using GParted or something. But you can proceed installing grub4dos first.
find: File system loop detected; `/mnt/sdc1/lib/i386-linux-gnu' is part of the same file system loop as `/mnt/sdc1/lib'.
find: `/mnt/sdc1/run/tmp': Too many levels of symbolic links
find: `/mnt/sdc1/tmp/tmp': Too many levels of symbolic links
find: File system loop detected; `/mnt/sdc1/lib/i386-linux-gnu' is part of the same file system loop as `/mnt/sdc1/lib'.
find: `/mnt/sdc1/run/tmp': Too many levels of symbolic links
find: `/mnt/sdc1/tmp/tmp': Too many levels of symbolic links
find: File system loop detected; `/initrd/mnt/dev_save/lib/i386-linux-gnu' is part of the same file system loop as `/initrd/mnt/dev_save/lib'.
find: File system loop detected; `/initrd/mnt/dev_save/lib/i386-linux-gnu' is part of the same file system loop as `/initrd/mnt/dev_save/lib'.
0:1:2
/usr/sbin/grub4dosconfig: line 1285: 31123 Terminated              $GTKDIALOG -p DIALOG -c &>/dev/null
/usr/sbin/grub4dosconfig: line 1986: 31884 Terminated              $GTKDIALOG -p DIALOG -c &>/dev/null

Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 4 [54 Posts]   Goto page: 1, 2, 3, 4 Next
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.0903s ][ Queries: 14 (0.0069s) ][ GZIP on ]