Mister Parsnips wrote:
My question is, whether or not it is possible to get a standard Pi desktop environment on this hard-soldered SD card while removing the XBMC, so I can turn this older Pi into the Pi-Hole DNS box. If so, can someone outline the steps to do this in an easy to follow manner?
Get a USB stick that's at least 16GB in size. Build a root filesystem on there (you could simply dd it from your soldered in SDCard). Update the /boot partition on the soldered in card so that the rootfs is on the USB device
Code: Select all
[email protected] ~ # cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=UUID=2ebfb7f2-0c0b-4de2-964c-8fe9b20aacee rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait rootdelay=5
[email protected] ~ #
Code: Select all
[email protected] ~ # cat /etc/fstab
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
UUID=2ebfb7f2-0c0b-4de2-964c-8fe9b20aacee / ext4 defaults,noatime 0 1
#/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
[email protected] ~ #
your UUID will be different - /dev/sda is USB drive on my B+
Code: Select all
[email protected] ~ # blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="140A-14B7" TYPE="vfat" PARTUUID="0009bf4f-01"
/dev/mmcblk0p2: UUID="f24a4949-f4b2-4cad-a780-a138695079ec" TYPE="ext4" PARTUUID="0009bf4f-02"
/dev/sda1: UUID="2ebfb7f2-0c0b-4de2-964c-8fe9b20aacee" TYPE="ext2" PARTUUID="2f3846c8-01"
/dev/mmcblk0: PTUUID="0009bf4f" PTTYPE="dos"
[email protected] ~ #
This will copy the root fs to the USB device
Code: Select all
dd if=/dev/mmcblk0p2 of=/dev/sda1 bs=40M
Boot the system and make sure it's OK (once you've updated /boot/cmdline.txt you've got to be 100% sure it's right as that's a point of no return). You can then work on rebuilding the rootfs (possibly using another RPi) once it's running what you want reverse this process - copy it back to /dev/mmcblk0p2 and change /boot/cmdline.txt back to
Code: Select all
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Best of luck with that. If you mess up /boot/cmdline.txt you'll have to de-solder the SDCard.