Latest try, Nothing open except LXTerminal and Leafpad:
porteus-uefi.sh
Code: Select all
#!/bin/sh
## http://forum.porteus.org/viewtopic.php?f=81&t=3227#p25266
## http://forum.porteus.org/viewtopic.php?f=81&t=3227&p=25308#p25308
if [ `whoami` != "root" ]; then
ktsuss "$0"
exit
fi
if [ ! -d /mnt/sdb1 ]; then
umount /dev/sdb1
umount /dev/sdb2
fi
curl -L https://www.dropbox.com/s/w1i7b2p4viinnq8/porteus-uefi-usb-installer-v3.0.sh -o porteus-uefi-usb-installer-v3.0.sh
sh porteus-uefi-usb-installer-v3.0.sh
Code: Select all
guest@porteus:~$ ./porteus-uefi.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 596 0 596 0 0 1088 0 --:--:-- --:--:-- --:--:-- 1213
100 102k 100 102k 0 0 72229 0 0:00:01 0:00:01 --:--:-- 72229
Checking boot directory
Passed
Checking porteus directory
Passed
Checking internet.
Passed
################## DISCLAIMER #################
This script comes as is with no warranty or guarantee
implied or even otherwise hinted at in any form. This
deniability of any implied warranty or guarantee includes
any voice you may hear in your head telling you otherwise.
Any loss of data, information, sanity or even temper is
hereby NOT the responsibility of the author of this script
and thereby renders all responsibility for the use of this
on you the user.
Essentially if you screw things up, don't blame me!
################## DISCLAIMER #################
THIS SCRIPT WILL DESTROY ALL DATA ON THE TARGET DEVICE!!
As a safety precaution the script will only have access
to removable devices and no internal fixed drives.
Press ctrl+c at any time to exit the script.
Would you like to conitnue? [Yes/No]
### TARGET DEVICE ###
Select the removable device on which you want to
install Porteus.
NAME LABEL MODEL SIZE
sdb USB Flash Memory 7.3G
Choose your target device and press enter:
1) sdb
#? 1
IMPORTANT INFORMATION
Your removable device will be formatted into 2 partitions
This is required for UEFI systems. The first partition
is the UEFI boot partition and must be FAT32.
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util sfdisk doesn't support GPT. Use GNU Parted.
### FIRST PARTITION ###
Choose a size for the first partition.
Available free space: 7.3G
6G
Enter the partition size.
Example: 200MB or 2GB
> 6BG
Please include either MB or GB.
Enter the partition size.
Example: 200MB or 2GB
> 6GB
### SECOND PARTITION ###
Choose a size for the second partition.
Press ENTER to use remaining free space.
Available free space: 1297 MB
Enter the partition size.
Example: 200MB or 2GB
>
### PARTITION TYPE ###
Choose a partition type for the second parition which will
hold porteus. I recommend choosing a native linux file
system instead of FAT32. If you choose FAT32 and want to
save changes to Porteus you will need to use a savefile.dat
container
Choose a filesytem for porteus to reside on.
Choose ext2 if you are not sure.
1) FAT32
2) ext2
3) ext3
4) ext4
5) reiserfs
6) xfs
#? 2
### FINAL REPORT ###
Target device: /dev/sdb
Partition 1: FAT32 6144MB
Parition 2: ext2 0MB
Please confirm the above information.
Press Y to begin format, any other key to exit.
Creating partition table on:
/dev/sdb
Creating partition 1
Creating partition 2
Setting partition2 name as: porteus
Formatting partition1
Formatting partition2
Downloading refind ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2288k 100 2288k 0 0 83915 0 0:00:27 0:00:27 --:--:-- 161k
Decompressing refind ...
Installing refind to device ...
Installing rEFInd on Linux....
UnmountEsp = 1
Copied rEFInd binary files
Notice: Backed up existing icons directory as icons-backup.
Existing refind.conf file found; copying sample file as refind.conf-sample
to avoid overwriting your customizations.
Installation has completed successfully.
Unmounting install dir
Probing target device ...
Mounting partition1 ...
Copying kernel files to device ...
Copying custom icons ...
sed: -e expression #1, char 0: no previous regular expression
Unmounting partition 1
Mounting partition 2
NTFS signature is missing.
Failed to mount '/dev/sdb2': Invalid argument
The device '/dev/sdb2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Failed to mount /dev/sdb2
guest@porteus:~$ ls /dev/sdb1/
/bin/ls: cannot access /dev/sdb1/: Not a directory
guest@porteus:~$ ls /mnt/sdb1/
EFI/ Guest/ System\ Volume\ Information/
guest@porteus:~$ ls /mnt/sdb2/
/bin/ls: cannot access /mnt/sdb2/: No such file or directory
guest@porteus:~$
spaceFM
Code: Select all
Errors
Run: Mount /dev/sdb2
Status: Finished with error (exit status 1)
Object /org/freedesktop/UDisks2/block_devices/sdb2 is not a mountable filesystem.
See no reason for the System Volume Folder, I believe Windows only creates them on Fixed drives. And the Guest folder does not contain the current files that I have in my /home/guest/ or /mnt/sda5/porteus/Guest folders so I have no idea where it came from.
- update-
Found the source of the Guest files, my Porteus 2.1 system!! I'm running 3.0.
Maybe this will help.
On sda5 is:
guest@porteus:~$ ls /mnt/sda5
$RECYCLE.BIN/ RECYCLER/ Users/ porteus/
ISOs/ System\ Volume\ Information/ Win7\ boot\ files/ porteus2.1/
guest@porteus:~$ ls /mnt/sda5/ISOs
!ContigISOs.cmd* Porteus-RazorQT-v3.0.lst* porteus3.bmp*
Porteus-RazorQT-v2.1-x86_64.iso* Porteus.lst\ -\ Shortcut.lnk*
Porteus-RazorQT-v3.0-x86_64.iso* menu.lst\ -\ Shortcut.lnk*
guest@porteus:~$ ls /mnt/sda5/porteus
FormatUSBstick.txt* changes/
Guest/ create-uefi-usb-v2.sh*
KeePass.kdb* modsavedat/
Porteus.lst\ -\ Shortcut.lnk* modules/
PorteusRestore.cmd* modwines/
PorteusSaveBkup.cmd* porteus-uefi-usb-installer-v3.0.sh*
PorteusXZMupdate.cmd*
guest@porteus:~$ ls /mnt/sda5/porteus2.1
Guest/ PorteusXZMupdate.cmd* porteussave\ -\ base.7z*
KeePass.kdb* changes/ synclient.txt*
Porteus.lst\ -\ Shortcut.lnk* modsavedat/
PorteusSaveBkup.cmd* modules/
guest@porteus:~$