Home of the Squeezebox™ & Transporter® network music players.
Page 45 of 81 FirstFirst ... 35434445464755 ... LastLast
Results 441 to 450 of 810
  1. #441
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,967
    Quote Originally Posted by Pommes View Post
    I would be interested in this kind of script. Are you willing to share it, please?
    This is what I use. Just give it the name (including path) of the image file as a command line parameter:

    Code:
    #!/bin/sh
    
    imagefile=$1
    
    #Find which device pCP booted from: command copied from /home/tc/.ashrc
    TCEDEV="/dev/$(readlink /etc/sysconfig/tcedir | cut -d '/' -f3)"
    device="${TCEDEV%%?}"
    echo $device
    
    #bs=$(fdisk -l | grep -A 3 mmcblk0: | grep Units: | awk -F= {'print $2'} | awk {'print $1'})
    bs=$(fdisk -l | grep -A 3 $device: | grep Units: | awk -F= {'print $2'} | awk {'print $1'})
    echo "blocksize="$bs
    
    count=$(fdisk -l | grep $TCEDEV | awk {'print $5+1'})
    echo "count="$count
    
    dd if=$device bs=$bs count=$count | gzip > $imagefile

  2. #442
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,934
    Quote Originally Posted by paul- View Post
    We have created a web page that allows you to do a SD card backup to any mounted drive (Including network drives).
    Quote Originally Posted by Pommes View Post
    Awesome!
    Dumb question: which webpage would that be, please?
    <<<<<< Development content in this post, don't go hunting for it in the web interface >>>>>>>

    That would be a developmental version. (not in pCP yet). But I could do a web package update. Let me get a bit of input.

    1) Set the image location
    2) Press Create.....Currently in the name is the pCP verision, image size and timestamp. I could add hostname or something to identify the source of the image.

    Caveats
    • The path is a bit static....meaning, <path to mounted drive>/image/<images saved here> Adding a directory picker would take some time.
    • Free space check is not done on desitination
    • Currently will all partitions on the pCP boot device.


    Name:  2021-01-23_12-29.png
Views: 229
Size:  34.4 KB
    Last edited by paul-; 2021-01-23 at 10:56.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #443
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,967
    Quote Originally Posted by paul- View Post
    <<<<<< Development content in this post, don't go hunting for it in the web interface >>>>>>>

    That would be a developmental version. (not in pCP yet). But I could do a web package update. Let me get a bit of input.

    1) Set the image location
    2) Press Create.....Currently in the name is the pCP verision, image size and timestamp. I could add hostname or something to identify the source of the image.

    Caveats
    • The path is a bit static....meaning, <path to mounted drive>/image/<images saved here> Adding a directory picker would take some time.
    • Free space check is not done on desitination
    • Currently will backup up to 3 partitions on the pCP boot device.


    Name:  2021-01-23_12-29.png
Views: 229
Size:  34.4 KB
    Looks good. And of course a 'pcp ic' (for (i)mage (c)reate), or similar, so that it can be called from a cron job, using the settings on that page

  4. #444
    Senior Member
    Join Date
    Dec 2017
    Location
    PARIS, Fr
    Posts
    195
    Quote Originally Posted by paul- View Post
    <<<<<< Development content in this post, don't go hunting for it in the web interface >>>>>>>

    That would be a developmental version. (not in pCP yet). But I could do a web package update. Let me get a bit of input.

    1) Set the image location
    2) Press Create.....Currently in the name is the pCP verision, image size and timestamp. I could add hostname or something to identify the source of the image.

    Caveats
    • The path is a bit static....meaning, <path to mounted drive>/image/<images saved here> Adding a directory picker would take some time.
    • Free space check is not done on desitination
    • Currently will backup up to 3 partitions on the pCP boot device.


    Name:  2021-01-23_12-29.png
Views: 229
Size:  34.4 KB
    This is exactly the thing I was hoping for.
    I do not mind any of The ôcaveatsö :-)

    Please let us know when this is available, and how to possibly upgrade.
    Thanks regards
    Pommes
    The Earth Has Music For Those Who Listen

  5. #445
    Senior Member
    Join Date
    Dec 2017
    Location
    PARIS, Fr
    Posts
    195
    Quote Originally Posted by chill View Post
    This is what I use. Just give it the name (including path) of the image file as a command line parameter:

    Code:
    #!/bin/sh
    
    imagefile=$1
    
    #Find which device pCP booted from: command copied from /home/tc/.ashrc
    TCEDEV="/dev/$(readlink /etc/sysconfig/tcedir | cut -d '/' -f3)"
    device="${TCEDEV%%?}"
    echo $device
    
    #bs=$(fdisk -l | grep -A 3 mmcblk0: | grep Units: | awk -F= {'print $2'} | awk {'print $1'})
    bs=$(fdisk -l | grep -A 3 $device: | grep Units: | awk -F= {'print $2'} | awk {'print $1'})
    echo "blocksize="$bs
    
    count=$(fdisk -l | grep $TCEDEV | awk {'print $5+1'})
    echo "count="$count
    
    dd if=$device bs=$bs count=$count | gzip > $imagefile
    Thanks for sharing:-)
    The Earth Has Music For Those Who Listen

  6. #446
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,934
    Quote Originally Posted by chill View Post
    Looks good. And of course a 'pcp ic' (for (i)mage (c)reate), or similar, so that it can be called from a cron job, using the settings on that page
    The data on the page isn't saved anywhere. But I guess all we need is the destination path.

    I just need to be careful in scripts. dd didn't get the name for no reason........... "Disk Destroyer"
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #447
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,967
    Haha, yes, I can see why.

  8. #448
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,457
    Quote Originally Posted by paul- View Post
    We have been debating about including save/restore image capability. We have created a web page that allows you to do a SD card backup to any mounted drive (Including network drives). It tags the timestamp on the image, so you can save as many as you wish. We will probably not include an internal restore.....any imaging program can do the restore.
    Jeez that was quick!
    I only suggested it an hour ago
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  9. #449
    Senior Member
    Join Date
    Sep 2009
    Location
    Waihi Beach, New Zealand
    Posts
    242

    Raspberry Pi Zero W with pCP and LMS

    Sorry for a pretty basic question - I've tried searching the forums but haven't landed on the answer.

    Will a Pi Zero W successfully run piCorePlayer and Logitech Media Server without external disc; Spotify and internet radio only?
    Digital: Raspberry Pi 3B; piCorePlayer 7 + LMS 8; HifiBerry DAC+DSP > Yamaha RX-V2700 > Jamo speakers
    Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house
    Library: External USB drive
    Android: Squeezer app

  10. #450
    Senior Member
    Join Date
    Sep 2009
    Location
    Waihi Beach, New Zealand
    Posts
    242

    In-situ update success!

    I just did the in-situ update to pCP 7, and all appears to have gone perfectly smoothly. All done and dusted in 20 minutes - would have been 15 if I'd spotted 5 minutes earlier that the Pi was waiting for me to do the reboot!
    Another donation for you wonderful guys is on its way to the tip jar :-)
    Last edited by Viragored; 2021-01-23 at 20:29.
    Digital: Raspberry Pi 3B; piCorePlayer 7 + LMS 8; HifiBerry DAC+DSP > Yamaha RX-V2700 > Jamo speakers
    Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house
    Library: External USB drive
    Android: Squeezer app

Posting Permissions

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