Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Senior Member
    Join Date
    Jul 2017
    Posts
    123

    SD card unreadable after power cut

    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

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,958
    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

  3. #3
    Senior Member
    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

  4. #4
    Senior Member KeBul's Avatar
    Join Date
    Sep 2009
    Location
    London
    Posts
    265
    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

  5. #5
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    19,940
    Quote Originally Posted by jouteur View Post
    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?
    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.

  6. #6
    Senior Member
    Join Date
    May 2008
    Location
    United States, Florida
    Posts
    12,139
    Quote Originally Posted by bpa View Post
    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.
    in piCorePlayer webGUI, on the "main" tab, it is best to use the proper shutdown when running LMS on the rPi, which will shutdown LMS and the rPi properly. See picture.

    Name:  Capture.PNG
Views: 185
Size:  98.4 KB
    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

  7. #7
    Senior Member
    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

  8. #8
    Senior Member
    Join Date
    May 2008
    Location
    United States, Florida
    Posts
    12,139
    Quote Originally Posted by jouteur View Post
    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
    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

  9. #9
    Senior Member
    Join Date
    Jul 2017
    Posts
    123
    Quote Originally Posted by garym View Post
    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.
    yes indeed, I used to be fine with power cut and that SD card, but not anymore...bah
    thanks for the tip

  10. #10
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,821
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •