[28042] in resnet

home help back first fref pref prev next nref lref last post

Re: Extract a partition from a USB Stick

daemon@ATHENA.MIT.EDU (Greg Bowser)
Fri Oct 26 07:11:28 2012

X-URI-Submission-From: topnotcher@mail.uri.edu
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Message-ID:  <1361833777.8257638.1351217302507.JavaMail.root@mail.uri.edu>
Date:         Thu, 25 Oct 2012 22:08:22 -0400
Reply-To: Resnet Forum <RESNET-L@listserv.nd.edu>
From: Greg Bowser <bowser@URI.EDU>
To: RESNET-L@listserv.nd.edu
In-Reply-To:  <CANtPpk5LUg11oVGH-5cdLufxf24qNbDBCkmXbyCoxHTbaUXeqw@mail.gmail.com>

Before we go and try an re-create it, is there a way to extract this 700MB Linux partition, so we could load it onto a larger stick?

If you want to copy a whole partition, your best bet is is to use dd, but rather than imaging the whole device image the partition, e.g.:

root@foo$ dd if=/dev/sda1 of=/dev/sdb1

Where sda1 is the source partition and sdb1 is larger partition you created on a different stick.  This will copy the filesystem exactly, and it will show up as a 700MB filesystem on sdb1. In order to utilize the rest of the space, you would need to use the resize utility for your file system. (e.g. resize2fs for extN, resize_reiserfs, ntfsresize...)

- Greg



-------------------------------
Greg Bowser
Information Technologist
Information Security Office
University of Rhode Island

bowser@uri.edu
(401) 874-7285

1 Tyler Hall
9 Green House Rd
Kingston, RI 02881


----- Original Message -----
From: "Mike King" <me@mpking.com>
To: RESNET-L@LISTSERV.ND.EDU
Sent: Thursday, October 25, 2012 8:26:11 PM
Subject: Extract a partition from a USB Stick

We have a Live Linux USB stick we use, and it was originally created on a 4GB USB Stick (2GB windows mountable partition, that is also mounted in the 700MB Linux partition for persistent storage). 


We don't have to original Live CD ISO any more. Before we go and try an re-create it, is there a way to extract this 700MB Linux partition, so we could load it onto a larger stick? (Currently we've been just imaging the USB stick onto larger capacities, but we'd like to utilize the large space we've been buying. 


Mike ___________________________________________________ You are subscribed to the ResNet-L mailing list. 

To subscribe, unsubscribe or search the archives, go to http://LISTSERV.ND.EDU/archives/resnet-l.html ___________________________________________________ 

___________________________________________________
You are subscribed to the ResNet-L mailing list.

To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________

home help back first fref pref prev next nref lref last post