LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2016, 12:22 PM   #1
seahawkibiza
LQ Newbie
 
Registered: Jul 2011
Location: Chiclana/Spain
Distribution: CLFS
Posts: 6

Rep: Reputation: Disabled
Question Make bootable Image from only a couple of the partitions


Hello,
I searched the forum and the web, but I cant find a solution.

I will distribute a image to install on a small computer with SD-Card.

The space I need is less as 2GB and I have 2 partitions. The FAT boot-Partition with UBoot and the root partion.

As I have only big HDDs or SD-Cards, I shrinked the partion sizes to 20MB and 1.9GB to fit on any 2GB SD-Card.

But how can I write down a image not from the whole SD-Card (i.e. 8GB) , instead only from the 1st and 2nd partition (less 2GB)?

The User should copy the image with Win32DiskImager to a SD-Card. Then, with a script - I will expand the filesystem or, if installed, copy the root system to a SSD and expand there.
(and, of sure, change the entry in env.txt)

Last edited by seahawkibiza; 07-10-2016 at 12:24 PM.
 
Old 07-10-2016, 03:21 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
dd count=<howmanyblocksyouwant>
 
Old 07-10-2016, 04:18 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I usually make a vm of this device with a smaller hard drive and file copy the data part with gparted or other file by file. Then either copy the loader or just add it in.
 
  


Reply

Tags
boot, dd, image, sd



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Image a bootable CF card with multiple partitions RoyLittle0 Linux - Newbie 1 02-21-2015 10:03 PM
Regarding Creation of Bootable ISO of hard disk image having multiple partitions.. nagamohan_p Linux - Newbie 1 08-26-2006 10:52 PM
Regarding Creation of Bootable ISO of hard disk image having multiple partitions.. nagamohan_p Programming 1 08-25-2006 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:47 AM.

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