Save files

Get help with XFCE specific problems

Save files

Postby karousaras » 20 Mar 2017, 17:13

Hello, i am new with porteus and i have install the portues 3.2.2 xfce. For install i transfer all the files from iso in usb flash and then run Porteus-installer-for-Windows.exe. After that i reboot in portues i do that steps Appendix B - Saving changes to a Windows Filesystem but when i reboot nothing is save. Maybe you can sent me a link with details steps for install. Thanks.
karousaras
White ninja
White ninja
 
Posts: 9
Joined: 20 Mar 2017, 17:02
Location: greece
Distribution: porteus 3.2.2porteus 3.2.2

Re: Save files

Postby Ed_P » 20 Mar 2017, 20:40

Are you rebooting on a BIOS system or a UEFI system?

Did you create a porteussave.dat file? If so, where did you create it?

What is the format of your USB drive?
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2788
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.* 64-bit ISO

Re: Save files

Postby Blaze » 20 Mar 2017, 20:41

Hi karousaras.
Welcome on the board!
http://www.porteus.org/component/conten ... guide.html
1) Format your USB drive to ext2 (or your hard drive partition to ext4) and install Porteus via Porteus Installer. All your changes will be save.
2) If you use FAT32 or NTFS - welcome to Porteus save file manager - look at this Saving changes to a Windows Filesystem
Linux porteus 4.11.2-porteus #1 SMP PREEMPT Sat May 20 19:06:02 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
User avatar
Blaze
Warlord
Warlord
 
Posts: 1169
Joined: 28 Dec 2010, 12:31
Location: ☭ Russian Federation, Lipetsk region, Dankov
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64

Re: Save files

Postby karousaras » 20 Mar 2017, 21:29

So i install from usb to usb with Porteus Installer and ext2 partition and i check the 2 boxes but when i go to boot from the usb it boot from the second which is the windows boot.

I rebooting from uefi.

i have in porteus folder.

fat32.

if i burn the iso with rufus and then i run Porteus-installer-for-Windows.exe and after i make the 2 other steps when i reboot, it will work and save?
karousaras
White ninja
White ninja
 
Posts: 9
Joined: 20 Mar 2017, 17:02
Location: greece
Distribution: porteus 3.2.2porteus 3.2.2

Re: Save files

Postby Ed_P » 20 Mar 2017, 22:46

karousaras wrote:I rebooting from uefi.

On the USB drive there is an EFI?

i have in porteus folder.

So you have on the USB drive /porteus/changes/porteussave.dat? Or /porteus/porteussave.dat?

if i burn the iso with rufus and then i run Porteus-installer-for-Windows.exe and after i make the 2 other steps when i reboot, it will work and save?

I've never used rufus but I doubt it will cause Porteus to save your changes.

If you're booting from UEFI you need to:

1. Disable the machine's UEFI Secure Boot option

2. Then in the USB drive's /EFI/BOOT folder edit the refind.conf file to add the name and location of your porteussave.dat file.

2.a Down near the bottom of the refind.conf file you will see a menuentry for "Porteus GUI mode".
In the menu find the submenuentry "Save changes". Change the "changes=/porteus" to be the name and location of your porteussave.dat file.

2.b Further down you will find a menuentry for "Porteus menu".
Repeat the submenuentry "Save changes" noted above here also.

:)
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2788
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.* 64-bit ISO

Re: Save files

Postby karousaras » 21 Mar 2017, 17:40

yes

I save in /porteus/porteussave.dat

in 2.b I dont find that section and I write in 2.a changes=/porteus/porteussave.dat

with fat32 I can boot and change the files but still I can't save
karousaras
White ninja
White ninja
 
Posts: 9
Joined: 20 Mar 2017, 17:02
Location: greece
Distribution: porteus 3.2.2porteus 3.2.2

Re: Save files

Postby Ed_P » 21 Mar 2017, 20:44

karousaras wrote:in 2.b I dont find that section

OK Apparently a tweak I added to my menu. :oops:

and I write in 2.a changes=/porteus/porteussave.dat

OK :good:

with fat32 I can boot and change the files but still I can't save

:x

Please provide the output of:

ls -lgh /mnt/sdb1/porteus/

sdb1 being the address of your USB drive.

So, you make changes, reboot and they are gone. You do not remove the USB drive while booted to Porteus. You see the refind.conf boot menu when you boot. Yes?
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2788
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.* 64-bit ISO

Re: Save files

Postby karousaras » 21 Mar 2017, 22:46

yes
karousaras
White ninja
White ninja
 
Posts: 9
Joined: 20 Mar 2017, 17:02
Location: greece
Distribution: porteus 3.2.2porteus 3.2.2

Re: Save files

Postby Ed_P » 22 Mar 2017, 00:10

karousaras wrote:yes

Don't forget the ls -lgh /mnt/sdb1/porteus/ output.

To cover all bases, edit the porteus.cfg file in the USB's /boot/syslinux/ folder and change the "MENU LABEL Graphics mode"'s APPEND line to include the same "changes=/porteus/porteussave.dat" that you added to the refind.conf file. Then reboot and check it out.
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2788
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.* 64-bit ISO

Re: Save files

Postby karousaras » 23 Mar 2017, 16:06

it show me

guest@porteus:~$ ls -lgh /mnt/sdc1/porteus
total 801M
drwxrwxrwx 2 root 16K Mar 23 16:24 base/
-rwxrwxrwx 1 root 1015 Mar 23 16:25 make_iso.sh*
drwxrwxrwx 2 root 16K Mar 23 16:25 modules/
drwxrwxrwx 2 root 16K Mar 23 16:25 optional/
-rwxrwxrwx 1 root 437 Mar 23 16:24 porteus-v3.2-x86_64.sgn*
-rwxrwxrwx 1 root 800M Mar 23 16:28 porteussave.dat*
drwxrwxrwx 2 root 16K Mar 23 16:25 rootcopy/
karousaras
White ninja
White ninja
 
Posts: 9
Joined: 20 Mar 2017, 17:02
Location: greece
Distribution: porteus 3.2.2porteus 3.2.2

Re: Save files

Postby karousaras » 24 Mar 2017, 20:39

when I write the command it say guest, so maybe this is wrong?
karousaras
White ninja
White ninja
 
Posts: 9
Joined: 20 Mar 2017, 17:02
Location: greece
Distribution: porteus 3.2.2porteus 3.2.2

Re: Save files

Postby Ed_P » 24 Mar 2017, 22:31

You're command output looks perfect karousaras. So, with "changes=/porteus/porteussave.dat" added to the refind.conf and porteus.cfg files you should be booting and saving changes on EFI and BIOS systems. If that is not the case I'm running out of ideas. :(

From your booted Porteus system try running these scripts. They may show a clue if the saving is not working.

savedatspaceck.sh
Code: Select all
#!/bin/sh
# Add to /etc/rc.d/rc.local_shutdown.  And make rc.local_shutdown executable.
# Bogomips help: http://forum.porteus.org/viewtopic.php?f=140&t=6069&p=47591#p47589
#                http://forum.porteus.org/viewtopic.php?f=140&t=6069&p=47614#p47598
# Color definitions
txtbld=$(tput bold)               # Bold
txtred=${txtbld}$(tput setaf 1)   # Red
rst=$(tput sgr0)                  # Reset

function redwarning() {
echo -e $txtred "$1" $rst
}

if [ -a /mnt/live/memory/images/changes ]; then
   SDspace=$(df -BM --output=size,used,avail,pcent /mnt/live/memory/images/changes | tail -n1)
   read size used avail percent <<< $SDspace
   if [ ${percent%\%} -gt  85 ]; then
      echo
      redwarning "Warning! save.dat file $percent full.  Used: $used  Free: $avail"
      echo
      sleep 5
   else
      echo "save.dat file $percent full.  Used: $used  Free: $avail"
   fi
fi


bootdev.sh
Code: Select all
#!/bin/sh
txtbld=$(tput bold)               # Bold
rst=$(tput sgr0)                  # Reset
function Bold() {
  echo -e $txtbld"$1"$rst "$2";
}

# http://forum.porteus.org/viewtopic.php?f=53&t=3801&start=30#p28472
# awk 'c-->0;/Booting device:/{c=1}' /var/log/porteus-livedbg
BOOTDEV=`grep -A1 "Booting" /var/log/porteus-livedbg|tail -n1|sed 's^//^/^g'`
if [ "$BOOTDEV" == "/mnt/isoloop" ]; then
   BOOTDEV=`grep -A1 "ISO=" /var/log/porteus-livedbg`
   BOOTDEV=${BOOTDEV:4:9}
fi
TYPE=`grep "/dev/${BOOTDEV:5}" /var/log/porteus-livedbg`
#MEMORY=`grep MemTotal /proc/meminfo`
#MEMORY=${MEMORY:17}
MEMORY=`free -m | grep -A1 "Mem:"`
MEMORY=${MEMORY:13:5}M
KERNEL=`uname -a`
KERNEL="${KERNEL:0:13} `uname -r`"
SAVEDAT=`grep "save.dat/" /var/log/porteus-livedbg`
BOOTMODE=`grep -A1 "Porteus data" /var/log/porteus-livedbg|tail -n1|sed 's^//^/^g'`
if [ "${BOOTMODE:5:3}" == "iso" ]; then
   BOOTMODE="ISO `cat /proc/cmdline | sed -e 's/^.*from=//' -e 's/ .*$//'`"
fi
if [ "${BOOTDEV:7:1}" != "a" ]; then
   FOLDER="/porteus/"
else
   FOLDER=`cat /etc/porteus-version`
   FOLDER="/porteus${FOLDER:9:3}/"
   if [ ! -d "$BOOTDEV$FOLDER" ]; then
      FOLDER="/porteus3.x/"
   fi
fi
if [ ! "$1" = "" ]; then
   function Bold() {
     echo -e "$1" "$2";
   }
fi

Bold "System Memory:" "$MEMORY"
Bold "Boot device:  " "$BOOTDEV"
Bold "Boot device format:" "${TYPE: -7}"
Bold "Boot folder:  " "$FOLDER"
Bold "Boot mode:    " "$BOOTMODE"
Bold "OS:      " `cat /etc/porteus-version`
Bold "ARCH:    " "`echo $MACHTYPE | sed -e 's/-.*$//'`" 

Bold "Kernel:  "  "$KERNEL"         # ${KERNEL:0:29}"
if [ "$SAVEDAT" != "" ]; then     
   Bold "Changes: " "${SAVEDAT:0:-8}"
fi
Bold "Cmdline: " "`cat /proc/cmdline`"
read

Disregard the comments in the scripts. The scripts are designed for my systems so their output folder names may be off a bit but that will not be a big deal. Try them and we can go from there.
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2788
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.* 64-bit ISO

Re: Save files

Postby karousaras » 28 Mar 2017, 20:49

i run first sacedatspaceck.sh and it show me nothing, then i run bootdev.sh and it print
Code: Select all
System Memory:   386M
Boot device: /mnt/sdb1
Boot device format: "vfat"
Boot folderw:     /porteus/
Boot mode:       /mnt/sdb1/porteus
OS:             Porteus-v3.2.2
ARCH:         x86_64
Kernel:        Linux porteus 4.9.0-porteus
Cmdline:     quietoot\syslinux
                                           mlinuz initrd=boot\syslinux\initrd.xz



also when i install with porteus install it do not move the EFI folder and i if have ext2 partition i can move alone


-edit- Added code tags. Ed_P
karousaras
White ninja
White ninja
 
Posts: 9
Joined: 20 Mar 2017, 17:02
Location: greece
Distribution: porteus 3.2.2porteus 3.2.2

Re: Save files

Postby Ed_P » 29 Mar 2017, 00:58

karousaras wrote:also when i install with porteus install it do not move the EFI folder and i if have ext2 partition i can move alone

Hey karousaras, you're back. :)

The EFI folder can reside on the same drive as porteus if the drive is vfat which your's is. As for your ext2 partition I don't understand, I don't use one.

In your bootdev output I don't see a mention of your porteussave.dat file which could explain why your changes are not getting saved. Please run the following terminal command from Porteus and post it's output.
Code: Select all
cat /proc/cmdline

You can copy and paste the output on a terminal screen directly to the forum posting window. Then highlight it and click on the Code tag button above. :)
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2788
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.* 64-bit ISO

Re: Save files

Postby karousaras » 03 Apr 2017, 15:59

the output is
Code: Select all
quiet \boot\syslinux\vmlinuz initrd=boot\syslinux\initrd.xz
karousaras
White ninja
White ninja
 
Posts: 9
Joined: 20 Mar 2017, 17:02
Location: greece
Distribution: porteus 3.2.2porteus 3.2.2

Next

Return to XFCE



Who is online

Users browsing this forum: No registered users and 1 guest