Re: [Dorset] Anyone got a Raspberry Pi Zero that they could lend me?

2016-01-31 Thread Terry Coles
On Sunday 31 January 2016 18:07:39 Ralph Corderoy wrote:
> > Then the kernel panicked again.
> 
> Any clue in the message?

Not really, just a read error on a block number.  I don't think it's the same 
block each time.

> I'd make installation as simple as possible, and self-contained, i.e. no
> networking over USB in case the drivers have problems under heavy
> workload;  some are known to.  Ditch NOOBS, if you're using that, and go
> straight for Raspbian Jessie.
> https://www.raspberrypi.org/downloads/raspbian/
> Following the installation instructions at
> https://www.raspberrypi.org/documentation/installation/installing-images/lin
> ux.md

Are you suggesting that three different SD Cards that works perfectly every 
time on a Raspberry Pi could 
be susceptible to failure when plugged into a Zero, because of the load caused 
by the WiFi driver?  (I use 
the same WiFi dongle on the Pi 2.)

Wouldn't that show up for other Zeros and be all over the forums, unless it's 
caused by a fault on my 
particular Pi?  BTW.  It's difficult to use a Zero without WiFi, because the 
device has no Ethernet port.

Never forgetting that I've had this working on the Zero occasionally (although 
I installed to the SD Card 
on the Pi).

> (They're flawed, I think, in that the check of the card's contents might
> use buffered blocks in memory rather than access the card.  Best to skip
> the check, go straight to the "sync", eject the card, re-insert, then do
> the check.)

Wouldn't this also be an issue with the Pi 2?

> Third time's a charm!

Thirty third time!

If Peter's Zero runs PiCore OK tomorrow, I'll try it on my own Zero.  PiCore 
runs very little by default, 
although it does load Midnight Commander and SSH by default.  My installation 
also includes Python 
and RPI.GPIO but it boots into a shell and starts running the Lighting software 
(on the Pi 2) in about 15 s.

-- 

Terry Coles


--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR


Re: [Dorset] Help please with deleted files.

2016-01-31 Thread Peter Merchant

On 31/01/16 19:08, Victor Churchill wrote:

Hi Peter,

It sounds a bit odd that your dolphin utility is sayingthe file
already exists. Perhaps from the command line you could say
...$ cd ~/WhereItShouldBe
...$ ls -al \*XXX\*
or
...$ find . -name \*XXX\*
where XXX is a string you expect to see in the file name.

Following on from Andrew's post: if you know the name and location of
the file you lost, you should (hopefully) be able to go to a terminal
window and say
$ cd ~/.local/share/Trash( or local equivalent)
$ find . -name MyLostFile
If that results in a path to a copy of your file, then
$ cp pathToTrashCopyOfMyFile ~/theRightPlace/RestoredFileName

If the file was shown to exist in part 1 above and the copy fails then
that may indicate that the ownership or permissions have gotten
confused. Other than that though, you should ideally not need to go in
as root.

best regards,
웃
Victor Churchill,
Netley Abbey, Southampton
07970 844083


On 31 January 2016 at 16:06, Peter Merchant  wrote:

This morning I ran freefilesync as a backup program, but didn't have it
configured correctly. It has deleted some files and now my system is totally
not as I intended it.

I can get into dolphin and see all the files in the wastebasket, but every
time I try to restore a file it tells me that the file already exists and
won't restore it.

I am hoping that this is all I need to do, but I am not sure how to get into
the wastebasket from the Command line and force the restoring of the files.

Alternatively I could go to my previous backup, but again I am not sure that
it will overwrite the files.

Perhaps I need to do it as root?

Any advice welcomed.

Peter

--

Thanks Victor,
I spoke with Clive this afternoon, and he suggested that I boot from a 
live disk and then move the stuff from Trash. It didn't like it 
initially, but using Dolphin as root worked. I have copied all of the 
files back, but unfortunately have a bunch of folders in my home 
directory that I think should be elsewhere.  I didn't know where they 
should be.


So it hasn't really helped yet, but I'm getting there I think.

Peter

--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Help please with deleted files.

2016-01-31 Thread Victor Churchill
Hi Peter,

It sounds a bit odd that your dolphin utility is sayingthe file
already exists. Perhaps from the command line you could say
...$ cd ~/WhereItShouldBe
...$ ls -al \*XXX\*
or
...$ find . -name \*XXX\*
where XXX is a string you expect to see in the file name.

Following on from Andrew's post: if you know the name and location of
the file you lost, you should (hopefully) be able to go to a terminal
window and say
$ cd ~/.local/share/Trash( or local equivalent)
$ find . -name MyLostFile
If that results in a path to a copy of your file, then
$ cp pathToTrashCopyOfMyFile ~/theRightPlace/RestoredFileName

If the file was shown to exist in part 1 above and the copy fails then
that may indicate that the ownership or permissions have gotten
confused. Other than that though, you should ideally not need to go in
as root.

best regards,
웃
Victor Churchill,
Netley Abbey, Southampton
07970 844083


On 31 January 2016 at 16:06, Peter Merchant  wrote:
> This morning I ran freefilesync as a backup program, but didn't have it
> configured correctly. It has deleted some files and now my system is totally
> not as I intended it.
>
> I can get into dolphin and see all the files in the wastebasket, but every
> time I try to restore a file it tells me that the file already exists and
> won't restore it.
>
> I am hoping that this is all I need to do, but I am not sure how to get into
> the wastebasket from the Command line and force the restoring of the files.
>
> Alternatively I could go to my previous backup, but again I am not sure that
> it will overwrite the files.
>
> Perhaps I need to do it as root?
>
> Any advice welcomed.
>
> Peter
>
> --
> Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
> Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
> New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
> Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Anyone got a Raspberry Pi Zero that they could lend me?

2016-01-31 Thread Ralph Corderoy
Hi Terry,

> Then the kernel panicked again.

Any clue in the message?

> have now found the entry in lsusb

Excellent.

> So my Pi isn't dead (which makes more sense, but cannot reliably read
> from the SD Card.

I'd make installation as simple as possible, and self-contained, i.e. no
networking over USB in case the drivers have problems under heavy
workload;  some are known to.  Ditch NOOBS, if you're using that, and go
straight for Raspbian Jessie.
https://www.raspberrypi.org/downloads/raspbian/
Following the installation instructions at
https://www.raspberrypi.org/documentation/installation/installing-images/linux.md

(They're flawed, I think, in that the check of the card's contents might
use buffered blocks in memory rather than access the card.  Best to skip
the check, go straight to the "sync", eject the card, re-insert, then do
the check.)

Third time's a charm!

Cheers, Ralph.

--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR


Re: [Dorset] Anyone got a Raspberry Pi Zero that they could lend me?

2016-01-31 Thread Ralph Corderoy
Hi Terry,

> > It's still worth reading that trouble-shooting thread, the one that
> > says that, at the time of writing, none of the Zeroes returned as
> > faulty have been faulty, and they all go through factory testing.
> > :-)  Includes booting without an SD card to observe USB activity on
> > connected host IIRC.
>
> Tried that.  Not a peep, which is interesting because, I would have
> expected that test to work.  I tried it with and without power on the
> Pi.

Does sound a bit dead then.  Has it been connected to any test circuitry
yet?  :-)

> Even if it had worked, I would have queried the result.  Without the
> SD Card, the Pi is only running the microcode that gets it booted and
> services the needed ports such as the USB.  It wouldn't necessarily
> mean that the Pi could complete the boot.

No, perhaps the SD-card connector's broken, I agree.  But the test
sounds correct.  The Zero has only the single On The Go USB port
provided by the BCM SoC, the SoC's GPU that boots it runs the first bit
of bootstrapping from ROM, so no SD card needed, and that can read the
next bootstrap stage from SD card into L2 cache (there's no RAM enabled
yet).  But that first-stage ROM code also enables USB as a simple bulk
endpoint so you can boot over USB instead, and thus it should appear in
lsusb(8)'s output.
https://github.com/raspberrypi/tools/tree/master/usbboot#readme

Cheers, Ralph.

--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR


Re: [Dorset] Anyone got a Raspberry Pi Zero that they could lend me?

2016-01-31 Thread Terry Coles
On Sunday 31 January 2016 13:25:13 Ralph Corderoy wrote:
> Does sound a bit dead then.  Has it been connected to any test circuitry
> yet?  :-)

Yes.  It has also been seen to work controlling the PWM and other light, but 
then it failed to read the SD 
Card again.  As already mentioned, this device will *sometimes* work with a 
newly written SD Card, but 
rarely after the first boot.

> > Even if it had worked, I would have queried the result.  Without the
> > SD Card, the Pi is only running the microcode that gets it booted and
> > services the needed ports such as the USB.  It wouldn't necessarily
> > mean that the Pi could complete the boot.
> 
> No, perhaps the SD-card connector's broken, I agree.  But the test
> sounds correct.  The Zero has only the single On The Go USB port

If the SD Card connector is broken, how come it sometimes works?  It must be a 
very subtle problem; 
slow reads maybe?
 
> provided by the BCM SoC, the SoC's GPU that boots it runs the first bit
> of bootstrapping from ROM, so no SD card needed, and that can read the
> next bootstrap stage from SD card into L2 cache (there's no RAM enabled
> yet).  But that first-stage ROM code also enables USB as a simple bulk
> endpoint so you can boot over USB instead, and thus it should appear in
> lsusb(8)'s output.
> https://github.com/raspberrypi/tools/tree/master/usbboot#readme

I still find this illogical, since the keyboard (and mouse when I've got it to 
boot full Raspbian) seem to 
work (at first, at least).  They rely on the USB connector to work.

-- 

Terry Coles


--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR


[Dorset] Help please with deleted files.

2016-01-31 Thread Peter Merchant
This morning I ran freefilesync as a backup program, but didn't have it 
configured correctly. It has deleted some files and now my system is 
totally not as I intended it.


I can get into dolphin and see all the files in the wastebasket, but 
every time I try to restore a file it tells me that the file already 
exists and won't restore it.


I am hoping that this is all I need to do, but I am not sure how to get 
into the wastebasket from the Command line and force the restoring of 
the files.


Alternatively I could go to my previous backup, but again I am not sure 
that it will overwrite the files.


Perhaps I need to do it as root?

Any advice welcomed.

Peter

--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR


Re: [Dorset] Help please with deleted files.

2016-01-31 Thread Andrew

If it's of any help, on my system the 'Rubbish Bin' is located here:
~/.local/share/Trash/

--

Andrew.


--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR


Re: [Dorset] Anyone got a Raspberry Pi Zero that they could lend me?

2016-01-31 Thread Ralph Corderoy
Hi Terry,

> Yes.  It has also been seen to work controlling the PWM and other
> light, but then it failed to read the SD Card again.  As already
> mentioned, this device will *sometimes* work with a newly written SD
> Card, but rarely after the first boot.

As if the act of running corrupts the card?

> > > It wouldn't necessarily mean that the Pi could complete the boot.
> >
> > No, perhaps the SD-card connector's broken, I agree.  But the test
> > sounds correct.
>
> If the SD Card connector is broken, how come it sometimes works?

Sorry, that was just an example of something that could be bust even if
the USB-ID-appearing-on-host test worked.

> > The Zero has only the single On The Go USB port provided by the BCM
> > SoC, the SoC's GPU that boots it runs the first bit of bootstrapping
> > from ROM, so no SD card needed, and that can read the next bootstrap
> > stage from SD card into L2 cache (there's no RAM enabled yet).  But
> > that first-stage ROM code also enables USB as a simple bulk endpoint
> > so you can boot over USB instead, and thus it should appear in
> > lsusb(8)'s output.
> > https://github.com/raspberrypi/tools/tree/master/usbboot#readme
>
> I still find this illogical,

The lack of an lsusb entry, or my description?

> since the keyboard (and mouse when I've got it to boot full Raspbian)
> seem to work (at first, at least).  They rely on the USB connector to
> work.

My only suggestion is stick to the test where there's no SD card, I'd
have thought without power to the Zero, connect to a powered host port
and want a lsusb entry.  And secondly, boot from a freshly burned
official image to just try and get back to normal behaviour.

Will it be there Tuesday?  :-)

Cheers, Ralph.

--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR


Re: [Dorset] Anyone got a Raspberry Pi Zero that they could lend me?

2016-01-31 Thread Terry Coles
On Sunday 31 January 2016 13:57:01 Ralph Corderoy wrote:
> As if the act of running corrupts the card?

Exactly.  The very first time I ran it, I had a read error while the 
installation was ongoing (about one third 
of the way through copying from the installation partition to the root 
partition).  Subsequently, after many 
retries, I actually got past the installations stage, only to fail while 
booting.  Eventually (we are talking 
days here) I actually got it to run Raspbian.  It wasn't until then that I 
attempted to run it with hardware 
connected to the GPIO.

Then the kernel panicked again.  Then I gave up.

> > I still find this illogical,
> 
> The lack of an lsusb entry, or my description?

The fact that the Zero sometimes works.

Having said that I now realise that I misunderstood what the original article 
said (or only half read it) and 
have now found the entry in lsusb (I was expecting the hard disk to activate, 
like it does normally, (and 
does on a Windows machine)).  So my Pi isn't dead (which makes more sense, but 
cannot reliably read 
from the SD Card.

> and want a lsusb entry.  And secondly, boot from a freshly burned
> official image to just try and get back to normal behaviour.

I've tried to boot from a freshly burned official  image more times than I can 
count.

> Will it be there Tuesday?  :-)

I can bring it along, but I would have to bring a monitor, mouse and keyboard 
too.  I'm not convinced that 
it can reveal much, because once it has corrupted, it takes some time to get 
back to the starting point.  
Then we go round again.

I'm seeing Clive tomorrow at the Model Town, so I may have been able to try 
Peter's Zero before Tuesday 
evening.

-- 

Terry Coles


--
Next meeting:  Bournemouth, Tuesday, 2016-02-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR