Technical issues/questions of an intermediate or advanced nature.
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#1
by Ed_P » 10 Jul 2016, 19:51
All my Porteus files and ISOs are on one partition. If I boot Porteus without the change= option and try to check the space usage of the save.dat file using mloop I get a duplicate UUID error.
Code: Select all
mloop /mnt/sda5/porteus3.0/changes/porteussave.dat
using /dev/loop28
Please wait while i gather some info ....
mount: wrong fs type, bad option, bad superblock on /dev/loop28,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
.....
dmesg | tail
[ 14.963717] fbcon: radeondrmfb (fb0) is primary device
[ 15.546008] Console: switching to colour frame buffer device 170x48
[ 15.559462] radeon 0000:00:01.0: fb0: radeondrmfb frame buffer device
[ 15.559472] radeon 0000:00:01.0: registered panic notifier
[ 15.561376] [drm] Initialized radeon 2.37.0 20080528 for 0000:00:01.0 on minor 0
[ 18.383033] NET: Registered protocol family 10
[ 18.999589] atl1c 0000:06:00.0: irq 42 for MSI/MSI-X
[ 19.044958] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 66.559253] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 146.850445] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[./code]
mloop help doesn't show any option that could skip the error.
[code]mloop -help
Please enter root's password below
readlink: invalid option -- 'h'
Try 'readlink --help' for more information.
Password:
using /dev/loop28
##########################
Usage of /opt/porteus-scripts/mloop:
##########################
mloop /path/to/module.xzm
mloop /path/to/file.iso
mloop /path/to/file.dat
mloop /path/to/file.img
mloop /path/to/initrd.xz
mloop /path/to/file.tar
mloop /path/to/file.tar.gz
mloop /path/to/file.tar.bz2
mloop http://domain.com/file.iso
File given will be mounted on a loop at /mnt/loop
You can use uloop to unmout loop.
Is there an easy way to mloop the file short of copying it to a USB drive?
Last edited by
Ed_P on 11 Jul 2016, 02:45, edited 1 time in total.
Ed
Ed_P
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#2
by Bogomips » 10 Jul 2016, 20:08
What is the output of:
Code: Select all
file /mnt/sda5/porteus3.0/changes/porteussave.dat
mkdir sd
sudo mount /mnt/sda5/porteus3.0/changes/porteussave.dat sd
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#3
by Ed_P » 10 Jul 2016, 21:01
Bogomips wrote:What is the output of:
Code: Select all
file /mnt/sda5/porteus3.0/changes/porteussave.dat
mkdir sd
sudo mount /mnt/sda5/porteus3.0/changes/porteussave.dat sd
Code: Select all
guest@porteus:~$ file /mnt/sda5/porteus3.0/changes/porteussave.dat
/mnt/sda5/porteus3.0/changes/porteussave.dat: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs)
guest@porteus:~$ mkdir sd
guest@porteus:~$ sudo mount /mnt/sda5/porteus3.0/changes/porteussave.dat sd
Password:
mount: wrong fs type, bad option, bad superblock on /dev/loop28,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
guest@porteus:~$ dmesg | tail
[ 363.964351] ums-realtek 2-2:1.0: USB Mass Storage device detected
[ 364.012624] scsi1 : usb-storage 2-2:1.0
[ 364.013387] usb 2-2: USB disconnect, device number 4
[ 364.047064] psmouse serio1: elantech: retrying ps2 command 0xf8 (2).
[ 364.749215] psmouse serio1: elantech: retrying ps2 command 0xf8 (1).
[ 368.713748] atl1c 0000:06:00.0: irq 42 for MSI/MSI-X
[ 368.741367] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 470.736939] aufs may_rename_srcdir:469:URL Classifier[4950]: renaming dir who has child(ren) on multiple branches, is not supported
[ 5447.098602] aufs au_new_inode:432:ldconfig[7147]: Warning: Un-notified UDBA or repeatedly renamed dir, b19, squashfs, libcups.so.2, hi7243, i4195.
[ 5646.746214] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
guest@porteus:~$
Ed
Ed_P
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#4
by Bogomips » 10 Jul 2016, 21:17
Tried in AF mode?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#5
by Ed_P » 10 Jul 2016, 21:33
Bogomips wrote:Tried in AF mode?
No but tried with no changes= operand.
Code: Select all
kernel /boot/syslinux/vmlinuz from=/ISOs/%ISO30% extramod=/porteus3.0/Modules;/porteus3.0/modsavedat volume=33 reboot=cold
Ed
Ed_P
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#6
by Ed_P » 10 Jul 2016, 22:07
Interesting. With my "AF" menu I am able to access the save.dat file!!
Code: Select all
kernel /boot/syslinux/vmlinuz from=/ISOs/%ISO30% extramod=/porteus3.0/modnetwork
I was suspecting the cause of the UUID problem was the location of the ISO file but apparently it's tied to one of my modules!! hmmmm
Thank you
Bogomips
A second question. If I check a save.dat file and see it is getting full I would like to be able to delete a file, usually something in the Downloads folder, and update the save.dat file without rebooting the system. Is that too crazy to consider?
I have 3 systems on my harddrive and 1 on a USB drive. AF mode is limited, imo, and if I could check all the save.dat files at one time and update if necessary it would be convenient.
Ed
Ed_P
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#7
by Ed_P » 10 Jul 2016, 23:56
Ed_P wrote:I was suspecting the cause of the UUID problem was the location of the ISO file but apparently it's tied to one of my modules!! hmmmm
I found the module causing the problem.
Code: Select all
guest@porteus:~$ ls /mnt/sda5/porteus3.0/modsavedat
porteussave.dat.xzm*
guest@porteus:~$
My "safe boot", for when the grandkids want to use the netbook, doesn't use the changes= option but does use the extramods= option which points to the backup of the save.dat file which is named as a mod file. This way no changes get made to the system when they use it but all the bookmarks and settings are there for them to use. And so to is it's UUID.
Thanks again
Bogomips.
Ed
Ed_P
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#8
by Bogomips » 11 Jul 2016, 00:18
Ed_P wrote:I have 3 systems on my harddrive and 1 on a USB drive. AF mode is limited, imo, and if I could check all the save.dat files at one time and update if necessary it would be convenient.
Just hypothesising here, that the save.dat is a flattened fileystem. Therefore to make changes you have to transform it into a filesystem in a fake root, preferably on a real filesystem thereby avoiding whiteout files when deleting, After cleaning it up the fakeroot has to be flattened into a save.dat file, somewhat along the lines of xzm2dir, followed after amendments, by dir2xzm.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#9
by Ed_P » 11 Jul 2016, 02:45
Wow. It took a time machine but I think I found the answer.
http://forum.porteus.org/viewtopic.php? ... 151#p25178
I haven't worried about these files in quite awhile.
Apparently whatever changes are made to a mlooped file are written to disk when the file is ulooped. Simple.
Ed
Ed_P
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#10
by Ed_P » 11 Jul 2016, 12:28
Last question, I promise. Can you give me a clue as to why this code doesn't work?
Code: Select all
UUIDck=`grep -A1 "duplicate UUID" /var/log/dmesg|tail `
echo UUIDck=$UUIDck
when dmesg | tail clearly shows:
Code: Select all
guest@porteus:~$ dmesg | tail
[ 15.490453] Console: switching to colour frame buffer device 170x48
[ 15.502196] radeon 0000:00:01.0: fb0: radeondrmfb frame buffer device
[ 15.502200] radeon 0000:00:01.0: registered panic notifier
[ 15.522454] [drm] Initialized radeon 2.37.0 20080528 for 0000:00:01.0 on minor 0
[ 18.347441] NET: Registered protocol family 10
[ 18.917994] atl1c 0000:06:00.0: irq 42 for MSI/MSI-X
[ 19.069128] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 272.086462] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 420.545306] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 475.177436] aufs may_rename_srcdir:469:URL Classifier[2822]: renaming dir who has child(ren) on multiple branches, is not supported
All I'm getting is:
Ed
Ed_P
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#11
by Bogomips » 11 Jul 2016, 13:12
Code: Select all
guest@porteus:~$ cat > t
[ 15.490453] Console: switching to colour frame buffer device 170x48
[ 15.502196] radeon 0000:00:01.0: fb0: radeondrmfb frame buffer device
[ 15.502200] radeon 0000:00:01.0: registered panic notifier
[ 15.522454] [drm] Initialized radeon 2.37.0 20080528 for 0000:00:01.0 on minor 0
[ 18.347441] NET: Registered protocol family 10
[ 18.917994] atl1c 0000:06:00.0: irq 42 for MSI/MSI-X
[ 19.069128] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 272.086462] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 420.545306] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 475.177436] aufs may_rename_srcdir:469:URL Classifier[2822]: renaming dir who has child(ren) on multiple branches, is not supported
Code: Select all
guest@porteus:~$ grep -A1 "duplicate UUID" t
[ 272.086462] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 420.545306] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 475.177436] aufs may_rename_srcdir:469:URL Classifier[2822]: renaming dir who has child(ren) on multiple branches, is not supported
Code: Select all
guest@porteus:~$ grep -A1 "duplicate UUID" t | tail
[ 272.086462] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 420.545306] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 475.177436] aufs may_rename_srcdir:469:URL Classifier[2822]: renaming dir who has child(ren) on multiple branches, is not supported
Code: Select all
guest@porteus:~$ u=$(grep -A1 "duplicate UUID" t | tail)
guest@porteus:~$ echo $u
[ 272.086462] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount [ 420.545306] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount [ 475.177436] aufs may_rename_srcdir:469:URL Classifier[2822]: renaming dir who has child(ren) on multiple branches, is not supported
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#12
by Ed_P » 11 Jul 2016, 13:43
Bogomips wrote:Code: Select all
guest@porteus:~$ cat > t
[ 15.490453] Console: switching to colour frame buffer device 170x48
[ 15.502196] radeon 0000:00:01.0: fb0: radeondrmfb frame buffer device
[ 15.502200] radeon 0000:00:01.0: registered panic notifier
[ 15.522454] [drm] Initialized radeon 2.37.0 20080528 for 0000:00:01.0 on minor 0
[ 18.347441] NET: Registered protocol family 10
[ 18.917994] atl1c 0000:06:00.0: irq 42 for MSI/MSI-X
[ 19.069128] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 272.086462] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 420.545306] XFS (loop28): Filesystem has duplicate UUID 97f3e427-7d04-4e91-af1e-770b4b99d3b8 - can't mount
[ 475.177436] aufs may_rename_srcdir:469:URL Classifier[2822]: renaming dir who has child(ren) on multiple branches, is not supported
So you're indicating that I need to write the log to another file then do my processing on it. Ok, but why can't I access the dmesg file directly?
The script I'm using doing invoke root privileges.
Code: Select all
guest@porteus:~$ u=$(grep -A1 "duplicate UUID" t | tail)
guest@porteus:~$ echo $u
Actually I started with something similar to this.
BTW This is what I get:
But I'll keep playing around.
Thanks
Bogomips.
-update-
The end results of my efforts, with your help:
Code: Select all
dmesg | tail > t
UUIDck=$(grep -A1 "duplicate UUID" t | tail)
if [ ! "$UUIDck" == "" ]; then
echo
echo " * This is NOT Always Fresh mode. * "
echo
fi
rm t
Ed
Ed_P
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#13
by Bogomips » 11 Jul 2016, 14:27
Ed_P wrote:So you're indicating that I need to write the log to another file then do my processing on it. Ok, but why can't I access the dmesg file directly?
No. All that was to indicate using your data, in order to prove the steps.
imo all that was needed:
Code: Select all
u=$(grep -A1 "duplicate UUID" /var/log/dmesg)
But the way it is now user friendlier:
Code: Select all
dmesg -H | tail > t
UUIDck=$(grep -A1 "duplicate UUID" t)
No need for another tail.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#14
by Ed_P » 11 Jul 2016, 15:12
Bogomips wrote:imo all that was needed:
Code: Select all
u=$(grep -A1 "duplicate UUID" /var/log/dmesg)
I'm pretty sure that's what I started with and it didn't work. But maybe with the tail option too.
But the way it is now user friendlier:
Code: Select all
dmesg -H | tail > t
UUIDck=$(grep -A1 "duplicate UUID" t)
No need for another tail.
Oh. Ok.
BTW For me I get this:
Code: Select all
guest@porteus:~$ dmesg -H | tail
dmesg: invalid option -- 'H'
Usage:
dmesg [options]
Options:
-C, --clear clear the kernel ring buffer
-c, --read-clear read and clear all messages
-D, --console-off disable printing messages to console
-d, --show-delta show time delta between printed messages
....
Ed
Ed_P
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#15
by Bogomips » 11 Jul 2016, 15:55
Code: Select all
guest@porteus:~$ dmesg -H | tail
[ +0.000001] Buffer I/O error on dev loop8, logical block 3, async page read
[ +2.403105] nouveau 0000:00:0d.0: bus: MMIO write of 024d0001 FAULT at 00b020
[ +4.659566] nouveau 0000:00:0d.0: bus: MMIO write of 01fb0001 FAULT at 00b030
[ +0.401214] nouveau 0000:00:0d.0: bus: MMIO write of 00000000 FAULT at 00b030
[Jul11 12:49] EXT4-fs (sda9): error count since last fsck: 12
[ +0.000012] EXT4-fs (sda9): initial error at time 1467742481: ext4_mb_generate_buddy:758
[ +0.000003] EXT4-fs (sda9): last error at time 1468173860: ext4_mb_generate_buddy:758
[Jul11 12:55] tun: Universal TUN/TAP device driver, 1.6
[ +0.000005] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[Jul11 13:12] EXT4-fs error (device sda9): ext4_mb_generate_buddy:758: group 555, block bitmap and bg descriptor inconsistent: 17559 vs 17561 free clusters
Code: Select all
guest@porteus:~$ dmesg -e | tail
[ +0.000001] Buffer I/O error on dev loop8, logical block 3, async page read
[ +2.403105] nouveau 0000:00:0d.0: bus: MMIO write of 024d0001 FAULT at 00b020
[ +4.659566] nouveau 0000:00:0d.0: bus: MMIO write of 01fb0001 FAULT at 00b030
[ +0.401214] nouveau 0000:00:0d.0: bus: MMIO write of 00000000 FAULT at 00b030
[Jul11 12:49] EXT4-fs (sda9): error count since last fsck: 12
[ +0.000012] EXT4-fs (sda9): initial error at time 1467742481: ext4_mb_generate_buddy:758
[ +0.000003] EXT4-fs (sda9): last error at time 1468173860: ext4_mb_generate_buddy:758
[Jul11 12:55] tun: Universal TUN/TAP device driver, 1.6
[ +0.000005] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[Jul11 13:12] EXT4-fs error (device sda9): ext4_mb_generate_buddy:758: group 555, block bitmap and bg descriptor inconsistent: 17559 vs 17561 free clusters
Code: Select all
guest@porteus:~$ which dmesg
/bin/dmesg
guest@porteus:~$ file /bin/dmesg
/bin/dmesg: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, stripped
Wonder if it's the same in 64 bit rc4. Will try later.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips