Re: libgparted bug.

2018-02-09 Thread deloptes
Gene Heskett wrote:

> Trying to make a backup image of a 64GB bootable sdcard. Th os say its
> 59.b GB when it mounts the original, but pull copy to a file and its
> nearly a megabyte bigger than 64gigs.  So obviously the file is bigger
> than a brand new unformatted disk.
> 

Hi Gene, you should know each partition has header or meta data, that is not
visible after mount. I can't recall where, but there was a document
(perhaps on Debian) that explained how the meta data looks like. So
basically with each partition operation you add a layer on top of the
physical device. For example you create a luks partition, it adds some meta
data (perhaps 1-2MB), you add a LVM on top it also adds some meta data, you
add the partition, it also adds some meta data.

The other concern could be that the 64GB are actually GB by 1000 (sales GB)
and not GiB.
For example my HDD and SSD report this

sudo fdisk -l /dev/sda
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors

sudo fdisk -l /dev/sdb
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors

I bought 500GB which seems to be equivalent of 465.8 GiB



Why don't you tar.gz or tar.bz2 your data instead of pulling multiple
0-bytes into backup?

regards





Re: libgparted bug.

2018-02-09 Thread Thomas Schmitt
Hi,

Gene Heskett wrote:
> Th os say its 59.b GB when it mounts the original
> [...]
> gene@coyote:~/rock64.imgs$ dd of=/dev/sdd bs=64k if=working-rock64.img
> dd: writing `/dev/sdd': No space left on device
> 976897+0 records in
> 976896+0 records out

That's the usual confusion between ISO GB (= 1 billion bytes) and programmer's
GiB (1024 * 1024 * 1024 bytes).
dd's "k" are programmer's KiB (= 1024).

976896*64*1024 = 64021856256 = 64.02 ISO GB = 59.63 programmer's GiB.

So it failed when it had already reached the 64 ISO GB limit.
No chance to return the card to the seller for being undersized, i guess.

> So nominally 600k of card disappeared. 

The old card is obviously slightly larger than the new one.


> Obviously I need to restrict dd to about the first 10 gigs as there is 
> not any data beyond that anyway.  So wash, rinse and repeat.
> But I need too, to shrink the file system, and the last partition on the 
> card to low enough I could use a 16GB sdcard as the test tool

You need to do it in a qualified way.
The partition table would be easy as soon as you identified what type
it is: MBR partition table or GPT.

> partition 7 is around 125k bigger than the disk

The task of shrinking a filesystem depends much on its type.
E.g. 
http://www.microhowto.info/howto/reduce_the_size_of_an_ext2_ext3_or_ext4_filesystem.html
(Disclaimer: I have never done this.)

> Why hasn't such a utility been done?

I guess because most people just buy a bigger medium.


Normally i would advise to copy old partition 7 file by file into a freshly
formatted filesystem in the slightly smaller partition 7 on the new card.
But the bootability might get damaged that way.

You would be lucky if the boot loader on the old card does not refer to
partition 7. I'd flatly give it a try:

- Copy the old card by dd up to the start of partition 7.
  This will most probably copy the oversized partition entry of old
  partition 7.

- So use a partition editor to delete partition 7 on the new card.
  Create an new partition 7 of a size that matches the card size.

- Create a new filesystem in the new partition 7.

- Mount both partitions 7 of old and new card.
  Copy all files from old partition 7 to new one. E.g. by cp -a.

If the new card then does not boot, you have to find out which boot loader
is installed, what it uses on partition 7, and how to re-install it so
that it works properly with new partition 7.


Have a nice day :)

Thomas



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 03:05:23 deloptes wrote:

> Gene Heskett wrote:
> > Trying to make a backup image of a 64GB bootable sdcard. Th os say
> > its 59.b GB when it mounts the original, but pull copy to a file and
> > its nearly a megabyte bigger than 64gigs.  So obviously the file is
> > bigger than a brand new unformatted disk.
>
> Hi Gene, you should know each partition has header or meta data, that
> is not visible after mount. I can't recall where, but there was a
> document (perhaps on Debian) that explained how the meta data looks
> like. So basically with each partition operation you add a layer on
> top of the physical device. For example you create a luks partition,
> it adds some meta data (perhaps 1-2MB), you add a LVM on top it also
> adds some meta data, you add the partition, it also adds some meta
> data.
>
> The other concern could be that the 64GB are actually GB by 1000
> (sales GB) and not GiB.
> For example my HDD and SSD report this
>
> sudo fdisk -l /dev/sda
> Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
>
> sudo fdisk -l /dev/sdb
> Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
>
> I bought 500GB which seems to be equivalent of 465.8 GiB
>
>
I've been playing in the night with gparted, which loads up the operating 
card out of the rockchip, which shows that a bit over 4GiB is used out 
of 59.6GiB for partition 7, the last partition in it, so I unmount it, 
select move/resize, and pull the right end of the gui's part 7 bar down 
to about 10GiB. which then shows 49GiB and change of unallocated space.

All of these sd images are shrunken in a similar manner, and once 
installed on whatever size of sd card you have, and that will hold the 
decompressed image, 8 gb is more than enough, and the last partition 
will be autoexpanded on the next boot to allocate the rest of the card.

So raspian, ayyufan, and all these guys obviously have a way to do this 
shrinkage down to only whats used.

But running gparted as root, it refuses to resize the SOB so I can turn 
around and reinstall a working system on an 8, 16, 32, 64 or even a 
128GiB card.

But gparted, running as root, refuses to do it, and its log info makes 
zero sense.

Because I want exactly the same file as you can down load. And this 
includes the stuff I've built and installed to get it to a fully working 
for my purposes install.

But, and heres the but, I have got to be able to make copies of a working 
install, but with a realtime kernel I've built. That way, I always have 
a backup system on the last card that I don't have to start over from 
scratch to rebuild.

Heres that log from telling it to resize part7.

Sorry about the html, but thats how gparted saves it.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>



GParted Details


GParted 0.12.1 --enable-libparted-dmraid
Libparted 2.3



Shrink /dev/sdd7 from 59.56 GiB to 6.91 
GiB  00:00:01( ERROR )








calibrate /dev/sdd7  00:00:00( 
SUCCESS )








path: /dev/sdd7start: 262,144end: 125,171,678size: 
124,909,535 (59.56 GiB)









check file system on /dev/sdd7 for errors and (if possible) fix 
them  00:00:00( ERROR )








e2fsck -f -y -v /dev/sdd7








/dev/sdd7 is mounted.






e2fsck 1.42.5 (29-Jul-2012)e2fsck: Cannot continue, 
aborting.
















Now part7 is NOT mounted which would explain the e2fsck failure.
Now, it does NOT tell me that e2fsck failed in the messages I see on 
screen.

> Why don't you tar.gz or tar.bz2 your data instead of pulling multiple
> 0-bytes into backup?
>
That should be adequately explained above.

> regards

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>



GParted Details


GParted 0.12.1 --enable-libparted-dmraid
Libparted 2.3



Shrink /dev/sdd7 from 59.56 GiB to 8.34 
GiB  00:00:01( ERROR )








calibrate /dev/sdd7  00:00:00( 
SUCCESS )








path: /dev/sdd7start: 262,144end: 125,171,678size: 
124,909,535 (59.56 GiB)









check file system on /dev/sdd7 for errors and (if possible) fix 
them  00:00:01( ERROR )








e2fsck -f -y -v /dev/sdd7








/dev/sdd7 is mounted.






e2fsck 1.42.5 (29-Jul-2012)e2fsck: Cannot continue, 
aborting.

















So I go back and repeat it, see above and it says the partition is not 
mounted on the gparted screen, but the error message says it is. So 
something is automounting it, what do I kill to stop that?


Thanks for any hints.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 03:33:38 Thomas Schmitt wrote:

> Hi,
>
> Gene Heskett wrote:
> > Th os say its 59.b GB when it mounts the original
> > [...]
> > gene@coyote:~/rock64.imgs$ dd of=/dev/sdd bs=64k
> > if=working-rock64.img dd: writing `/dev/sdd': No space left on
> > device
> > 976897+0 records in
> > 976896+0 records out
>
> That's the usual confusion between ISO GB (= 1 billion bytes) and
> programmer's GiB (1024 * 1024 * 1024 bytes).
> dd's "k" are programmer's KiB (= 1024).
>
> 976896*64*1024 = 64021856256 = 64.02 ISO GB = 59.63 programmer's GiB.
>
> So it failed when it had already reached the 64 ISO GB limit.
> No chance to return the card to the seller for being undersized, i
> guess.
>
> > So nominally 600k of card disappeared.
>
> The old card is obviously slightly larger than the new one.
>
> > Obviously I need to restrict dd to about the first 10 gigs as there
> > is not any data beyond that anyway.  So wash, rinse and repeat. But
> > I need too, to shrink the file system, and the last partition on the
> > card to low enough I could use a 16GB sdcard as the test tool
>
> You need to do it in a qualified way.
> The partition table would be easy as soon as you identified what type
> it is: MBR partition table or GPT.
>
> > partition 7 is around 125k bigger than the disk
>
> The task of shrinking a filesystem depends much on its type.
> E.g.
> http://www.microhowto.info/howto/reduce_the_size_of_an_ext2_ext3_or_ex
>t4_filesystem.html (Disclaimer: I have never done this.)
>
> > Why hasn't such a utility been done?
>
> I guess because most people just buy a bigger medium.
>
That is not the problem, something is automounting the partition as soon 
as gparted unmounts the SOB, so by the time you start the resize, its 
mounted again and gparted is locked out.
>
> Normally i would advise to copy old partition 7 file by file into a
> freshly formatted filesystem in the slightly smaller partition 7 on
> the new card. But the bootability might get damaged that way.
>
> You would be lucky if the boot loader on the old card does not refer
> to partition 7. I'd flatly give it a try:
>
> - Copy the old card by dd up to the start of partition 7.
>   This will most probably copy the oversized partition entry of old
>   partition 7.
>
> - So use a partition editor to delete partition 7 on the new card.
>   Create an new partition 7 of a size that matches the card size.
>
> - Create a new filesystem in the new partition 7.
>
> - Mount both partitions 7 of old and new card.
>   Copy all files from old partition 7 to new one. E.g. by cp -a.
>
> If the new card then does not boot, you have to find out which boot
> loader is installed, what it uses on partition 7, and how to
> re-install it so that it works properly with new partition 7.
>
>
> Have a nice day :)
>
> Thomas



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: libgparted bug.

2018-02-09 Thread Thomas Schmitt
Hi,

Gene Heskett wrote:
> That is not the problem, something is automounting the partition as soon 
> as gparted unmounts the SOB, so by the time you start the resize, its 
> mounted again and gparted is locked out.

If explicit unmounting does not help, and if manual execution of the
gparted helper programs shows the same problems, then you will have
to do it without resizing. I.e. the oldfashioned way of making a new
partition with a new filesystem into which you copy the files of the
old filesystem.


Have a nice day :)

Thomas



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 03:52:05 Gene Heskett wrote:

> On Friday 09 February 2018 03:05:23 deloptes wrote:
> > Gene Heskett wrote:
> > > Trying to make a backup image of a 64GB bootable sdcard. Th os say
> > > its 59.b GB when it mounts the original, but pull copy to a file
> > > and its nearly a megabyte bigger than 64gigs.  So obviously the
> > > file is bigger than a brand new unformatted disk.
> >
> > Hi Gene, you should know each partition has header or meta data,
> > that is not visible after mount. I can't recall where, but there was
> > a document (perhaps on Debian) that explained how the meta data
> > looks like. So basically with each partition operation you add a
> > layer on top of the physical device. For example you create a luks
> > partition, it adds some meta data (perhaps 1-2MB), you add a LVM on
> > top it also adds some meta data, you add the partition, it also adds
> > some meta data.
> >
> > The other concern could be that the 64GB are actually GB by 1000
> > (sales GB) and not GiB.
> > For example my HDD and SSD report this
> >
> > sudo fdisk -l /dev/sda
> > Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
> >
> > sudo fdisk -l /dev/sdb
> > Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
> >
> > I bought 500GB which seems to be equivalent of 465.8 GiB
>
> I've been playing in the night with gparted, which loads up the
> operating card out of the rockchip, which shows that a bit over 4GiB
> is used out of 59.6GiB for partition 7, the last partition in it, so I
> unmount it, select move/resize, and pull the right end of the gui's
> part 7 bar down to about 10GiB. which then shows 49GiB and change of
> unallocated space.
>
> All of these sd images are shrunken in a similar manner, and once
> installed on whatever size of sd card you have, and that will hold the
> decompressed image, 8 gb is more than enough, and the last partition
> will be autoexpanded on the next boot to allocate the rest of the
> card.
>
> So raspian, ayyufan, and all these guys obviously have a way to do
> this shrinkage down to only whats used.
>
> But running gparted as root, it refuses to resize the SOB so I can
> turn around and reinstall a working system on an 8, 16, 32, 64 or even
> a 128GiB card.
>
> But gparted, running as root, refuses to do it, and its log info makes
> zero sense.
>
> Because I want exactly the same file as you can down load. And this
> includes the stuff I've built and installed to get it to a fully
> working for my purposes install.
>
> But, and heres the but, I have got to be able to make copies of a
> working install, but with a realtime kernel I've built. That way, I
> always have a backup system on the last card that I don't have to
> start over from scratch to rebuild.
>
> Heres that log from telling it to resize part7.
>
> Sorry about the html, but thats how gparted saves it.
>
>  Transitional//EN'
> 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>  xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US' lang='en-US'>
> 
> 
> GParted Details
> 
> 
> GParted 0.12.1 --enable-libparted-dmraid
> Libparted 2.3
> 
> 
> 
> Shrink /dev/sdd7 from 59.56 GiB to 6.91
> GiB  00:00:01( ERROR )
> 
> 
> 
> 
> 
> 
> 
> 
> calibrate /dev/sdd7  00:00:00(
> SUCCESS )
> 
> 
> 
> 
> 
> 
> 
> 
> path: /dev/sdd7start: 262,144end: 125,171,678 />size: 124,909,535 (59.56 GiB)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> check file system on /dev/sdd7 for errors and (if possible) fix
> them  00:00:00( ERROR )
> 
> 
> 
> 
> 
> 
> 
> 
> e2fsck -f -y -v /dev/sdd7
> 
> 
> 
> 
> 
> 
> 
> 
> /dev/sdd7 is mounted.
> 
> 
> 
> 
> 
> 
> e2fsck 1.42.5 (29-Jul-2012)e2fsck: Cannot continue,
> aborting.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Now part7 is NOT mounted which would explain the e2fsck failure.
> Now, it does NOT tell me that e2fsck failed in the messages I see on
> screen.
>
> > Why don't you tar.gz or tar.bz2 your data instead of pulling
> > multiple 0-bytes into backup?
>
> That should be adequately explained above.
>
> > regards
>
>  Transitional//EN'
> 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>  xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US' lang='en-US'>
> 
> 
> GParted Details
> 
> 
> GParted 0.12.1 --enable-libparted-dmraid
> Libparted 2.3
> 
> 
> 
> Shrink /dev/sdd7 from 59.56 GiB to 8.34
> GiB  00:00:01( ERROR )
> 
> 
> 
> 
> 
> 
> 
> 
> calibrate /dev/sdd7  00:00:00(
> SUCCESS )
> 
> 
> 
> 
> 
> 
> 
> 
> path: /dev/sdd7start: 262,144end: 125,171,678 />size: 124,909,535 (59.56 GiB)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> check file system on /dev/sdd7 for errors and (if possible) fix
> them  00:00:01( ERROR )
> 
> 
> 
> 
> 
> 
> 
> 
> e2fsck -f -y -v /dev/sdd7
> 
> 
> 
> 
> 
> 
> 
> 
> /dev/sdd7 is mounted.
> 
> 
> 
> 
> 
> 
> e2fsck 1.42.5 (29-Jul-2012)e2fsck: Cannot continue,
> aborting.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 04:11:42 Thomas Schmitt wrote:

> Hi,
>
> Gene Heskett wrote:
> > That is not the problem, something is automounting the partition as
> > soon as gparted unmounts the SOB, so by the time you start the
> > resize, its mounted again and gparted is locked out.
>
> If explicit unmounting does not help, and if manual execution of the
> gparted helper programs shows the same problems, then you will have
> to do it without resizing. I.e. the oldfashioned way of making a new
> partition with a new filesystem into which you copy the files of the
> old filesystem.
>
>
> Have a nice day :)
>
> Thomas

I killed udev for /dev/sdd, gparted works now. But I really need a 
quicker way than editing a udev rule. I wonder if I could make udev 
aware that gparted was running.  That would be ideal. So would 
meaningfull gparted error reporting without having to wade thru a 
kilobyte of (spit) html. I'm going back to bed...


-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: Sound devices.

2018-02-09 Thread Michael Lange
Hi,

On Thu, 08 Feb 2018 11:48:46 -0800
pe...@easthope.ca wrote:

> Hi,
> 
> sox is installed and 
>   play /usr/share/sounds/ekiga/ring.wav
> produces the sound.
> 
> According to https://wiki.debian.org/SoundFAQ
>   cat /usr/share/sounds/ekiga/ring.wav >/dev/dsp
> should also.  In fact it gives nothing but the command prompt.

probably the snd-pcm-oss driver is not loaded and thus /dev/dsp does not
exist.

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Suffocating together ... would create heroic camaraderie.
-- Khan Noonian Singh, "Space Seed", stardate 3142.8



Re: libgparted bug.

2018-02-09 Thread Thomas Schmitt
Hi,

> Got the sonofabitch, I added sdd to the ignore line 
> in /lib/udev/rules.d/60-persistent-storage.rules.

What exactly did you do ?
("ignore line" does not give me insight when looking at the file.)


> I wonder if I could make udev 
> aware that gparted was running.  That would be ideal.

Ideal would be if the systemd/udev community would take into respect that
they are not the only ones who want to access devices.

If i execute
  dd if=/dev/sr4 count=1 of=/dev/null
while the DVD drive tray is out, then the tray gets pulled in, followed by
the immediate error message "No medium found", and then the tray comes out
immediately.
On a second try, the tray stays in. But again dd reports "No medium found"
and fails.

I can see the theoretically sufficient waiting loop in function sr_do_ioctl()
of drivers/scsi/sr_ioctl.c . It should really suffice, because i have a
similar repetition loop in libburn, and i can see by libburn's SCSI log
that the drive only emits the expected reply messages which should cause
the sr_do_ioctl() loop to repeat the SCSI command in question.

Everything in the kernel looks like it should work. Nevertheless, some
entity must be accessing the drive without going through sr_do_ioctl()
and obviously it has no clue of the peculiarities of a DVD drive.

This looks much like the footprints of systemd and udev.
I fiddled with 60-persistent-storage.rules too, but could not cause a
change in behavior.
Thus my request to see your succeful remedy for sdd.


Have a nice day :)

Thomas



Re:Re wicd vs network-manager

2018-02-09 Thread rodaryj
I can't find it but I suppose you mean several connections on the same 
interface, since the official website says two interfaces won't be possible 
before version 2.0 (last one is 1.7.5). 
https://answers.launchpad.net/wicd/+faq/1868



New Kernel fails to boot when laptop is plugged in

2018-02-09 Thread Henning Follmann
Hello,
I have a strange issue with the newest kernel
4.9.0-5-amd64 on this 2011 Macbook Pro.
As far as I can see it has to do with the power management of this laptop.
Whenever the laptop is on power supply the boot process stops hard after
I enter the passphrase for the encrypted lvm. There is one last message
that it tries to mount root but it stops hard there. There is also no log
(of course not because there is no device to write to yet).
when I unplug the laptop during boot it boots fine.
Previous kernel do not show this behavior.

-H

-- 
Henning Follmann   | hfollm...@itcfollmann.com



Re: apt-get update error

2018-02-09 Thread Frank

Op 08-02-18 om 22:27 schreef Sven Hartge:

Forest Dean Feighner  wrote:

On Thu, Feb 8, 2018 at 3:36 PM, Greg Wooledge  wrote:

On Thu, Feb 08, 2018 at 03:26:40PM -0500, Forest Dean Feighner wrote:



W: http://security.debian.org/debian-security/dists/stretch/updates/InRelease:
The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is
not readable by user '_apt' executing apt-key.



-rw--- 1 root root   32 Feb  6 17:58 trusted.gpg


Synaptic strikes again. :(



Ah, so the error is from using Synaptic rather than from the update of
libtasn1-6?



That's the only recent update I've done and I didn't realize Syaptic would
write the file.


The problem is from synaptic creating /etc/apt/trusted.gpg with too
narrow permissions,


Actually, it's not synaptic that's doing that, but the executable 
software-properties-gtk when it's called by synaptic. So if you run that 
separately, you'll also end up with a messed up /etc/apt/trusted.gpg file.


https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867681

Regards,
Frank



Re: I do not want to install Linux

2018-02-09 Thread Curt
On 2018-02-09, Richard Hector  wrote:
>
> Hmmm ... needs work on both scanning and rhyme, I'm afraid :-(
>
> There once was a scammer from Bali
> Who did all his hacking on Kali
> The state of Nigeria
> He said was inferior
> So he routed all his scams through Mali.
>
> Though I'm not sure how much 'hacking' is done by scammers.
>
> And it won't work so well for rhotic accents.

There once was a hacker from Bali 
Who did her forensics on Kali
One fine day to be rude 
She modeled in the nude 
Got fingered by Tom and Dick and Sally.

> Richard
>
>


-- 
“True terror is to wake up one morning and discover that your high school class
is running the country.” – Kurt Vonnegut



Re: New Kernel fails to boot when laptop is plugged in

2018-02-09 Thread Forest Dean Feighner
You might try some kernel parameters.

"ignore_loglevel[KNL]
Ignore loglevel setting - this will print /all/
kernel messages to the console. Useful for debugging.
We also add it as printk module parameter, so users
could change it dynamically, usually by
/sys/module/printk/parameters/ignore_loglevel.
"
Quite a few could be helpful in finding the error:

https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html

hth
Forest


On Fri, Feb 9, 2018 at 7:17 AM, Henning Follmann 
wrote:

> Hello,
> I have a strange issue with the newest kernel
> 4.9.0-5-amd64 on this 2011 Macbook Pro.
> As far as I can see it has to do with the power management of this laptop.
> Whenever the laptop is on power supply the boot process stops hard after
> I enter the passphrase for the encrypted lvm. There is one last message
> that it tries to mount root but it stops hard there. There is also no log
> (of course not because there is no device to write to yet).
> when I unplug the laptop during boot it boots fine.
> Previous kernel do not show this behavior.
>
> -H
>
> --
> Henning Follmann   | hfollm...@itcfollmann.com
>
>


Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 05:17:35 Thomas Schmitt wrote:

> Hi,
>
> > Got the sonofabitch, I added sdd to the ignore line
> > in /lib/udev/rules.d/60-persistent-storage.rules.
>
> What exactly did you do ?
> ("ignore line" does not give me insight when looking at the file.)
>
> > I wonder if I could make udev
> > aware that gparted was running.  That would be ideal.
>
> Ideal would be if the systemd/udev community would take into respect
> that they are not the only ones who want to access devices.
>
> If i execute
>   dd if=/dev/sr4 count=1 of=/dev/null
> while the DVD drive tray is out, then the tray gets pulled in,
> followed by the immediate error message "No medium found", and then
> the tray comes out immediately.
> On a second try, the tray stays in. But again dd reports "No medium
> found" and fails.
>
> I can see the theoretically sufficient waiting loop in function
> sr_do_ioctl() of drivers/scsi/sr_ioctl.c . It should really suffice,
> because i have a similar repetition loop in libburn, and i can see by
> libburn's SCSI log that the drive only emits the expected reply
> messages which should cause the sr_do_ioctl() loop to repeat the SCSI
> command in question.
>
> Everything in the kernel looks like it should work. Nevertheless, some
> entity must be accessing the drive without going through sr_do_ioctl()
> and obviously it has no clue of the peculiarities of a DVD drive.
>
> This looks much like the footprints of systemd and udev.
> I fiddled with 60-persistent-storage.rules too, but could not cause a
> change in behavior.
> Thus my request to see your succeful remedy for sdd.

# skip rules for inappropriate block devices
KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|sdd", 
GOTO="persistent_storage_end"

The
|sdd
is the addition.

Now to calculate how much of sdd to have dd make a copy of. IOf I use a 
bs=65536, then count=122,070 covers 8Gb, and it says 7.74 now belongs 
toi part 7. The first 6 parts only occupy about 140 megs.
lets see if this gets me a working image once dd'd back to any card 16Gb 
or bigger.

dd if=/dev/sdd of=rock-img-shrunk.img bs=65536 count=122070
Based on my pisspoor short term memory, I wrote me a script to make 
endless copies :-) Now lets see if that works. Seems to be, led in 
reader is blinking.
122070+0 records in
122070+0 records out
779520 bytes (8.0 GB) copied, 399.487 s, 20.0 MB/s

But gparted can't see a thing except an empty card. WTF? Looking thru the 
disk file the above dd invocation generated. Slow slogging with 
khexedit. No scroll bar. Standing on down arrow is 16 bytes a line, some 
data even readable stuff in the first few pages, but its  at 
0004: offset yet. I give up on khexedit, there has to be a better 
tool for BIG files.

So I'll post this, see if the missus is ready for some coffee & see what 
else I can find to inspect this image file that at least has a 
pageup/pagedown function.
>
> Have a nice day :)
>
> Thomas



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: Debian buster & gnucash

2018-02-09 Thread Michael Stone

On Thu, Feb 08, 2018 at 04:24:05PM -0800, Jimmy Johnson wrote:
You're right and they are saying it's RC-buggy, I should have looked 
further into it than I did before posting, my bad and it's probably 
not a good idea to be running an app like GNUCash on testing or Sid in 
the first place.


Yes, I'd suggest adding stable to sources.list instead, and sticking 
with that version. 


Mike Stone



Re: Re wicd vs network-manager

2018-02-09 Thread David Wright
On Fri 09 Feb 2018 at 11:51:34 (+0100), roda...@free.fr wrote:
>   I can't find it but I suppose you mean several connections on the same 
> interface, since the official website says two interfaces won't be possible 
> before version 2.0 (last one is 1.7.5). 
>   https://answers.launchpad.net/wicd/+faq/1868

Technically, the answer to your first post is the three files
/etc/wicd/*conf whose location emphasises that its effect is designed
to be system-wide: when you logout (or before you login), the
connections are left up for further use. (There's a ~/.wicd/ which is
left empty, confirming that that is *not* where any configuration is
kept.)

Your guess in this post is correct. From man wicd:

 For wired connections, users have many options for determining what
 network settings to use.  Wicd allows creation of an unlimited number
 of wired profiles, each of which has its own unique settings.  The
 user can choose to automatically connect to a selected default
 profile, choose a profile from a pop-up window every time wicd
 connects, or have wicd automatically choose the last profile used to
 manually connect.

IOW wicd is to make it easy for ornery users to dynamically find and
configure a (=one) network connection wherever they find themselves,
through any of a cli, gui, or tui (curses, what I use; works in a VC).

But if you're plumbed in with two or more NICs, I think you'd be
better off using /etc/network/interfaces. And the newish interface
naming scheme may help you to be sure of which NIC is which, even
when they're identical models (unlike in days of yore).

Cheers,
David.



a hexeditor please

2018-02-09 Thread Gene Heskett
Greetings all;

Trying to scan thru an 8Gb file dd has made of an sd card, I find 
khexedits lack of a scroll bar to be a huge hindrance.

Do we have one of those critters that will let me scan thru a file that 
big looking for data besides 00 00, and will do it yet this year?

Story so far:

64 gb card from a working rock64. Edited 60-persistent-storage.rule to 
exclude /dev/sdd so gparted could shrink the last partition down to a 
usable size, but still above the occupied area.

Used dd to make a file of the first 8Gb, wrote that 8Gb to another 
identical 64Gb card. gparted says its a blank card. So I want to inspect 
the file, but khexedit, with no scroll bar, makes that down arrow scan a 
multiyear project.

Do we have a better hex editor?

Thanks all;

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: a hexeditor please

2018-02-09 Thread Eduardo M KALINOWSKI

On sex, 09 fev 2018, Gene Heskett wrote:

Greetings all;

Trying to scan thru an 8Gb file dd has made of an sd card, I find
khexedits lack of a scroll bar to be a huge hindrance.


I find it hard to believe it doesn't. And some (old, it's true)  
screenshots I found show a scroll bar.


Perhaps the scroll bar is hidden unless the mouse is over it?


Do we have a better hex editor?


emacs with hexl-mode?

--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br




Re: a hexeditor please

2018-02-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, Feb 09, 2018 at 10:36:10AM -0500, Gene Heskett wrote:
> Greetings all;
> 
> Trying to scan thru an 8Gb file dd has made of an sd card, I find 
> khexedits lack of a scroll bar to be a huge hindrance.
> 
> Do we have one of those critters that will let me scan thru a file that 
> big looking for data besides 00 00, and will do it yet this year?
> 
> Story so far:

[...]

You sure you want an *editor*, as in "you plan on edit things"?

If not, hexdump -C is your friend (it will abbreviate reams of
zeros and other repeated stuff by default). From hexdump's fine
manual:

  The options are as follows:
  [...]
  -v  Cause hexdump to display all input data.  Without
  the -v option, any number of groups of output lines,
  which would be identical to the immediately preceding
  group of output lines (except for the input offsets),
  are replaced with a line comprised of a single asterisk.

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlp9xBYACgkQBcgs9XrR2kZQTQCfUIvliF+9j7UsmKhsjps4s6nz
zmoAnif1zQ/a4NIDoIqkCl4iOlcnYrbf
=Yy9P
-END PGP SIGNATURE-



Re: libgparted bug.

2018-02-09 Thread Thomas Schmitt
Hi,

> # skip rules for inappropriate block devices
> KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|sdd", 
> GOTO="persistent_storage_end"

That's a neighbor of where i once stopped to experiment.
So now:

KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|zram*|mmcblk[0-9]*rpmb|sr4", 
GOTO="persistent_storage_end"

But still immediate "No medium" and nearly immediate ejection of tray.
(It seems that it ejects if the previously inserted tray was empty.)

I switched off-and-on the USB box with the drive. No improvement. Grrr.


> bs=65536, then count=122,070 covers 8Gb [...]
> 779520 bytes (8.0 GB) copied, 399.487 s, 20.0 MB/s

Sparsely and only ISO GBs.
I'd rather assume the larger count=131072 = 8589934592 = 8 GiB.


> dd if=/dev/sdd of=rock-img-shrunk.img bs=65536 count=122070
> gparted can't see a thing except an empty card. WTF?

Here you copied /dev/sdd to rock-img-shrunk.img.

Quote from the other thread, "a hexeditor please":
> Used dd to make a file of the first 8Gb, wrote that 8Gb to another
> identical 64Gb card.

By what command did you copy the file to the other card ?

What do other partition editors report about rock-img-shrunk.img 
and the other card ?
E.g.
  /sbin/fdisk -l rock-img-shrunk.img
  /sbin/fdisk -l /dev/sdd

(I assume they do not need hdparm -z which lets the kernel re-assess the
 partition table.)


> Do we have a better hex editor?

First parts of partition tables should be to see within the first 1024 bytes.

  dd if=/dev/sdd bs=1024 count=1 | od -t x1 | less

The partition table of an MBR begins at byte 446, octal: 0676.
It ends 64 bytes later before 0776, where you should read "55 aa".

GPT header begins at byte 512, octal 01000, by "EFI PART":
  0001000 45 46 49 20 50 41 52 54 ...


Have a nice day :)

Thomas



Re: a hexeditor please

2018-02-09 Thread Stefan Pietsch
On 09.02.2018 16:36, Gene Heskett wrote:

> Trying to scan thru an 8Gb file dd has made of an sd card, I find 
> khexedits lack of a scroll bar to be a huge hindrance.
> 
> Do we have one of those critters that will let me scan thru a file that 
> big looking for data besides 00 00, and will do it yet this year?
> 
> Story so far:
> 
> 64 gb card from a working rock64. Edited 60-persistent-storage.rule to 
> exclude /dev/sdd so gparted could shrink the last partition down to a 
> usable size, but still above the occupied area.
> 
> Used dd to make a file of the first 8Gb, wrote that 8Gb to another 
> identical 64Gb card. gparted says its a blank card. So I want to inspect 
> the file, but khexedit, with no scroll bar, makes that down arrow scan a 
> multiyear project.
> 
> Do we have a better hex editor?

If you like the command line try radare2:

https://screenshots.debian.net/package/radare2
https://radare.gitbooks.io/radare2book/content/search_bytes/intro.html


Regards,
Stefan



Re: a hexeditor please

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 10:42:06 Eduardo M KALINOWSKI wrote:

> On sex, 09 fev 2018, Gene Heskett wrote:
> > Greetings all;
> >
> > Trying to scan thru an 8Gb file dd has made of an sd card, I find
> > khexedits lack of a scroll bar to be a huge hindrance.
>
> I find it hard to believe it doesn't. And some (old, it's true)
> screenshots I found show a scroll bar.
>
> Perhaps the scroll bar is hidden unless the mouse is over it?
>
> > Do we have a better hex editor?
>
> emacs with hexl-mode?

I had forgotten that mc could do a quite stirling job of that, and it 
shows the last valid data at around 5.3 gb into the file, so the file 
seems to be good. But next, fix the missus some breakfast.



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: New Kernel fails to boot when laptop is plugged in

2018-02-09 Thread Marc Auslander
Have you tried adding pti=off to the kernel boot line?  This is supposed
to turn off the spectre/meltdown "fix".

Henning Follmann  writes:

>Hello,
>I have a strange issue with the newest kernel
>4.9.0-5-amd64 on this 2011 Macbook Pro.
>As far as I can see it has to do with the power management of this laptop.
>Whenever the laptop is on power supply the boot process stops hard after
>I enter the passphrase for the encrypted lvm. There is one last message
>that it tries to mount root but it stops hard there. There is also no log
>(of course not because there is no device to write to yet).
>when I unplug the laptop during boot it boots fine.
>Previous kernel do not show this behavior.
>
>-H



Re: libgparted bug.

2018-02-09 Thread David Wright
On Fri 09 Feb 2018 at 04:20:51 (-0500), Gene Heskett wrote:
> On Friday 09 February 2018 04:11:42 Thomas Schmitt wrote:
> 
> > Hi,
> >
> > Gene Heskett wrote:
> > > That is not the problem, something is automounting the partition as
> > > soon as gparted unmounts the SOB, so by the time you start the
> > > resize, its mounted again and gparted is locked out.
> >
> > If explicit unmounting does not help, and if manual execution of the
> > gparted helper programs shows the same problems, then you will have
> > to do it without resizing. I.e. the oldfashioned way of making a new
> > partition with a new filesystem into which you copy the files of the
> > old filesystem.
> >
> >
> > Have a nice day :)
> >
> > Thomas
> 
> I killed udev for /dev/sdd, gparted works now. But I really need a 
> quicker way than editing a udev rule. I wonder if I could make udev 
> aware that gparted was running.  That would be ideal. So would 
> meaningfull gparted error reporting without having to wade thru a 
> kilobyte of (spit) html. I'm going back to bed...

Would I be write in thinking that killing sdd just there prevents the
appearance of /dev/disk/by-{this,that and the other} appearing also?

Do you run with a DE? What would happen if you tried all this in a VC
before starting X? My experience of wheezy, jessie (which you're
running?) and stretch is that nothing has ever automounted itself
unless I boot from a live stick. But I only run fvwm.

Cheers,
David.



Re: a hexeditor please

2018-02-09 Thread Fred

On 02/09/2018 08:36 AM, Gene Heskett wrote:

Greetings all;

Trying to scan thru an 8Gb file dd has made of an sd card, I find
khexedits lack of a scroll bar to be a huge hindrance.

Do we have one of those critters that will let me scan thru a file that
big looking for data besides 00 00, and will do it yet this year?

Story so far:

64 gb card from a working rock64. Edited 60-persistent-storage.rule to
exclude /dev/sdd so gparted could shrink the last partition down to a
usable size, but still above the occupied area.

Used dd to make a file of the first 8Gb, wrote that 8Gb to another
identical 64Gb card. gparted says its a blank card. So I want to inspect
the file, but khexedit, with no scroll bar, makes that down arrow scan a
multiyear project.

Do we have a better hex editor?

Thanks all;


How about using a text editor (like nedit) that has a search function.

Best regards,
Fred



Re: a hexeditor please

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 10:53:58 to...@tuxteam.de wrote:

> On Fri, Feb 09, 2018 at 10:36:10AM -0500, Gene Heskett wrote:
> > Greetings all;
> >
> > Trying to scan thru an 8Gb file dd has made of an sd card, I find
> > khexedits lack of a scroll bar to be a huge hindrance.
> >
> > Do we have one of those critters that will let me scan thru a file
> > that big looking for data besides 00 00, and will do it yet this
> > year?
> >
> > Story so far:
>
> [...]
>
> You sure you want an *editor*, as in "you plan on edit things"?
>
> If not, hexdump -C is your friend (it will abbreviate reams of
> zeros and other repeated stuff by default). From hexdump's fine
> manual:
>
>   The options are as follows:
>   [...]
>   -v  Cause hexdump to display all input data.  Without
>   the -v option, any number of groups of output lines,
>   which would be identical to the immediately preceding
>   group of output lines (except for the input offsets),
>   are replaced with a line comprised of a single asterisk.
>
> Cheers
> -- t

Thanks, it is working fine, but even at 7*10ee33 fenceposts a minute, 
will take it a while to get to end end of the files data.  That will be 
at offset about e000 I think. Maybe a bit more, but the first gig 
sure isn't blank. I am thinking the file is probably good. And despite 
adding that skip me rule to udev, the source card is being shown as 
mounted on my tde gui.

So how the hell do we stop udev from automounting it?



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 11:01:38 Thomas Schmitt wrote:

> Hi,
>
> > # skip rules for inappropriate block devices
> > KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|sdd",
> > GOTO="persistent_storage_end"
>
> That's a neighbor of where i once stopped to experiment.
> So now:
>
> KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|zram*|mmcblk[0-9]*rpmb|sr
>4", GOTO="persistent_storage_end"
>
> But still immediate "No medium" and nearly immediate ejection of tray.
> (It seems that it ejects if the previously inserted tray was empty.)
>
> I switched off-and-on the USB box with the drive. No improvement.
> Grrr.
>
> > bs=65536, then count=122,070 covers 8Gb [...]
> > 779520 bytes (8.0 GB) copied, 399.487 s, 20.0 MB/s
>
> Sparsely and only ISO GBs.
> I'd rather assume the larger count=131072 = 8589934592 = 8 GiB.
>
> > dd if=/dev/sdd of=rock-img-shrunk.img bs=65536 count=122070
> > gparted can't see a thing except an empty card. WTF?
>
> Here you copied /dev/sdd to rock-img-shrunk.img.
>
> Quote from the other thread, "a hexeditor please":
> > Used dd to make a file of the first 8Gb, wrote that 8Gb to another
> > identical 64Gb card.
>
> By what command did you copy the file to the other card ?
>
dd if=rock-img-shrunk.img bs=65536 count=122070 of=/dev/sdd
Which is the reverse direction of the command generated that file...

> What do other partition editors report about rock-img-shrunk.img
> and the other card ?
> E.g.
>   /sbin/fdisk -l rock-img-shrunk.img
>   /sbin/fdisk -l /dev/sdd

When did fdisk learn about GPT part tables?

gene@coyote:~/rock64.imgs$   /sbin/fdisk -l rock-img-shrunk.img

WARNING: GPT (GUID Partition Table) detected on 'rock-img-shrunk.img'! 
The util fdisk doesn't support GPT. Use GNU Parted.

Disk rock-img-shrunk.img: 7999 MB, 779520 bytes
255 heads, 63 sectors/track, 972 cylinders, total 15624960 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x

  Device Boot  Start End  Blocks   Id  System
rock-img-shrunk.img 1  1   12517171162585855+  ee  GPT

And
gene@coyote:~/rock64.imgs$  /sbin/fdisk -l /dev/sdd

Disk /dev/sdd: 64.0 GB, 64021856256 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125042688 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x

   Device Boot  Start End  Blocks   Id  System
/dev/sdd 1  32768   125042687625049607  HPFS/NTFS/exFAT

huh

> (I assume they do not need hdparm -z which lets the kernel re-assess
> the partition table.)
>
> > Do we have a better hex editor?
>
> First parts of partition tables should be to see within the first 1024
> bytes.
>
>   dd if=/dev/sdd bs=1024 count=1 | od -t x1 | less
>
> The partition table of an MBR begins at byte 446, octal: 0676.
> It ends 64 bytes later before 0776, where you should read "55 aa".
>
> GPT header begins at byte 512, octal 01000, by "EFI PART":
>   0001000 45 46 49 20 50 41 52 54 ...
>
>
> Have a nice day :)
>
> Thomas



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: a hexeditor please

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 11:11:12 Stefan Pietsch wrote:

> On 09.02.2018 16:36, Gene Heskett wrote:
> > Trying to scan thru an 8Gb file dd has made of an sd card, I find
> > khexedits lack of a scroll bar to be a huge hindrance.
> >
> > Do we have one of those critters that will let me scan thru a file
> > that big looking for data besides 00 00, and will do it yet this
> > year?
> >
> > Story so far:
> >
> > 64 gb card from a working rock64. Edited 60-persistent-storage.rule
> > to exclude /dev/sdd so gparted could shrink the last partition down
> > to a usable size, but still above the occupied area.
> >
> > Used dd to make a file of the first 8Gb, wrote that 8Gb to another
> > identical 64Gb card. gparted says its a blank card. So I want to
> > inspect the file, but khexedit, with no scroll bar, makes that down
> > arrow scan a multiyear project.
> >
> > Do we have a better hex editor?
>
> If you like the command line try radare2:
>
> https://screenshots.debian.net/package/radare2
> https://radare.gitbooks.io/radare2book/content/search_bytes/intro.html
>
Looks interesting, will it run on 32 bit wheezy?
>
> Regards,
> Stefan

Thanks.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 11:50:46 David Wright wrote:

> On Fri 09 Feb 2018 at 04:20:51 (-0500), Gene Heskett wrote:
> > On Friday 09 February 2018 04:11:42 Thomas Schmitt wrote:
> > > Hi,
> > >
> > > Gene Heskett wrote:
> > > > That is not the problem, something is automounting the partition
> > > > as soon as gparted unmounts the SOB, so by the time you start
> > > > the resize, its mounted again and gparted is locked out.
> > >
> > > If explicit unmounting does not help, and if manual execution of
> > > the gparted helper programs shows the same problems, then you will
> > > have to do it without resizing. I.e. the oldfashioned way of
> > > making a new partition with a new filesystem into which you copy
> > > the files of the old filesystem.
> > >
> > >
> > > Have a nice day :)
> > >
> > > Thomas
> >
> > I killed udev for /dev/sdd, gparted works now. But I really need a
> > quicker way than editing a udev rule. I wonder if I could make udev
> > aware that gparted was running.  That would be ideal. So would
> > meaningfull gparted error reporting without having to wade thru a
> > kilobyte of (spit) html. I'm going back to bed...
>
> Would I be write in thinking that killing sdd just there prevents the
> appearance of /dev/disk/by-{this,that and the other} appearing also?
>
It must be doing an end run by that means. Can that be fixed too?

> Do you run with a DE? What would happen if you tried all this in a VC
> before starting X? My experience of wheezy, jessie (which you're
> running?) and stretch is that nothing has ever automounted itself
> unless I boot from a live stick. But I only run fvwm.
>
This machine is running TDE as its x-gui, r14.0.5 it says.

> Cheers,
> David.



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Problems in debian-9.3.0-amd64-DVD-2.iso and debian-9.3.0-amd64-DVD-3.iso

2018-02-09 Thread Serge LAOT

Hello,

I have found some discrepencies between filenames in './pool/main/' and 
the filenames in 'md5sum.txt'.


MD5 signatures of the real file in DVD and the file in 'md5sum.txt' match.

30 in DVD 2 and 1 in DVD 3. Here is the list :

DiskFile in md5sum.txt  Real file
2 
./pool/main/m/mono/libmono-compilerservices-symbolwriter4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-compilerservices-symbolwriter4.0-cil_4.6.2.7+dfsg-1_a.deb
2 
./pool/main/m/mono/libmono-microsoft-build-utilities-v4.0-4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-microsoft-build-utilities-v4.0-4.0-cil_4.6.2.7+dfsg-1.deb
2 
./pool/main/m/mono/libmono-microsoft-web-infrastructure1.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-microsoft-web-infrastructure1.0-cil_4.6.2.7+dfsg-1_al.deb
2 
./pool/main/m/mono/libmono-system-componentmodel-composition4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-componentmodel-composition4.0-cil_4.6.2.7+dfsg.deb
2 
./pool/main/m/mono/libmono-system-componentmodel-dataannotations4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-componentmodel-dataannotations4.0-cil_4.6.2.7+.deb
2 
./pool/main/m/mono/libmono-system-configuration-install4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-configuration-install4.0-cil_4.6.2.7+dfsg-1_al.deb
2 
./pool/main/m/mono/libmono-system-data-datasetextensions4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-data-datasetextensions4.0-cil_4.6.2.7+dfsg-1_a.deb
2 
./pool/main/m/mono/libmono-system-identitymodel-selectors4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-identitymodel-selectors4.0-cil_4.6.2.7+dfsg-1_.deb
2 
./pool/main/m/mono/libmono-system-io-compression-filesystem4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-io-compression-filesystem4.0-cil_4.6.2.7+dfsg-.deb
2 
./pool/main/m/mono/libmono-system-reactive-experimental2.2-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-reactive-experimental2.2-cil_4.6.2.7+dfsg-1_al.deb
2 
./pool/main/m/mono/libmono-system-reactive-observable-aliases0.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-reactive-observable-aliases0.0-cil_4.6.2.7+dfs.deb
2 
./pool/main/m/mono/libmono-system-reactive-platformservices2.2-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-reactive-platformservices2.2-cil_4.6.2.7+dfsg-.deb
2 
./pool/main/m/mono/libmono-system-reactive-runtime-remoting2.2-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-reactive-runtime-remoting2.2-cil_4.6.2.7+dfsg-.deb
2 
./pool/main/m/mono/libmono-system-reactive-windows-forms2.2-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-reactive-windows-forms2.2-cil_4.6.2.7+dfsg-1_a.deb
2 
./pool/main/m/mono/libmono-system-reactive-windows-threading2.2-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-reactive-windows-threading2.2-cil_4.6.2.7+dfsg.deb
2 
./pool/main/m/mono/libmono-system-runtime-durableinstancing4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-runtime-durableinstancing4.0-cil_4.6.2.7+dfsg-.deb
2 
./pool/main/m/mono/libmono-system-runtime-interopservices-runtimeinformation4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-runtime-interopservices-runtimeinformation4.0-.deb
2 
./pool/main/m/mono/libmono-system-runtime-serialization-formatters-soap4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-runtime-serialization-formatters-soap4.0-cil_4.deb
2 
./pool/main/m/mono/libmono-system-runtime-serialization4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-runtime-serialization4.0-cil_4.6.2.7+dfsg-1_al.deb
2 
./pool/main/m/mono/libmono-system-servicemodel-activation4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-servicemodel-activation4.0-cil_4.6.2.7+dfsg-1_.deb
2 
./pool/main/m/mono/libmono-system-servicemodel-discovery4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-servicemodel-discovery4.0-cil_4.6.2.7+dfsg-1_a.deb
2 
./pool/main/m/mono/libmono-system-servicemodel-internals0.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-servicemodel-internals0.0-cil_4.6.2.7+dfsg-1_a.deb
2 
./pool/main/m/mono/libmono-system-threading-tasks-dataflow4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-threading-tasks-dataflow4.0-cil_4.6.2.7+dfsg-1.deb
2 
./pool/main/m/mono/libmono-system-web-applicationservices4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-web-applicationservices4.0-cil_4.6.2.7+dfsg-1_.deb
2 
./pool/main/m/mono/libmono-system-web-extensions-design4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-web-extensions-design4.0-cil_4.6.2.7+dfsg-1_al.deb
2 
./pool/main/m/mono/libmono-system-web-regularexpressions4.0-cil_4.6.2.7+dfsg-1_all.deb 
	./pool/main/m/mono/libmono-system-web-regularexpressions4.0-cil_4.6.2.7+dfsg-1_a.deb
2 
./pool/main/m/mono/libmono-system-web-webpa

Re: a hexeditor please

2018-02-09 Thread Felix Miata
Gene Heskett composed on 2018-02-09 12:09 (UTC-0500):

> So how the hell do we stop udev from automounting it?

Create a noauto /etc/fstab entry for it using UUID or LABEL.

tsk, tsk, tsk for not remembering your Swiss army knife mc before starting the
thread. :-)
-- 
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



Re: I do not want to install Linux

2018-02-09 Thread rhkramer
On Friday, February 09, 2018 08:58:24 AM Curt wrote:
> There once was a hacker from Bali
> Who did her forensics on Kali
> One fine day to be rude
> She modeled in the nude
> Got fingered by Tom and Dick and Sally.

I'm not a poet, and forget any rules that I may once have supposed to learn, 
but I think this sounds just slightly better (minor wordsmithing):


There once was a hacker from Bali
Who did her forensics on Kali
One day to be rude
She posed in the nude
Got fingered by Tom, Dick, and Sally.



Re: Installing Debian on Chuwi Hi12 Tablet

2018-02-09 Thread Michael Lange
Hi,

> 
> Now when I boot up the device I get 10 seconds of Android loading
> graphics before it kicks into Debian. Android was removed months ago.
> Now if you can give me some guidance as to how to remove the annoying
> Android graphics ..

hmm, not sure about that one (never dealt with android myself), just to
make sure, we are not possibly talking about the bios/efi splash screen
here, the one which e.g. on my laptop shows a lenovo logo for a few
seconds ?

Regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Is not that the nature of men and women -- that the pleasure is in the
learning of each other?
-- Natira, the High Priestess of Yonada, "For the World is
   Hollow and I Have Touched the Sky", stardate 5476.3.



Limerick twiddling (was Re: I do not want to install Linux)

2018-02-09 Thread The Wanderer
On 2018-02-09 at 12:49, rhkra...@gmail.com wrote:

> On Friday, February 09, 2018 08:58:24 AM Curt wrote:
>
>> There once was a hacker from Bali
>> Who did her forensics on Kali
>> One fine day to be rude
>> She modeled in the nude
>> Got fingered by Tom and Dick and Sally.
> 
> I'm not a poet, and forget any rules that I may once have supposed to learn, 
> but I think this sounds just slightly better (minor wordsmithing):
> 
> 
> There once was a hacker from Bali
> Who did her forensics on Kali
> One day to be rude
> She posed in the nude
> Got fingered by Tom, Dick, and Sally.

The meter and scansion of that are better, but the first syllable of the
rhyming word isn't consistent.

The "a" in at least one (and I think both) of "Bali" and "Kali" matches
one in "call", "fall", "mall", or "wall", or the "o" in "doll"; by
contrast, the "a" in "Sally" matches the one in "pal", "Hal", or
"shall".

The name "Molly" would work for the rhyme, but isn't as good a match the
stock phrase which is being referenced...

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: libgparted bug.

2018-02-09 Thread Thomas Schmitt
Hi,

Gene Heskett wrote:
> When did fdisk learn about GPT part tables?

Dunno. It recognizes GPT by type "ee" of the "Protective MBR" entry in
the partition table of the MBR:

>  Device Boot   Start End  Blocks   Id  System
> rock-img-shrunk.img 1  1   12517171162585855+  ee  GPT

For further investigations use gdisk:

  /sbin/gdisk -l rock-img-shrunk.img

which should show the partitions you know.


> gene@coyote:~/rock64.imgs$  /sbin/fdisk -l /dev/sdd
>   Device Boot   Start End  Blocks   Id  System
> /dev/sdd 1  32768   125042687625049607  HPFS/NTFS/exFAT

This is probably an unpartitioned "disk" with MS-Windows filesystem.

In any case it is not a copy of rock-img-shrunk.img .


Have a nice day :)

Thomas



Re: libgparted bug.

2018-02-09 Thread Thomas Schmitt
Hi,

correcting myself:

> > /dev/sdd 1  32768   125042687625049607  HPFS/NTFS/exFAT

> This is probably an unpartitioned "disk" with MS-Windows filesystem.

The "1" probably is the partition number. I mistook it for the boot flag.
So the stick is partitioned with one partition.


Have a nice day :)

Thomas



Re: libgparted bug.

2018-02-09 Thread Don Armstrong
On Fri, 09 Feb 2018, Gene Heskett wrote:
> I killed udev for /dev/sdd, gparted works now. But I really need a
> quicker way than editing a udev rule. I wonder if I could make udev
> aware that gparted was running.

udev doesn't automount by default;[1] it's likely just exposing the fact
that a device has been inserted with specific parameters to whatever
(some DE?) is doing the automounting.


1: At least, it doesn't here, and I haven't specifically changed this
configuration.

-- 
Don Armstrong  https://www.donarmstrong.com

Who is thinking this?
I am.
 -- Greg Egan _Diaspora_ p38



Re: Problems in debian-9.3.0-amd64-DVD-2.iso and debian-9.3.0-amd64-DVD-3.iso

2018-02-09 Thread Thomas Schmitt
Hi,

Serge LAOT wrote:
> ./pool/main/m/mono/libmono-compilerservices-symbolwriter4.0-cil_4.6.2.7+dfsg-1_all.deb
> ./pool/main/m/mono/libmono-compilerservices-symbolwriter4.0-cil_4.6.2.7+dfsg-1_a.deb

The names you see on DVD are truncated to 65 characters, while retaining
the .deb suffixes. You are probably looking at the Joliet tree, not the
ISO 9660 + Rock Ridge tree which GNU/Linux mounts by default.

Mounting Joliet would match the default behavior of operating system which
your mail client is running on:
> User-Agent: ... Windows NT 10.0 ...


Cc'ing debian-cd:

Interestingly, debian-9.3.0-amd64-netinst.iso was made with xorrisofs
option -joliet-long. which would enable longer Joliet names.
But production of debian-9.3.0-amd64-DVD-2.iso did not use it.


--
Details:

If i download
  
https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-9.3.0-amd64-DVD-2.iso
and mount it without disabling Rock Ridge, i see the longer name

  
/mnt/iso/pool/main/m/mono/libmono-compilerservices-symbolwriter4.0-cil_4.6.2.7+dfsg-1_all.deb

If i mount the Joliet tree by "-o norock", i see the truncated name

  
/mnt/iso/pool/main/m/mono/libmono-compilerservices-symbolwriter4.0-cil_4.6.2.7+dfsg-1_a.deb

This truncation is caused by xorrisofs option -J without a specs relaxation
option like -joliet-long.
The truncated length of 65 is correct, because Joliet prescribes 128 bytes
which suffices for 64 UTF-16 characters. The dot iin the name does not
count for that limit.

Looking at the files .disk/mkisofs of debian-9.3.0-amd64-DVD-2.iso and
debian-9.3.0-amd64-netinst.iso reveils that netinst had -joliet-long
whereas DVD-2 had not.


Have a nice day :)

Thomas



Re: libgparted bug.

2018-02-09 Thread David Wright
On Fri 09 Feb 2018 at 12:34:05 (-0500), Gene Heskett wrote:
> On Friday 09 February 2018 11:50:46 David Wright wrote:
> 
> > On Fri 09 Feb 2018 at 04:20:51 (-0500), Gene Heskett wrote:
> > > On Friday 09 February 2018 04:11:42 Thomas Schmitt wrote:
> > > > Hi,
> > > >
> > > > Gene Heskett wrote:
> > > > > That is not the problem, something is automounting the partition
> > > > > as soon as gparted unmounts the SOB, so by the time you start
> > > > > the resize, its mounted again and gparted is locked out.
> > > >
> > > > If explicit unmounting does not help, and if manual execution of
> > > > the gparted helper programs shows the same problems, then you will
> > > > have to do it without resizing. I.e. the oldfashioned way of
> > > > making a new partition with a new filesystem into which you copy
> > > > the files of the old filesystem.
> > > >
> > > >
> > > > Have a nice day :)
> > > >
> > > > Thomas
> > >
> > > I killed udev for /dev/sdd, gparted works now. But I really need a
> > > quicker way than editing a udev rule. I wonder if I could make udev
> > > aware that gparted was running.  That would be ideal. So would
> > > meaningfull gparted error reporting without having to wade thru a
> > > kilobyte of (spit) html. I'm going back to bed...
> >
> > Would I be write in thinking that killing sdd just there prevents the
   ↑ I'll write "correct" next time. You'd think I, of all
 people, could spell that word.

> > appearance of /dev/disk/by-{this,that and the other} appearing also?
> >
> It must be doing an end run by that means. Can that be fixed too?

Circumvent what by what? Are those files there or not? I don't know
what you mean by "fixing" until you say whether they're there and
whether they're desired.

> > Do you run with a DE? What would happen if you tried all this in a VC
> > before starting X? My experience of wheezy, jessie (which you're
> > running?) and stretch is that nothing has ever automounted itself
> > unless I boot from a live stick. But I only run fvwm.
> >
> This machine is running TDE as its x-gui, r14.0.5 it says.

Well, isn't that why things get automounted, then? ISTR people doing
similar battles when their disc burners tried to automount blank discs.
You had to turn it off somewhere.

Cheers,
David.



Re: Re wicd vs network-manager

2018-02-09 Thread Glenn English
On Fri, Feb 9, 2018 at 10:51 AM,   wrote:

> I can't find it but I suppose you mean several connections on the 
> same interface, since the official website says two interfaces won't be 
> possible before version 2.0 (last one is 1.7.5).

No, I was thinking of multiple nics (there are 2 Ethernets in my
box),. But I'd forgotten to mention why I dumped wicd -- on Jessie and
Buster, at least, wicd won't allow more than a single active
connection at a time. I went to /etc/network/interfaces. Takes a
little more thought (and a lot less RAM), but everybody's happy now.

-- 
Glenn English



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 13:13:42 Thomas Schmitt wrote:

> Hi,
>
> Gene Heskett wrote:
> > When did fdisk learn about GPT part tables?
>
> Dunno. It recognizes GPT by type "ee" of the "Protective MBR" entry in
>
> the partition table of the MBR:
> >  Device Boot   Start End  Blocks   Id 
> > System rock-img-shrunk.img 1  1   12517171162585855+
> >  ee  GPT
>
> For further investigations use gdisk:
>
>   /sbin/gdisk -l rock-img-shrunk.img
>
> which should show the partitions you know.
gene@coyote:~/rock64.imgs$ /sbin/gdisk -l rock-img-shrunk.img
GPT fdisk (gdisk) version 0.8.5

Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Error 25 reading partition table for CRC check!
Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged


Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but 
disk
verification and recovery are STRONGLY recommended.

Disk rock-img-shrunk.img: 15624960 sectors, 7.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 1C7D4C86-35A6-4E6A-B3E3-2A6BEB44FDD0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 125171678
Partitions will be aligned on 64-sector boundaries
Total free space is 108670973 sectors (51.8 GiB)

Number  Start (sector)End (sector)  Size   Code  Name
   1  648063   3.9 MiB 8300  loader1
   280648191   64.0 KiB8300  reserved1
   38192   16383   4.0 MiB 8300  reserved2
   4   16384   24575   4.0 MiB 8300  loader2
   5   24576   32767   4.0 MiB 8300  atf
   6   32768  262143   112.0 MiB   0700  boot
   7  26214416500735   7.7 GiB 8300  root

Humm, atf? Decode plz. This is (presumably) a u-boot machine, no grub 
stuff to be found.

Thanks.
>
> > gene@coyote:~/rock64.imgs$  /sbin/fdisk -l /dev/sdd
> >   Device Boot   Start End  Blocks   Id  System
> > /dev/sdd 1  32768   125042687625049607 
> > HPFS/NTFS/exFAT
>
> This is probably an unpartitioned "disk" with MS-Windows filesystem.
>
> In any case it is not a copy of rock-img-shrunk.img .
>
>
> Have a nice day :)
>
> Thomas



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 13:56:35 David Wright wrote:

> On Fri 09 Feb 2018 at 12:34:05 (-0500), Gene Heskett wrote:
> > On Friday 09 February 2018 11:50:46 David Wright wrote:
> > > On Fri 09 Feb 2018 at 04:20:51 (-0500), Gene Heskett wrote:
> > > > On Friday 09 February 2018 04:11:42 Thomas Schmitt wrote:
> > > > > Hi,
> > > > >
> > > > > Gene Heskett wrote:
> > > > > > That is not the problem, something is automounting the
> > > > > > partition as soon as gparted unmounts the SOB, so by the
> > > > > > time you start the resize, its mounted again and gparted is
> > > > > > locked out.
> > > > >
> > > > > If explicit unmounting does not help, and if manual execution
> > > > > of the gparted helper programs shows the same problems, then
> > > > > you will have to do it without resizing. I.e. the oldfashioned
> > > > > way of making a new partition with a new filesystem into which
> > > > > you copy the files of the old filesystem.
> > > > >
> > > > >
> > > > > Have a nice day :)
> > > > >
> > > > > Thomas
> > > >
> > > > I killed udev for /dev/sdd, gparted works now. But I really need
> > > > a quicker way than editing a udev rule. I wonder if I could make
> > > > udev aware that gparted was running.  That would be ideal. So
> > > > would meaningfull gparted error reporting without having to wade
> > > > thru a kilobyte of (spit) html. I'm going back to bed...
> > >
> > > Would I be write in thinking that killing sdd just there prevents
> > > the
>
>↑ I'll write "correct" next time. You'd think I, of all
>  people, could spell that word.
>
> > > appearance of /dev/disk/by-{this,that and the other} appearing
> > > also?
> >
> > It must be doing an end run by that means. Can that be fixed too?
>
> Circumvent what by what? Are those files there or not? I don't know
> what you mean by "fixing" until you say whether they're there and
> whether they're desired.
>
> > > Do you run with a DE? What would happen if you tried all this in a
> > > VC before starting X? My experience of wheezy, jessie (which
> > > you're running?) and stretch is that nothing has ever automounted
> > > itself unless I boot from a live stick. But I only run fvwm.
> >
> > This machine is running TDE as its x-gui, r14.0.5 it says.
>
> Well, isn't that why things get automounted, then? ISTR people doing
> similar battles when their disc burners tried to automount blank
> discs. You had to turn it off somewhere.
>
> Cheers,
> David.

somewhere. That was the implied question.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: I do not want to install Linux

2018-02-09 Thread Curt
On 2018-02-09, rhkra...@gmail.com  wrote:
> On Friday, February 09, 2018 08:58:24 AM Curt wrote:
>> There once was a hacker from Bali
>> Who did her forensics on Kali
>> One fine day to be rude
>> She modeled in the nude
>> Got fingered by Tom and Dick and Sally.
>
> I'm not a poet, and forget any rules that I may once have supposed to learn, 
> but I think this sounds just slightly better (minor wordsmithing):
>
>
> There once was a hacker from Bali
> Who did her forensics on Kali
> One day to be rude
> She posed in the nude
> Got fingered by Tom, Dick, and Sally.
>
Right. I miscounted the last line (a syllable too many).

I was going for 9-9-6-6-9 (which I thought was the traditional
thingamajig).

Of course with "posed" instead of "modeled" you're losing word play
(digital forensic models as well as...you get it, I'm sure). 



-- 
“True terror is to wake up one morning and discover that your high school class
is running the country.” – Kurt Vonnegut



i3 wm sound volume and brightness

2018-02-09 Thread Robert Ford
Two questions:
- How to bind hot key so that there would have volume sound display on screen?
- How to bind hot key so that brightness would also display on screen?

My i3 config for sound volume and brightness is https://paste.debian.net/1009555

The problem is configuration for sound works but there is no display. And for 
brightness, xbacklight -inc N or xbacklight -dec N returns message

No outputs have backlight property

I read that's because xbacklight can't find the corresponded backlight in 
/sys/class. I am aware that changing the value at 
/sys/class/backlight/intel_backlight works, but I am looking for somewhat more 
portable way.

Environment:
i3-wm 4.13-1
debian 9.3

Thanks

Re: libgparted bug.

2018-02-09 Thread Brian
On Fri 09 Feb 2018 at 10:52:08 -0800, Don Armstrong wrote:

> On Fri, 09 Feb 2018, Gene Heskett wrote:
> > I killed udev for /dev/sdd, gparted works now. But I really need a
> > quicker way than editing a udev rule. I wonder if I could make udev
> > aware that gparted was running.
> 
> udev doesn't automount by default;[1] it's likely just exposing the fact
> that a device has been inserted with specific parameters to whatever
> (some DE?) is doing the automounting.

Gene Heskett is probably using an outdated, unsupported version
of Debian. etch, potato. squeeze, that sort of thing. So there is
little point in looking for a fundamental cause of the observation.

On something more modern, udev will automount if the device is
listed in /etc/fstab and is accessed. So not by default - but it
can be arranged.

> 1: At least, it doesn't here, and I haven't specifically changed this
> configuration.

LABEL=ARCHIVE-9 /media/ARCHIVE-9 vfat 
ro,gid=1000,fmask=0117,dmask=0007,noatime,noauto,user,x-systemd.automount,x-systemd.idle-timeout=5,x-systemd.device-timeout=1
 0 0

mounts the device and unmounts it five seconds after it is ceased
to be used.

A really nice feature of systemd. systemd.mount(5).

-- 
Brian



Re: libgparted bug.

2018-02-09 Thread Thomas Schmitt
Hi,

your count=122070 was too small. It should have been 128912. See below.


Gene Heskett wrote:
> gene@coyote:~/rock64.imgs$ /sbin/gdisk -l rock-img-shrunk.img
> [...]
> Caution: invalid backup GPT header, but valid main header; regenerating
> backup header from main header.

You cut off ~ 56 GB of the original device data. At the very end of the
original there is the GPT backup copy. So it was not copied.

> Warning! One or more CRCs don't match. You should repair the disk!

This is not a good sign. GPT has checksums in the header block. One
for the header itself and one for the partition entries array.
If any does not match, then some partition editing did not what it
was supposed to do.
Well, old sins ...

> Total free space is 108670973 sectors (51.8 GiB)

gdisk seems still to believe in the size which it found in the copied
GPT header block. Hopefully this misbelief would end if the image was
copied successfully to a new storage medium.
Nevertheless, gdisk or an other partition editor will then have to
adjust this size field in the GPT (and the checksums) to the real
storage device size.

> Number  Start (sector)End (sector)  Size   Code  Name
>1  648063   3.9 MiB 8300  loader1
>280648191   64.0 KiB8300  reserved1
>38192   16383   4.0 MiB 8300  reserved2
>4   16384   24575   4.0 MiB 8300  loader2
>5   24576   32767   4.0 MiB 8300  atf
>6   32768  262143   112.0 MiB   0700  boot
>7  26214416500735   7.7 GiB 8300  root

The first six partitions should be like on the original card.
I am not so sure about number 7.
Does it have the same size on the original card ?

If it is like on the original:
For a good copy up to the end of partition 7 you would have had to
copy  16500735*512/65336 = 128912 blocks.

So now your copy lacks the last 6842 * 65336 = 447,028,912 bytes of
partition 7.
With a copy of 128912 * 64 KiB the image file should be good and you'd
only have to solve the riddle why the new card did not take the bytes
you copied to it (or why it put them at the wrong place).


Have a nice day :)

Thomas



Re: libgparted bug.

2018-02-09 Thread David Wright
On Fri 09 Feb 2018 at 14:11:27 (-0500), Gene Heskett wrote:
> On Friday 09 February 2018 13:56:35 David Wright wrote:
> 
> > On Fri 09 Feb 2018 at 12:34:05 (-0500), Gene Heskett wrote:
> > > On Friday 09 February 2018 11:50:46 David Wright wrote:
> > > > On Fri 09 Feb 2018 at 04:20:51 (-0500), Gene Heskett wrote:
> > > > > On Friday 09 February 2018 04:11:42 Thomas Schmitt wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Gene Heskett wrote:
> > > > > > > That is not the problem, something is automounting the
> > > > > > > partition as soon as gparted unmounts the SOB, so by the
> > > > > > > time you start the resize, its mounted again and gparted is
> > > > > > > locked out.
> > > > > >
> > > > > > If explicit unmounting does not help, and if manual execution
> > > > > > of the gparted helper programs shows the same problems, then
> > > > > > you will have to do it without resizing. I.e. the oldfashioned
> > > > > > way of making a new partition with a new filesystem into which
> > > > > > you copy the files of the old filesystem.
> > > > > >
> > > > > >
> > > > > > Have a nice day :)
> > > > > >
> > > > > > Thomas
> > > > >
> > > > > I killed udev for /dev/sdd, gparted works now. But I really need
> > > > > a quicker way than editing a udev rule. I wonder if I could make
> > > > > udev aware that gparted was running.  That would be ideal. So
> > > > > would meaningfull gparted error reporting without having to wade
> > > > > thru a kilobyte of (spit) html. I'm going back to bed...
> > > >
> > > > Would I be write in thinking that killing sdd just there prevents
> > > > the
> >
> >↑ I'll write "correct" next time. You'd think I, of all
> >  people, could spell that word.
> >
> > > > appearance of /dev/disk/by-{this,that and the other} appearing
> > > > also?
> > >
> > > It must be doing an end run by that means. Can that be fixed too?
> >
> > Circumvent what by what? Are those files there or not? I don't know
> > what you mean by "fixing" until you say whether they're there and
> > whether they're desired.
> >
> > > > Do you run with a DE? What would happen if you tried all this in a
> > > > VC before starting X? My experience of wheezy, jessie (which
> > > > you're running?) and stretch is that nothing has ever automounted
> > > > itself unless I boot from a live stick. But I only run fvwm.
> > >
> > > This machine is running TDE as its x-gui, r14.0.5 it says.
> >
> > Well, isn't that why things get automounted, then? ISTR people doing
> > similar battles when their disc burners tried to automount blank
> > discs. You had to turn it off somewhere.
> >
> > Cheers,
> > David.
> 
> somewhere. That was the implied question.

Well, as I explained, I don't use a DE so I wouldn't have a clue.
There presumably are people here who use TDE. I see it mentioned
a lot.

No, I was more interested in your nobbling of sdd in rules.d and
whether that had the consequence of preventing the creation of
the appropriate symlinks under /dev/disk/. It seemed somewhat
brutal; I thought there might be side effects.

Cheers,
David.



Re: Limerick twiddling (was Re: I do not want to install Linux)

2018-02-09 Thread rhkramer
On Friday, February 09, 2018 01:04:49 PM The Wanderer wrote:
> On 2018-02-09 at 12:49, rhkra...@gmail.com wrote:

> > There once was a hacker from Bali
> > Who did her forensics on Kali
> > One day to be rude
> > She posed in the nude
> > Got fingered by Tom, Dick, and Sally.
> 
> The meter and scansion of that are better, but the first syllable of the
> rhyming word isn't consistent.
> 
> The "a" in at least one (and I think both) of "Bali" and "Kali" matches
> one in "call", "fall", "mall", or "wall", or the "o" in "doll"; by
> contrast, the "a" in "Sally" matches the one in "pal", "Hal", or
> "shall".

Interesting, I guess it depends how you pronounce things.  I would pronounce 
Bali as in Bali Hai (sp?) from an old show or movie or something, where Bali 
is like B(Hal) Lee.  Is there an official pronunciation of Bali and Kali as in 
the distros?

Anyway, not a big deal, I think I'll just think of it like in Bali Hai.

Have a good day!


> 
> The name "Molly" would work for the rhyme, but isn't as good a match the
> stock phrase which is being referenced...



Re: I do not want to install Linux

2018-02-09 Thread rhkramer
On Friday, February 09, 2018 02:15:51 PM Curt wrote:
> On 2018-02-09, rhkra...@gmail.com  wrote:
> > On Friday, February 09, 2018 08:58:24 AM Curt wrote:



> > There once was a hacker from Bali
> > Who did her forensics on Kali
> > One day to be rude
> > She posed in the nude
> > Got fingered by Tom, Dick, and Sally.
> 
> Right. I miscounted the last line (a syllable too many).
> 
> I was going for 9-9-6-6-9 (which I thought was the traditional
> thingamajig).
> 
> Of course with "posed" instead of "modeled" you're losing word play
> (digital forensic models as well as...you get it, I'm sure).

Well, I missed that originally.

Modeled is almost 3 syllables, but I want to count posed as 1 syllable (so I 
am inconsistent).  ;-)

If it should be 9-9-6-6-9 I guess it needs more tweaking.  It works for me as 
is ;-)




Re: Limerick twiddling (was Re: I do not want to install Linux)

2018-02-09 Thread The Wanderer
On 2018-02-09 at 16:50, rhkra...@gmail.com wrote:

> On Friday, February 09, 2018 01:04:49 PM The Wanderer wrote:
>
>> On 2018-02-09 at 12:49, rhkra...@gmail.com wrote:
> 
>>> There once was a hacker from Bali
>>> Who did her forensics on Kali
>>> One day to be rude
>>> She posed in the nude
>>> Got fingered by Tom, Dick, and Sally.
>> 
>> The meter and scansion of that are better, but the first syllable of the
>> rhyming word isn't consistent.
>> 
>> The "a" in at least one (and I think both) of "Bali" and "Kali" matches
>> one in "call", "fall", "mall", or "wall", or the "o" in "doll"; by
>> contrast, the "a" in "Sally" matches the one in "pal", "Hal", or
>> "shall".
> 
> Interesting, I guess it depends how you pronounce things.  I would pronounce 
> Bali as in Bali Hai (sp?) from an old show or movie or something, where Bali 
> is like B(Hal) Lee.  Is there an official pronunciation of Bali and Kali as 
> in 
> the distros?

I don't know about the distros, but Bali is the name of a place (and I'm
relatively sure I've heard it pronounced that way), and Kali is the name
of a Hindu goddess (and I'm even more certain it's pronounced that way).

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 14:11:27 Gene Heskett wrote:

> On Friday 09 February 2018 13:56:35 David Wright wrote:
> > On Fri 09 Feb 2018 at 12:34:05 (-0500), Gene Heskett wrote:
> > > On Friday 09 February 2018 11:50:46 David Wright wrote:
> > > > On Fri 09 Feb 2018 at 04:20:51 (-0500), Gene Heskett wrote:
> > > > > On Friday 09 February 2018 04:11:42 Thomas Schmitt wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Gene Heskett wrote:
> > > > > > > That is not the problem, something is automounting the
> > > > > > > partition as soon as gparted unmounts the SOB, so by the
> > > > > > > time you start the resize, its mounted again and gparted
> > > > > > > is locked out.
> > > > > >
> > > > > > If explicit unmounting does not help, and if manual
> > > > > > execution of the gparted helper programs shows the same
> > > > > > problems, then you will have to do it without resizing. I.e.
> > > > > > the oldfashioned way of making a new partition with a new
> > > > > > filesystem into which you copy the files of the old
> > > > > > filesystem.
> > > > > >
> > > > > >
> > > > > > Have a nice day :)
> > > > > >
> > > > > > Thomas
> > > > >
> > > > > I killed udev for /dev/sdd, gparted works now. But I really
> > > > > need a quicker way than editing a udev rule. I wonder if I
> > > > > could make udev aware that gparted was running.  That would be
> > > > > ideal. So would meaningfull gparted error reporting without
> > > > > having to wade thru a kilobyte of (spit) html. I'm going back
> > > > > to bed...
> > > >
> > > > Would I be write in thinking that killing sdd just there
> > > > prevents the
> >
> >↑ I'll write "correct" next time. You'd think I, of
> > all people, could spell that word.
> >
> > > > appearance of /dev/disk/by-{this,that and the other} appearing
> > > > also?
> > >
> > > It must be doing an end run by that means. Can that be fixed too?
> >
> > Circumvent what by what? Are those files there or not? I don't know
> > what you mean by "fixing" until you say whether they're there and
> > whether they're desired.
> >
> > > > Do you run with a DE? What would happen if you tried all this in
> > > > a VC before starting X? My experience of wheezy, jessie (which
> > > > you're running?) and stretch is that nothing has ever
> > > > automounted itself unless I boot from a live stick. But I only
> > > > run fvwm.
> > >
> > > This machine is running TDE as its x-gui, r14.0.5 it says.
> >
> > Well, isn't that why things get automounted, then? ISTR people doing
> > similar battles when their disc burners tried to automount blank
> > discs. You had to turn it off somewhere.
> >
> > Cheers,
> > David.
>
> somewhere. That was the implied question.

As for looking at that file, hexdump finally got to the end of it, and 
reports:
1961ff5b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 
00  ||
*
1dcd6

Which tells me the backup GPT table, if it exists, is actually at the end 
of the disk, after another 50Gb of of 's. But how do I "fix" the 
file?

Ran my script again, hexdump thinks its ok, gdisk says:
I might fix it with the x->e function so I did. Quit, reran it, looks ok, 
quit and reran gparted, which is also happy. Time to go to the garage 
and play in the fast lane. 

Now, if it won't boot the original card, which I haven't fixed with gdisk 
x,e,w but will boot the other 2 two, I'll be a happy camper

Later, and thank you for all the advice.



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: I do not want to install Linux

2018-02-09 Thread Forest Feighner
On Fri, 2018-02-09 at 13:58 +, Curt wrote:
> On 2018-02-09, Richard Hector  wrote:
> > 
> > Hmmm ... needs work on both scanning and rhyme, I'm afraid :-(
> > 
> > There once was a scammer from Bali
> > Who did all his hacking on Kali
> > The state of Nigeria
> > He said was inferior
> > So he routed all his scams through Mali.
> > 
> > Though I'm not sure how much 'hacking' is done by scammers.
> > 
> > And it won't work so well for rhotic accents.
> 
> There once was a hacker from Bali 
> Who did her forensics on Kali
> One fine day to be rude 
> She modeled in the nude 
> Got fingered by Tom and Dick and Sally.
> 
> > Richard

There once was a hacker from Bolly!
Liked her way around K(C)ali
Not to be rude
But(t) she modeled in the nude
How crude, She pinged 'em instead!

> > 
> > 
> 
> 



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 14:28:15 Brian wrote:

> On Fri 09 Feb 2018 at 10:52:08 -0800, Don Armstrong wrote:
> > On Fri, 09 Feb 2018, Gene Heskett wrote:
> > > I killed udev for /dev/sdd, gparted works now. But I really need a
> > > quicker way than editing a udev rule. I wonder if I could make
> > > udev aware that gparted was running.
> >
> > udev doesn't automount by default;[1] it's likely just exposing the
> > fact that a device has been inserted with specific parameters to
> > whatever (some DE?) is doing the automounting.
>
> Gene Heskett is probably using an outdated, unsupported version
> of Debian. etch, potato. squeeze, that sort of thing. So there is
> little point in looking for a fundamental cause of the observation.
>
Wheezy, up to date a/o yesterday. /dev/ssd is not in my /etc/fstab. Yes. 
its old but not unsupported yet.

> On something more modern, udev will automount if the device is
> listed in /etc/fstab and is accessed. So not by default - but it
> can be arranged.
>
> > 1: At least, it doesn't here, and I haven't specifically changed
> > this configuration.
>
> LABEL=ARCHIVE-9 /media/ARCHIVE-9 vfat
> ro,gid=1000,fmask=0117,dmask=0007,noatime,noauto,user,x-systemd.automo
>unt,x-systemd.idle-timeout=5,x-systemd.device-timeout=1 0 0
>
> mounts the device and unmounts it five seconds after it is ceased
> to be used.
>
> A really nice feature of systemd. systemd.mount(5).

Sounds usefull. But I'm not there yet because of linuxcnc. I do have one 
machine running jessie, on a pi, and that works well for any i/o that 
doesn't have to go thru its internal usb2 hub. But keyboard and mouse 
events are unarmed in that gateway, and only get thru around 95% of the 
time. The fun part is the constant reboot until you hit a boot where it 
works. But it may take 5 or 6 reboots to get to that condition. When it 
works,
pi@picnc:~/linuxcnc/configs/sheldon-lathe $ uptime
 17:38:24 up 33 days, 21:55,  3 users,  load average: 0.23, 0.20, 0.17
uptimes are quite decent as above.

What I've seen of stretch has required a big piss-elm club to get it to 
march to my drummer, but when thats been done, it marches very well 
indeed. buildbot.Linuxcnc.org hasn't added an arm64 build to their 
offerings, but this rock64 built it from src in under 45 minutes. And a 
v4.14.15-rt13 kernel from vger built in:
real98m19.596s
user90m16.652s
sys 6m6.884s

And I'm probably building stuff it will never use yet.
The pi might be able to do that, but the times would like watching an oil 
based paint dry, likely days instead of minutes.

That kernel above is why I need the copies, as no one has yet wrote a 
kernel make install that works on a u-boot system. So that part will be 
dragging both the spinning rust where that kernel is living, in here, 
and figuring out how to erase whats there for ayufan's kernel, and put 
my v4.14.15-rt13 bits and pieces in its place. But probably not yet 
tonight as its dinner time and I need to go see what my dear woman wants 
to eat. I am now her caretaker. She fell and broke a hip a year ago, but 
is so far down with copd that there will not be a recovery even after it 
was replaced. Dragging an oxygen hose, the 10 feet to a potty chair 
takes a half hour to recover from. A Good Christian woman, she's 
tolerated me for 29 years now.

This is the "till death do us part", part.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: libgparted bug.

2018-02-09 Thread Gene Heskett
On Friday 09 February 2018 14:37:16 Thomas Schmitt wrote:

> Hi,
>
> your count=122070 was too small. It should have been 128912. See
> below.
>
> Gene Heskett wrote:
> > gene@coyote:~/rock64.imgs$ /sbin/gdisk -l rock-img-shrunk.img
> > [...]
> > Caution: invalid backup GPT header, but valid main header;
> > regenerating backup header from main header.
>
> You cut off ~ 56 GB of the original device data. At the very end of
> the original there is the GPT backup copy. So it was not copied.
>
> > Warning! One or more CRCs don't match. You should repair the disk!
>
> This is not a good sign. GPT has checksums in the header block. One
> for the header itself and one for the partition entries array.
> If any does not match, then some partition editing did not what it
> was supposed to do.
> Well, old sins ...
>
> > Total free space is 108670973 sectors (51.8 GiB)
>
> gdisk seems still to believe in the size which it found in the copied
> GPT header block. Hopefully this misbelief would end if the image was
> copied successfully to a new storage medium.
> Nevertheless, gdisk or an other partition editor will then have to
> adjust this size field in the GPT (and the checksums) to the real
> storage device size.
>
> > Number  Start (sector)End (sector)  Size   Code  Name
> >1  648063   3.9 MiB 8300  loader1
> >280648191   64.0 KiB8300  reserved1
> >38192   16383   4.0 MiB 8300  reserved2
> >4   16384   24575   4.0 MiB 8300  loader2
> >5   24576   32767   4.0 MiB 8300  atf
> >6   32768  262143   112.0 MiB   0700  boot
> >7  26214416500735   7.7 GiB 8300  root
>
> The first six partitions should be like on the original card.
> I am not so sure about number 7.
> Does it have the same size on the original card ?
>
> If it is like on the original:
> For a good copy up to the end of partition 7 you would have had to
> copy  16500735*512/65336 = 128912 blocks.
>
> So now your copy lacks the last 6842 * 65336 = 447,028,912 bytes of
> partition 7.
> With a copy of 128912 * 64 KiB the image file should be good and you'd
> only have to solve the riddle why the new card did not take the bytes
> you copied to it (or why it put them at the wrong place).

Blame that on gparted which did not update the ending GPT table when I 
shrank part 7 from 59.6 GB to about 7 so it would fit on a smaller sd 
card. but:
gdisk /dev/sdd
x
e
w

seems to have fixed that, gparted is now as happy as a clam.

> Have a nice day :)
>
> Thomas



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: Limerick twiddling (was Re: I do not want to install Linux)

2018-02-09 Thread rhkramer
On Friday, February 09, 2018 04:58:49 PM The Wanderer wrote:
> I don't know about the distros, but Bali is the name of a place (and I'm
> relatively sure I've heard it pronounced that way), and Kali is the name
> of a Hindu goddess (and I'm even more certain it's pronounced that way).

Ok, it seems that most references agree with your pronunciation.

I must have bad ears (or listened to the song with a bad transistor radio when 
I was a kid).  I tried listening to the song several times, and, although 
sometimes I thought I heard it my way, I guess she really says / sings it your 
way.

https://www.youtube.com/watch?v=-JoKlDMYACQ



how to change network setting after installation

2018-02-09 Thread Long Wind
i've just installed stretch, minimal installationnow i want to change network 
connection 
from  cell phone hot spot to router
i've not installed X window
Thanks!


Re: how to change network setting after installation

2018-02-09 Thread john doe

On 2/10/2018 7:42 AM, Long Wind wrote:

i've just installed stretch, minimal installationnow i want to change network 
connection
from  cell phone hot spot to router
i've not installed X window



Have a look in/etc/network/interfaces.

--
John Doe



Re: libgparted bug.

2018-02-09 Thread deloptes
David Wright wrote:

> Well, as I explained, I don't use a DE so I wouldn't have a clue.
> There presumably are people here who use TDE. I see it mentioned
> a lot.

I use the 14.1 - DEV version, but also in previous one I have never
experienced automounting.
Could be that Gene installed automount package and it is not working as
expected?

I don't have that big file to test khexedit - I test with 1GB+, but it
displayed properly.

regards