Naresh Reddy on Mon, 11 Feb 2002 12:00:14 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Full Partion


% fdisk -l /dev/hda
Disk /dev/hda: 255 heads, 63 sectors, 1401 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       243   1951866   83  Linux
/dev/hda2           244       274    249007+  82  Linux swap
/dev/hda3           275      1158   7100730    5  Extended
/dev/hda4          1159      1401   1951897+  83  Linux
/dev/hda5           275       486   1702858+  83  Linux
/dev/hda6           487       729   1951866   83  Linux
/dev/hda7           730       972   1951866   83  Linux
/dev/hda8           973      1158   1494013+  83  Linux

Sorry for being so late :)

-----------------------------------
Naresh Reddy
nyg102@psu.edu
http://www.personal.psu.edu/nyg102
-----------------------------------

On Thu, 31 Jan 2002, Bill Jonas wrote:

> On Wed, Jan 30, 2002 at 11:57:13PM -0500, Naresh Reddy wrote:
> > Well,  I will not use the /opt method. What is the best way to tar these
> > files (to preserve the permissions), and then copy the tared file
> > somewhere temporary, ,and combine the partions and then untar the file
> > into the new combined partion.
>
> As root, "tar -cpf filename.tar /path/to/files/to/save".  Then scp
> filename.tar off somewhere (you might gzip it first, or even add a z
> ("tar -cpzf") to the options (make it file.tar.gz if you do, just so you
> can keep track of it).  Do what you need to do, retrieve the file, cd to
> the directory you were when you tarred it (or to / if you used an
> absolute path), and run (again as root) "tar -xpf filename.tar" (or "tar
> -xzpf filename.tar.gz" if you compressed it).
>
> As for the partition question, it's a little tricky to combine them
> because hda4 is a primary partition, and hda7 (which you intend to nuke)
> is in the extended partition.
>
> I noticed that hda4 wasn't included in your df output.  Could you send
> the output of "fdisk -l /dev/hda"?
>
> --
> Bill Jonas    *    bill@billjonas.com    *    http://www.billjonas.com/
>
> Developer/SysAdmin for hire!   See http://www.billjonas.com/resume.html
>


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug