Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 22nd August 2011, 01:42 AM
duffy1384 Offline
Registered User
 
Join Date: Sep 2010
Posts: 15
linuxfedorafirefox
writing partition image to free space at end of drive

I need to restore a partition images on another machine to the unused space on my laptop.

I'm using netcat and dd to restore the partition.


On laptop:
nc -l 192.168.192.254 9000 | dd bs=1024 conv=notrunc,noerror seek=<some block pos> of=/dev/sda

On W/S:
dd if=part.img bs=1024 | nc 192.168.192.254 9000

The problem is that fdisk -l displays start & end sectors of the partitions and I need to know blocks.

How do I determine the block number after the last partition to start writing this image???

---------- Post added at 07:42 PM ---------- Previous post was at 07:04 PM ----------

Quote:
cat /proc/partitions
Displays blocks per partition.

I could add those numbers up but is sure would be nice to have a utility that just give you what you need.
I really don't want to screw this up - any thoughts?
Reply With Quote
 

Tags
drive, end, free, image, partition, space, writing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
where is my free space after shrinking the partition Devireddiharsha Using Fedora 1 26th April 2011 01:30 PM
Image doesn't fit to USB - where did the free space disappear? japafi Installation and Live Media 6 30th March 2010 02:11 AM
why can I not use free space (EXT3 partition) johannlo Using Fedora 2 23rd September 2007 10:02 AM
How to free up space in root partition? xyleo Servers & Networking 2 9th May 2007 05:03 PM
Creating partition in free space sandyabhanu Using Fedora 2 18th March 2005 08:09 AM


Current GMT-time: 03:11 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat