Hi guys
I have noticed since I reinstalled Picorplayer (was off for some times, but back on for 6 months now), that almost everytime I have a shut down of the Raspberry (like a power cut) I cannot connect to the pi anymore. I have to reformat the SD card.
I though because picorplayer is loaded on the memory of the pi that it should not happen (like the SD is cannot be corrupted or something).
Any ideas?
Is there a way also to save the parameter and everything else of the LMS player like that I don't have to do it again all those times.
Thank you for your help
Results 1 to 10 of 21
-
2020-11-28, 02:54 #1
- Join Date
- Jul 2017
- Posts
- 123
SD card unreadable after power cut
-
2020-11-28, 03:47 #2
- Join Date
- Jan 2011
- Location
- Staffordshire. UK
- Posts
- 3,953
Well good day to you Sir
Is this card for a player or player server ?
You can make a copy of the card:
Mac OS use Apple PI Baker
Windows use Win32Disk Imager
I offer a couple of tips for the latter:
1) Create an empty folder on the Desktop (or wherever you want to save the file)
2) Append the .img suffix to the file name when entering it into the appropiate box (eg pcpbackupv6.1.0.img)
3) Tick the box marked "Read Only Allocated Partitions" this will give the smallest image possible
4) Read the "ReadMe" of the download and run it as "as Administrator"
ronnie
-
2020-11-28, 05:56 #3
- Join Date
- Jul 2017
- Posts
- 123
Hi long time no talk
this card is for a server, I use it for my logitech touch...
thanks for the tip..
any ideas why the SD crash..? it used not too, maybe too old?
Cheers
-
2020-11-28, 06:52 #4
Hi Jouteur,
When you say you can't connect to Pi after a power fail... is that connect to LMS on the Pi? or piCorePlayer on the Pi?
If it's piCorePlayer then I'd suspect your card, but you could try stopping LMS and shutting down piCorePlayer and then power cycle to see if it survives that, if not then I'd definitely be looking at trying a different card.
If it's just LMS that stops working, then it's not unusual for LMS database and cache to get corrupted by a power fail, my sister's setup suffers from this because she has a whole house RCD mains protector that trips rather too keenly. In her case we can normally get back in via ssh and pCP web interface to delete the Db and cache files and start again without re-flashing the card.
I can't say for sure, but I think I've seen somewhere on the forum that having a USB thumb drive on the Pi with LMS cache and Db files moved onto it is more reliable, perhaps because it's an external drive the data gets written out to the usb stick rather than cached in memory.
Kev
-
2020-11-28, 07:10 #5
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 19,923
PCP started as a player only system - so that when running everying is in RAM, no sdcard access and so no effect if you pull power cord.
If LMS is running onPCP system then sdcard (and maybe USB disk) is being used and the promise of no problem if you the pull the power cord is not possible. If LMS is running you should shut LMS down before pulling power.
-
2020-11-28, 07:20 #6
- Join Date
- May 2008
- Location
- United States, Florida
- Posts
- 12,138
Home: VBA2.5 4TB or rPi4B-8GB/pCP7.x/4TB>LMS 8.1.x>Transporter, Touch, Boom, Radio (all ethernet)
Cottage: rPi4B-4GB/pCP7.x/4TB>LMS 8.1.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
Office: Win10(64)>foobar2000
The Wild: rPi3B+/pCP4.0, hifiberry Dac+Pro, 4TB USB (LMS & Squeezelite)
Controllers: iPhone11 & iPadAir3 (iPeng), CONTROLLER, Material Skin, or SqueezePlay 7.8 on Win10(64)
Files: Ripping: dbpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify
-
2020-11-28, 09:35 #7
- Join Date
- Jul 2017
- Posts
- 123
ok thanks, no other way then to reboot the system then with LMS on and a non wanted poower cut
thanks for the info
always a great forum
take care
-
2020-11-28, 09:39 #8
- Join Date
- May 2008
- Location
- United States, Florida
- Posts
- 12,138
Many people say that they have power cuts that don't corrupt the SD card. It's just a matter of luck I think. I plug my rPi into a Uninterruptible Power Supply (UPS), which will keep supplying power from battery for 30 minutes or so. This solves the short power cuts (which we have here in Florida with thunderstorms, etc.). Another thing you might do is make backup copies of your SD card. So you can simply insert new card and all is back to normal.
Home: VBA2.5 4TB or rPi4B-8GB/pCP7.x/4TB>LMS 8.1.x>Transporter, Touch, Boom, Radio (all ethernet)
Cottage: rPi4B-4GB/pCP7.x/4TB>LMS 8.1.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
Office: Win10(64)>foobar2000
The Wild: rPi3B+/pCP4.0, hifiberry Dac+Pro, 4TB USB (LMS & Squeezelite)
Controllers: iPhone11 & iPadAir3 (iPeng), CONTROLLER, Material Skin, or SqueezePlay 7.8 on Win10(64)
Files: Ripping: dbpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify
-
2020-11-28, 09:49 #9
- Join Date
- Jul 2017
- Posts
- 123
-
2020-11-28, 10:14 #10
When running LMS on piCorePlayer, this is one reason for putting the database on a separate partition. And while the database partition might get corrupted, at least the system will still boot.
There is a fsck mechanism in pCP (Undocumented). Adding forcefsck to the command line will cause the root file system to be checked. I may end up adding this to any system running LMS, but for those using player features only, this just slows down the boot process.piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer