Page 5 of 6

Re: I don't understand...

Posted: 05 Feb 2017, 12:38
by movobojo
But I did not give up: I used "Menu -> System -> create live USB", then I reboot, then I plugged another USB, then I used "Menu -> System -> Porteus Installer", then I reboot from the another USB, an now it seems everything is working fine, and I am running Porteus on 1 partition formatted as ext4. But now I have access to Porteus folders as Guest, can it be a possibly security risk?

And thanks to everybody for help.

Re: I don't understand...

Posted: 05 Feb 2017, 12:39
by movobojo
donald wrote:
movobojo wrote:I wanna 1 partition,
Do you want to install, let's say XFCE, 32 or 64 Bit version?
Must be 32, my laptop is not 64.

Re: I don't understand...

Posted: 05 Feb 2017, 12:48
by donald
wait 5 min..

EDIT
boot in copy2ram mode
start GParted > select your usb thumb drive >
create a partition which spans the whole drive; filesystem EXT 2
close GParted

copy the Porteus-XFCE-v3.2.2-i586.iso into /home/guest/Downloads

open a terminal... and here we go:
NOTE: my usb was sdb1 you must substitute it with your usb designation!!

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# umount /dev/sdb1
root@porteus:/home/guest# mkdir /mnt/iso
root@porteus:/home/guest# mkdir /mnt/usb
root@porteus:/home/guest# mount -o loop /home/guest/Downloads/Porteus-XFCE-v3.2.2-i586.iso /mnt/iso
mount: /dev/loop6 is write-protected, mounting read-only
root@porteus:/home/guest# mount /dev/sdb1 /mnt/usb
root@porteus:/home/guest# cp -a /mnt/iso/* /mnt/usb/
root@porteus:/home/guest# sync
root@porteus:/home/guest# cd /mnt/usb/boot
root@porteus:/mnt/usb/boot# ./Porteus-installer-for-Linux.com
Verifying archive integrity... All good.
Uncompressing Porteus Installer......

                             _.====.._
                           ,:._       ~-_
                               '\        ~-_
                                 \        \.
                               ,/           ~-_
                      -..__..-''   PORTEUS   ~~--..__

==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--

Installing Porteus to /dev/sdb1
WARNING: Make sure this is the right partition before proceeding.

Type 'ok' to continue or press Ctrl+c to exit.
ok
Flushing filesystem buffers...

Using extlinux bootloader.

Installation finished successfully.
You may reboot your PC now and start using Porteus.
Please check the /boot/docs folder for additional information about
the installation process, Porteus requirements and booting parameters.
In case of making tweaks to the bootloader config,
please edit: /mnt/usb/boot/syslinux/porteus.cfg file.

Press Enter to exit.

root@porteus:/mnt/usb/boot# cd -
/home/guest
root@porteus:/home/guest# umount /mnt/iso
root@porteus:/home/guest# umount /mnt/usb
root@porteus:/home/guest# reboot
copy and paste the commands....8)

Re: I don't understand...

Posted: 05 Feb 2017, 13:11
by movobojo
OK, I am going to try that, I am curious what will go wrong :)

May I use ext4? Why you use ext2?

Re: I don't understand...

Posted: 05 Feb 2017, 13:23
by donald
I always use ext2 on flash-drives
Try ext2 first ....it has no journaling
I never had any advantages with ext3 or 4

EDIT
oops...cross postings
I haven't seen the one, where you said that "everything is working fine"
If so, forget my post..

Re: I don't understand...

Posted: 05 Feb 2017, 13:52
by Bogomips
donald wrote:Try ext2 first ....it has no journaling
While trying to sort out inode issue in Linux Questions, was informed that there had been discussions regarding withdrawing support for ext2, and that could have ext4 without journal:

Code: Select all

root@porteus:/home/guest# mkfs.ext4 -b 4096 -m 0 -T huge -O ^has_journal /dev/sdb3 
mke2fs 1.43.1 (08-Jun-2016)
/dev/sdb3 contains a ext2 file system
        created on Sun Jan 22 21:35:29 2017
Proceed anyway? (y,n) y
Creating filesystem with 79167488 4k blocks and 4947968 inodes
Filesystem UUID: eb1bfdd0-78d7-4a82-818a-e3b5589e6718
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968

Allocating group tables: done                            
Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done     

Re: I don't understand...

Posted: 05 Feb 2017, 14:13
by donald
@ Bogomips

Yep, that's correct

Code: Select all

tune2fs -O ^has_journal /dev/sdXN
but not in a GUI (GParted)..afaik.. :wink:

--> withdrawing support for ext2 <--
..hopefully not before i "rest in peace".. :)

Re: I don't understand...

Posted: 05 Feb 2017, 14:19
by movobojo
donald, it is working well. You used terminal to run "Porteus-installer-for-Linux.com", but when I used desktop environment to run "Porteus-installer-for-Linux.com" it was not the same - in my solution, after reboot I must log in as root and I had an error with wi-fi. There were unreadable emblems (white X in red round) in Porteus folders.

Re: I don't understand...

Posted: 06 Apr 2017, 09:43
by martomlub
Why ext2 with no journaling is better than ext4. I have on my USB ext4 and everything is fine?

Re: I don't understand...

Posted: 06 Apr 2017, 14:46
by Ed_P
martomlub wrote:Why ext2 with no journaling is better than ext4.
Less processing overhead, less IO on the USB drive, makes it faster.

Re: I don't understand...

Posted: 06 Apr 2017, 17:59
by Bogomips
martomlub wrote:Why ext2 with no journaling is better than ext4.
All the above points. However, you can have ext4 without journal http://forum.porteus.org/viewtopic.php? ... =60#p52811 and then all the above points apply. :)

Re: I don't understand...

Posted: 07 Apr 2017, 07:40
by martomlub
tune2fs -O ^has_journal /dev/sdXN
If I execute this command on an existing system (after "copy2ram" of course), will the system crash?

Re: I don't understand...

Posted: 08 Apr 2017, 17:07
by Bogomips
Back up the ext4 partition first of all, then do

Code: Select all

df  -h  /mnt/sdXy
before and after. There should hopefully be a difference after journal space freed. :)

Re: I don't understand...

Posted: 09 Apr 2017, 01:08
by Ed_P
Evan wrote: isn't ext4 only journalling while you setup Portues and changes-ro then stops it anyway?
Whenever there is reading or writing to the drive. And ttbomk most people don't use changes-ro therefore frequent IO to the drive while Porteus is running or when it ends if changes=EXIT used.

If it isn't impacting your performance no need to worry about it. :wink:

Re: I don't understand...

Posted: 09 Apr 2017, 02:52
by tybuzz67
hi guys,
I want to ask how to post a new topic on Porteus forum. I can't seem to find the button POST NEW TOPIC. kindly help me out here...