Quite some time ago, I asked here how to install glibc 2.1 on RHL without 
breaking everything.

At the time, I postponed it because I didn't have enough disk space in the 
right places to do it.

Since then I've rearranged things and it became feasible.

Old arrangement:
[root@emu /root]# sfdisk -l /dev/hda

Disk /dev/hda: 16 heads, 63 sectors, 16368 cylinders
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls   #blocks   Id  System
/dev/hda1   *      0+     32      33-    16600+  83  Linux native
/dev/hda2         33    8159    8127   4096008   83  Linux native
/dev/hda3       8160   16367    8208   4136832   83  Linux native
/dev/hda4          0       -       0         0    0  Empty
[root@emu /root]# 

/dev/hda1 contains kernels and such; it mounts under /boot
/dev/hda2 is my / partitioon.

/dev/hdb is a 4.3 Gbyte HDD. I partitioned it and here is the new 
arrangement;
[root@emu /root]# sfdisk -l /dev/hdb

Disk /dev/hdb: 255 heads, 63 sectors, 525 cylinders
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls   #blocks   Id  System
/dev/hdb1          0+      2       3-    24066   83  Linux native
/dev/hdb2          3     524     522   4192965   83  Linux native
/dev/hdb3          0       -       0         0    0  Empty
/dev/hdb4          0       -       0         0    0  Empty
[root@emu /root]# 


I used this procedure to copy hda2 to hdb2:
[root@emu /root]# cat bin/bu.rootfs
#!/bin/bash
umount t
mount /dev/hdb2 t || exit $?
tar -clp -C / . | tar -xp -C t/
ed t/etc/fstab <<.
%s=/hda2=/hdb2=g
%s=/hda1=/hdb1=g
g/^\/dev/p
wq

_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to