nikrox
Posts: 9
Joined: Wed Feb 04, 2015 8:31 am

Switching from NOOBS to Raspbian

Sat Feb 11, 2017 1:44 pm

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

User avatar
rpdom
Posts: 17452
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Switching from NOOBS to Raspbian

Sat Feb 11, 2017 2:08 pm

It is possible, but tricky.

klricks
Posts: 7211
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Switching from NOOBS to Raspbian

Sat Feb 11, 2017 3:07 pm

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
Save anything you need to a USB 'thumb' drive.
-OR-
Install the new image to a new SD card. Then you can attach a USB SD cardreader to the RPi and move things over as needed.

Of course anything that was installed will need to be reinstalled to the new OS.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
DougieLawson
Posts: 39618
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Switching from NOOBS to Raspbian

Sat Feb 11, 2017 8:51 pm

I wrote this a while ago (nearly three years)
viewtopic.php?t=75994

I've not tested it recently.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

nikrox
Posts: 9
Joined: Wed Feb 04, 2015 8:31 am

Re: Switching from NOOBS to Raspbian

Sun Feb 12, 2017 1:19 am

DougieLawson wrote:I wrote this a while ago (nearly three years)
viewtopic.php?t=75994

I've not tested it recently.
Do you think there'd be a way to install a fresh version of Raspbian and then copy over everything?

Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Re: Switching from NOOBS to Raspbian

Sun Feb 12, 2017 1:53 am

As always, it would be good to know why OP wants to do this.
If this post appears in the wrong forums category, my apologies.

User avatar
Milliways
Posts: 556
Joined: Fri Apr 25, 2014 12:18 am
Location: Sydney, Australia

Re: Switching from NOOBS to Raspbian

Sun Feb 12, 2017 11:41 pm

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

edit /etc/fstab
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.

edit /boot/cmdline.txt

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.

Return to “Raspberry Pi OS”