LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


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

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
Code:
TARGET_END=$((
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 02:48 PM.
 
Old 09-13-2020, 05:43 PM   #2
Shadow_7
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.
 
  


Reply



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 12:10 AM
RaspberryPi: Cannot get raspbian distros to work right smeezekitty Linux - Embedded & Single-board computer 6 01-07-2014 03:34 PM
automatize fbi as slideshow with crontable on RaspberryPi iv3oaw Linux - Newbie 4 01-01-2014 10:37 AM
Booting the raspberrypi from the USB pendrive rather than the SD Xeratul Linux - General 1 09-23-2012 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:46 PM.

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