I don't understand...

Please post in this category if you are extremely unhappy with Porteus.
WARNING: This section may contain strong language.
User avatar
Ed_P
Contributor
Contributor
Posts: 8605
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: I don't understand...

Post#31 by Ed_P » 02 Feb 2017, 19:00

What does this show? As guest.

ls /mnt/sdc/porteus/modules/

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

Re: I don't understand...

Post#32 by donald » 02 Feb 2017, 19:02

@ movobojo
to see the content of the modules folder use

Code: Select all

guest@porteus:~$ ls $PORTDIR/modules
about the EXIT cheatcode:
Please read /boot/docs/cheatcodes.txt.
Last edited by donald on 02 Feb 2017, 19:35, edited 1 time in total.

movobojo
Black ninja
Black ninja
Posts: 35
Joined: 24 Jan 2017, 16:25
Distribution: Porteus 3.2.2
Location: Slovakia

Re: I don't understand...

Post#33 by movobojo » 02 Feb 2017, 19:03

pauleus wrote:
Bogomips wrote: Very much doubt there is any defence against a determined virus, without going to extraordinary lengths to prevent it. Maybe you can reach a level of security if you are able to disable the HDD from the BIOS.
When HDD disable in BIOS. I think PC just turn off for boot & DOS, but linux still see it.

To turn off in kernel, use parameter: libata.force=1.00:disable

Like here with port SATA0, where HD is plugged...

Code: Select all

root@porteus:~# uname -a
Linux porteus 4.9.0-porteus #1 SMP PREEMPT Sun Dec 18 16:24:27 Local time zone must be set-- i686 Intel(R) Pentium(R) 4 CPU 3.20GHz GenuineIntel GNU/Linux

root@porteus:~# cat /proc/cmdline
quiet initrd=initrd.xz copy2ram noauto noswap noeject libata.force=1.00:disable BOOT_IMAGE=vmlinuz 

root@porteus:~# dmesg | grep ata
[    0.141022] libata version 3.00 loaded.
[    0.370134] ata1: SATA max UDMA/133 abar m1024@0xdffffc00 port 0xdffffd00 irq 20
[    0.370137] ata2: SATA max UDMA/133 abar m1024@0xdffffc00 port 0xdffffd80 irq 20
[    0.370139] ata3: SATA max UDMA/133 abar m1024@0xdffffc00 port 0xdffffe00 irq 20
[    0.370141] ata4: SATA max UDMA/133 abar m1024@0xdffffc00 port 0xdffffe80 irq 20
[    0.370253] ata_piix 0000:00:1f.1: version 2.13
[    0.371974] scsi host4: ata_piix
[    0.373163] scsi host5: ata_piix
[    0.373233] ata5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xffa0 irq 14
[    0.373235] ata6: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xffa8 irq 15
[    0.381257] ata6: port disabled--ignoring
[    0.538606] ata5.00: ATAPI: _NEC DVD_RW ND-3520A, 1.04, max UDMA/33
[    0.543246] ata5.00: configured for UDMA/33
[    0.677353] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    0.677369] ata2: SATA link down (SStatus 0 SControl 300)
[    0.680097] ata1.00: FORCE: horkage modified (disable)
[    0.680098] ata1.00: unsupported device, disabling
[    0.680100] ata1.00: disabled
Then nothing touch it. :)
But you know - it is virus - virus can possibly touch kernel and after reboot the virus can touch the HDD, am I right?

Anyway, I read if we turn off HDD in BIOS, the HDD still has electric power consumption. So I thing the best idea is mechanically cut HDD from electric power.

And then nothing touch it for sure finally.

movobojo
Black ninja
Black ninja
Posts: 35
Joined: 24 Jan 2017, 16:25
Distribution: Porteus 3.2.2
Location: Slovakia

Re: I don't understand...

Post#34 by movobojo » 02 Feb 2017, 19:13

Ed_P wrote:What does this show? As guest.

ls /mnt/sdc/porteus/modules/

Code: Select all

guest@porteus:~$ ls /mnt/sdc/porteus/modules/
/bin/ls: cannot access '/mnt/sdc/porteus/modules/': Permission denied
guest@porteus:~$ 
I formatted USB stick from Linux Mint and now I cannot see inside and there is a owner "vboxapp" under "Permissions" tab. ???

movobojo
Black ninja
Black ninja
Posts: 35
Joined: 24 Jan 2017, 16:25
Distribution: Porteus 3.2.2
Location: Slovakia

Re: I don't understand...

Post#35 by movobojo » 02 Feb 2017, 19:24

Always, I am using nothing but Firefox module (firefox-50.1.0-i686-1.xzm).

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

Re: I don't understand...

Post#36 by Ed_P » 02 Feb 2017, 19:50

movobojo wrote: Permission denied
hmmmm Ok, try the ls command after switching to root.

movobojo
Black ninja
Black ninja
Posts: 35
Joined: 24 Jan 2017, 16:25
Distribution: Porteus 3.2.2
Location: Slovakia

Re: I don't understand...

Post#37 by movobojo » 03 Feb 2017, 00:00

Code: Select all

root@porteus:/home/guest# ls /mnt/sdc/porteus/modules/
root@porteus:/home/guest# 
root@porteus:/home/guest# cd ..
root@porteus:/home# cd ..
root@porteus:/# cd ..
root@porteus:/# cd ..
root@porteus:/# ls /mnt/sdc/porteus/modules/
root@porteus:/# 
root@porteus:/# 
root@porteus:/# 
It shows nothing. And by the way, thanks for your patience with me.

movobojo
Black ninja
Black ninja
Posts: 35
Joined: 24 Jan 2017, 16:25
Distribution: Porteus 3.2.2
Location: Slovakia

Re: I don't understand...

Post#38 by movobojo » 03 Feb 2017, 00:14

I activated the Firefox module from desktop, and after reboot I must do it again, because the Firefox icon is gone after reboot. Should I put Firefox module to that "modules" directory? But I do not have access to that folder from desktop environment. But why I do not have access to my disc as guest? Is in my USB stick a block for guest?

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

Re: I don't understand...

Post#39 by Ed_P » 03 Feb 2017, 01:28

movobojo wrote:It shows nothing. And by the way, thanks for your patience with me.
So I see. And you are welcome. Trust me we were all newbies at one point. (Well, except for Bogomips. :D )
movobojo wrote:I activated the Firefox module from desktop, and after reboot I must do it again, because the Firefox icon is gone after reboot. Should I put Firefox module to that "modules" directory?
So you are saying the Firefox module is on your desktop!! Yes, you need to put it in your /porteus/modules/ folder.
But I do not have access to that folder from desktop environment.
Yes, so you will have to cp it in root mode. And once you reboot and have access to Firefox without activating it from the desktop you can delete the desktop module.
But why I do not have access to my disc as guest? Is in my USB stick a block for guest?
I can't answer that, I don't know. I've never formatted a drive with Linux Mint. We can look at it after we get the module in the right location.

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: I don't understand...

Post#40 by francois » 03 Feb 2017, 03:40

@movobojo:
guest or normal user does not have access to folders or partitions that are root access only.

It could also happen that your home folder on hdd or other folders on your hdd could be encrypted if you have set them this way.

To access your hard disk drive (hdd) try:

Code: Select all

guest@porteus:/root$ su
Password: 
root@porteus:~# thunar
root@porteus:~#
And try to access your files.

Midnight commander could also be useful:

Code: Select all

guest@porteus:/root$ su
Password: 
root@porteus:~# mc
root@porteus:~#
Prendre son temps, profiter de celui qui passe.

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

Re: I don't understand...

Post#41 by donald » 03 Feb 2017, 05:39

movobojo wrote: I cannot see inside ...

Code: Select all

guest@porteus:~$ ls /mnt/sdc/porteus/modules/
Of course not.....sdc is a drive, not a partition --> sdc1 or whatever

OR as i said before

Code: Select all

guest@porteus:~$ ls $PORTDIR/modules

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

Re: I don't understand...

Post#42 by Ed_P » 03 Feb 2017, 06:20

donald wrote:Of course not.....sdc is a drive, not a partition --> sdc1 or whatever
But there is no partition number in these ls sdc commands. :pardon:
movobojo wrote:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# cd ..
root@porteus:/home# cd ..
root@porteus:/# ls
bin/  etc/   lib/    mnt/  proc/  run/   srv/  tmp/  var/
dev/  home/  media/  opt/  root/  sbin/  sys/  usr/
root@porteus:/# cd mnt
root@porteus:/mnt# ls
live/  sda1/  sda2/  sda3/  sdb1/  sdc/
root@porteus:/mnt# cd sdc
root@porteus:/mnt/sdc# ls
USB_INSTALLATION.txt  boot/  lost+found/  porteus/
root@porteus:/mnt/sdc# cd porteus
root@porteus:/mnt/sdc/porteus# ls
base/     make_iso.sh  optional/              rootcopy/
changes/  modules/     porteus-v3.2-i586.sgn
root@porteus:/mnt/sdc/porteus# cd modules
root@porteus:/mnt/sdc/porteus/modules# ^C
root@porteus:/mnt/sdc/porteus/modules# ls
root@porteus:/mnt/sdc/porteus/modules# ls
root@porteus:/mnt/sdc/porteus/modules# 
The output of this would be interesting to see.

Code: Select all

guest@porteus:~$ echo $PORTDIR

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

Re: I don't understand...

Post#43 by donald » 03 Feb 2017, 07:24

@ Ed
But there is no partition number in these ls sdc commands
OK..
One can create such kind of devices if you dd an iso onto a thumb drive, for example,
(who does this?..and for what reason?), it would be read only then.
e.g.

Code: Select all

guest@porteus:~$ cat /proc/mounts
/dev/sdb /mnt/sdb iso9660 ro,noatime,nodiratime 0 0
which would result in

Code: Select all

guest@porteus:~$ cd /mnt
guest@porteus:/mnt$ ls
live/  sda1/  sda2/  sda3/  sdb/
guest@porteus:/mnt$ cd sdb
guest@porteus:/mnt/sdb$ ls
USB_INSTALLATION.txt  boot/  porteus/
guest@porteus:/mnt/sdb$ cd porteus
guest@porteus:/mnt/sdb/porteus$ ls
base/  make_iso.sh*  modules/  optional/  porteus-v3.2-i586.sgn  rootcopy/
guest@porteus:/mnt/sdb/porteus$ cd modules
guest@porteus:/mnt/sdb/porteus/modules$ ls
guest@porteus:/mnt/sdb/porteus/modules$ 


movobojo
Black ninja
Black ninja
Posts: 35
Joined: 24 Jan 2017, 16:25
Distribution: Porteus 3.2.2
Location: Slovakia

Re: I don't understand...

Post#44 by movobojo » 03 Feb 2017, 15:00

Ed_P wrote:
donald wrote:Of course not.....sdc is a drive, not a partition --> sdc1 or whatever
But there is no partition number in these ls sdc commands. :pardon:
movobojo wrote:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# cd ..
root@porteus:/home# cd ..
root@porteus:/# ls
bin/  etc/   lib/    mnt/  proc/  run/   srv/  tmp/  var/
dev/  home/  media/  opt/  root/  sbin/  sys/  usr/
root@porteus:/# cd mnt
root@porteus:/mnt# ls
live/  sda1/  sda2/  sda3/  sdb1/  sdc/
root@porteus:/mnt# cd sdc
root@porteus:/mnt/sdc# ls
USB_INSTALLATION.txt  boot/  lost+found/  porteus/
root@porteus:/mnt/sdc# cd porteus
root@porteus:/mnt/sdc/porteus# ls
base/     make_iso.sh  optional/              rootcopy/
changes/  modules/     porteus-v3.2-i586.sgn
root@porteus:/mnt/sdc/porteus# cd modules
root@porteus:/mnt/sdc/porteus/modules# ^C
root@porteus:/mnt/sdc/porteus/modules# ls
root@porteus:/mnt/sdc/porteus/modules# ls
root@porteus:/mnt/sdc/porteus/modules# 
The output of this would be interesting to see.

Code: Select all

guest@porteus:~$ echo $PORTDIR
Here you are:

Code: Select all

guest@porteus:~$ echo $PORTDIR
/mnt/sdb/porteus
guest@porteus:~$ 
So is it interesting?

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

Re: I don't understand...

Post#45 by Ed_P » 03 Feb 2017, 16:05

movobojo wrote:Here you are:

Code: Select all

guest@porteus:~$ echo $PORTDIR
/mnt/sdb/porteus
guest@porteus:~$ 
So is it interesting?
Very much so!! It appears that we're talking about two different drives! What you are looking for and what you are running on are not the same drive. Also interesting to note that there is no partition number after sdb either.

I think we should wait for donald's input.

Post Reply