Searching - looking for a better way

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Searching - looking for a better way

Post#16 by Ed_P » 03 May 2014, 21:31

fanthom wrote:everything happens in /mnt/live/memory/changes directory - so just watch this one.
the rest is static.
Image I am confused. Image
If I open a /home/guest/ file with Leafpad, edit it and save it it's not written back to /home/guest??? :Search:


- edit -

It's written to both places!!! :shock:
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Searching - looking for a better way

Post#17 by Ed_P » 04 May 2014, 05:02

donald wrote:umount... :wink:

e.g.
umount /dev/sda1

Code: Select all

guest@porteus:~$ umount /mnt/sda1
umount: only root can unmount /dev/sda1 from /mnt/sda1
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# umount /mnt/sda1
root@porteus:/home/guest# umount /mnt/sda2
root@porteus:/home/guest# ls /mnt/
live/  sda1/  sda2/  sda3/  sda5/  sda6/
root@porteus:/home/guest#  
:wall:
Ed

donald
Full of knowledge
Full of knowledge
Posts: 2067
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Searching - looking for a better way

Post#18 by donald » 04 May 2014, 11:28

Dear Ed
To unmount the partitions type as root or in a root-terminal
umount /dev/sda1
(or sda2, sdb1 and so on, depending on which Partition you want to unmount)
If done look into the /mnt Folder. The folders sda1/2/3...are still there
but they are EMPTY.

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Searching - looking for a better way

Post#19 by Ed_P » 04 May 2014, 14:48

Thank you donald for the clarification. :beer:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# cat /mnt/sda1
cat: /mnt/sda1: Is a directory
root@porteus:/home/guest# ls /mnt/sda1
100_CR.DAT*  EFI/            NAPP.DAT*     SOURCES/
ACERBOOT/    FACTORY/        Napp7.log*    SYSTEMCD.DAT*
BOOT/        Flag.log*       RCD.DAT*      System\ Volume\ Information/
BOOTMGR*     ImageInfo.dat*  Restore.dat*
D2D/         LPCD.DAT*       RyTools/
root@porteus:/home/guest# umount /mnt/sda1
root@porteus:/home/guest# ls /mnt/sda1
root@porteus:/home/guest# 
FYI In the Windows world if I unmount a device/partition the device's/partition's drive letter is no longer available and no longer appears in any Windows' app.
Ed

donald
Full of knowledge
Full of knowledge
Posts: 2067
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Searching - looking for a better way

Post#20 by donald » 04 May 2014, 15:11

yep, I can remember, how windows assign the wrong Drive letters to my
various usb-Drives...and having the wrong Paths then... :evil:

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Searching - looking for a better way

Post#21 by Ed_P » 04 May 2014, 15:14

Yup, that too.
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Searching - looking for a better way

Post#22 by Ed_P » 05 May 2014, 02:44

fanthom wrote: do a search in /mnt/live/memory then remove /mnt/live/memory/{changes,images} from path.
I don't fully understand what you suggested but find this variant of your suggestion useful.

Code: Select all

ls -R /mnt/live/memory/changes/home
Thank you fanthom.
Ed

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

Re: Searching - looking for a better way

Post#23 by fanthom » 05 May 2014, 10:08

after 500 posts it's time to understand how Porteus works. please read ALL our docs. starting from here:
http://www.porteus.org/component/conten ... cture.html
if that wont be enough then please dig more into aufs as it's the key:
http://www.thegeekstuff.com/2013/05/linux-aufs/
Please add [Solved] to your thread title if the solution was found.

Post Reply