home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20697 < prev    next >
Encoding:
Text File  |  1992-12-16  |  3.2 KB  |  64 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!think.com!yale.edu!jvnc.net!primerd.prime.com!hammer!cummings
  3. From: cummings@hammer.prime.com (Kevin Cummings)
  4. Subject: Re: Extending the size of a partition?
  5. Message-ID: <1992Dec16.190329.28917@primerd.prime.com>
  6. Sender: cummings@hammer (Kevin Cummings)
  7. Organization: Prime Computer, Inc.
  8. References:  <1992Dec14.021022.16565@tc.cornell.edu>
  9. Date: Wed, 16 Dec 1992 19:03:29 GMT
  10. Lines: 52
  11.  
  12. In article <1992Dec14.021022.16565@tc.cornell.edu>, mdw@db.TC.Cornell.EDU (Matt Welsh) writes:
  13. > My /usr filesystem is on /dev/hda4, and is a Minix filesystem. I'd
  14. > like to somehow non-destructively replace this with an extended
  15. > filesystem so I'll have the space... currently, about 100 megs of
  16. > my disk are sitting unused after /dev/hda4. 
  17. > I imagine this is impossible, but if there's any way to do this
  18. > without destroying the files, I'd like to try it. Otherwise, I'll
  19. > just have to tar up my entire /usr tree onto my DOS partition (which
  20. > I only use as my Linux backup!), kill the partition, replace it, and
  21. > then unpack the big tar file back onto the new /usr.
  22. > Any ideas? If I can't replace the filesystem non-destructively,
  23. > are there any caveats for backing up the whole thing with one
  24. > big tar file? Thanks for any help.
  25.  
  26. You don't mention what your partition table looks like.  Are you already
  27. using 4 partitions?  At least one for DOS, and at least one for Linux.
  28. Do you currently have a swap partition?  Do you have a DOS-extended
  29. partition?
  30.  
  31. If you are only using 2 or 3 partitions, then you can create new partition
  32. for your remaining disk space.  Use efdisk to create it, and do a newfs
  33. on it to initialize it.  mount it under your current file system (/mnt),
  34. and use the mv command to move your files to the new partition.  When you
  35. are done, you can put the appropriate mount commands in your rc.local file
  36. and you are done!  
  37.  
  38. If you are already using all 4 entries in your partition table, then you
  39. need to do some creative re-partitioning.  I sugest that you make one
  40. of your partitions (the big one) a DOS-extended partition.  Inside of the
  41. DOS-extended partition, you can create "logical disks" for DOS and still
  42. leave other space for LINUX partitions.  You can create the LINUX equivalent
  43. of DOS "logical disks" using efdisk (/dev/hda5, etc) and follow the suggestions
  44. above.  You may have to back stuff up to floppy or tape first in order to
  45. reclaim it later (either under DOS or LINUX depending on your capabilities).
  46.  
  47. Finally remember that if worse comes to worse, you can always re-create the
  48. better part of your LINUX environment from the SLS disks if necessary (again
  49. depending their availability to you).
  50.  
  51. =================================================================
  52. Kevin J. Cummings                       ComputerVision Services
  53. 20 Briarwood Road                       500 Old Connecticut Path
  54. Framingham, Mass.                       Framingham, Mass.
  55.                     
  56. Home:  cummings@kjc386.framingham.ma.us    Work:  cummings@primerd.Prime.COM
  57.  
  58. Std. Disclaimer: "Mr. McKittrick, after careful consideration,
  59.           I've come to the conclusion that your new
  60.           defense system SUCKS..."   --  War Games
  61. =================================================================
  62.