nikrox wrote:I've had NOOBS for a while now, but I want to switch to pure Raspbian, but how can I do that without losing everything?
Thanks in advance
As others have stated this is complex.
I can suggest a simpler option
change the line /dev/mmcblk0p1 /boot vfat defaults 0 2
(this would point to some other partition, probably /dev/mmcblk0p6)
Remove the SD Card from the Pi, insert in another computer, and copy the contents of the Raspbian /boot partition, in its entirety, to the first partition on the SD Card, replacing the NOOBS boot. I believe this can be difficult on some Windows systems (as they only see a single partition), but you could make an intermediate copy of the Raspbian /boot partition on ANY filesystem.
Code: Select all
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
i.e. replace the root=/dev/mmcblk0p2
with the partition containing Raspbian (probably /dev/mmcblk0p7) which can be found from the /etc/fstab
(If you copied the Raspbian /boot partition this should already be set.)
You should then be able to boot direct to Raspbian.
You could then remove any of the other partitions.
NOTE The Raspbian will be as normal, except instead of being on the 2nd primary partition it will be on an extended partition, but this should be completely transparent. The only thing I can think of is the raspi-config option to expand the partition probably won't work.
I have done similar many times, copying distributions to other partitions.