[CLUE-Tech] Red Hat 7.3 upgrade - /usr partition too small
Ed Hill
ed at eh3.com
Fri Jun 28 11:25:35 MDT 2002
On Fri, 2002-06-28 at 10:54, Paul Bille wrote:
>
> Can I re-partition the primary master without loosing all the data on
> the drive?
I know that recent versions of Partition Magic will do what you want.
And FIPS might, also. But I'd do the following instead:
- Backup all user data. For CDRs, you're looking at less than
ten disks even if your /home and /dos partitions are completely
full. Included below is a CDR-backup "cheat-sheet" that I wrote
for students in our lab.
- Re-partition with a better layout and re-install.
This approach allows you to re-format the disk with confidence. And its
*always* a good idea to have backups.
hth,
Ed
# === CDR-backup "cheat-sheet" ===
# Make ISO9660 file system with Rock Ridge (Unix) and
# Joliet (MS-long-filenames-crap) extensions and follow
# any soft links:
mkisofs -R -J -f -o file.iso /path/
# Same as above but instead preserve (don't follow) the
# soft links:
mkisofs -R -J -o file.iso /path/
# Mount the ISO image using the loopback device to test
# that it did what you wanted (got all the right files):
mkdir ./test
mount -t iso9660 -o ro,loop file.iso ./test
cd ./test
ls
cd ..
umount ./test
# Burn the ISO image to the CDR:
cdrecord -v -speed=4 -dev=0,0 -eject cell_990920.iso
cdrecord -v -speed=8 -dev=0,0 -eject cell_990920.iso
cdrecord -v -speed=16 -dev=0,0 -eject cell_990920.iso
# Re-Burn a CD-RW:
cdrecord -v -speed=2 -dev=0,0 -eject blank=fast pub.iso
# Backup a directory larger than the capacity of a
# single CDR:
tar -cvf - /path/to/backup/ | gzip | split -b650m - bkup.`date
'+%Y%m%d'`.tgz.
--
Edward H. Hill III, PhD
Post-Doctoral Researcher | Emails: ed at eh3.com, ehill at mines.edu
Division of ESE | URL: http://www.eh3.com
Colorado School of Mines | Phone: 303-273-3483
Golden, CO 80401 | Fax: 303-273-3311
Key fingerprint = 5BDE 4DA1 66BE 4F7B BC17 3A0C 932B 7266 1E76 F123
More information about the clue-tech
mailing list