Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 09-13-2020, 03:46 PM   #1
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,281

Rep: Reputation: Disabled
Dual boot a RaspberryPi

So, having had my interest piqued, in another forum thread I gave it a go....

Yes it works!

First, dd a RaspiOS image to the drive, before restarting, go to /usr/lib/raspi-config/init_resize & change the line starting with
to something that will prevent it using up all the disk, these are in 'sectors', (& I think RaspiOS is using 4096 as the size).
I just stuck in TARGET_END=$((8000)), which prevented it from grabbing all the disk.

I then ran RaspiOS to check it was working OK, it was using about 3.3GB.

Shutdown RaspiOS, then install Linux to the rest of the disk as normal, I used AntiX, (my regular distro), & let it install grub to the MBR.

The RPi that I was using just booted up normally from my USB pendrive, & when I inserted into a regular computer, grub booted up Linux, no problem.

Edit: I was using RaspiOS64 on my RPi3B+

<< Posted in the hope that it may be of interest to others. >>

Last edited by fatmac; 09-13-2020 at 03:48 PM.
Old 09-13-2020, 06:43 PM   #2
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You could also manually fdisk/cfdisk and resize2fs the / partition to accomplish the "extra" space/partition on a single storage device. Linux is all files on a filesystem so you don't even need to be using an arm computer to do that little trick.

I've also cloned the install to another SD card, then stripped everything away except /boot and the /lib/modules/ for the raspbian kernel, then installed debian via debootstrap. That was debian armel (armv4) long ago before raspberry pis had good GPU support for 3D things. So that for the software (mesa) drivers of 3D. For 11fps in glxgears, eventually 17fps in raspbian when GPU support allowed it. The original B version with a single 700MHz armv6 CPU.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] keyboard and mouse stop working in starting X in raspberryPI golden_boy615 Linux - Embedded & Single-board computer 5 02-09-2014 01:10 AM
RaspberryPi: Cannot get raspbian distros to work right smeezekitty Linux - Embedded & Single-board computer 6 01-07-2014 04:34 PM
automatize fbi as slideshow with crontable on RaspberryPi iv3oaw Linux - Newbie 4 01-01-2014 11:37 AM
Booting the raspberrypi from the USB pendrive rather than the SD Xeratul Linux - General 1 09-23-2012 06:04 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration