[ale] rsync and link files

James P. Kinney III jkinney at localnetsolutions.com
Tue Jan 22 14:18:03 EST 2002


rsync won't make the hard drive boot sector on the copy as it's not part
of any filesystem. You can do it with dd, but you will need to dig up
the size of the master boot record so you know what size to tell dd to
work with.

A better (easier) solution is to chroot the new drive and run lilo from
the new drive. 

But if sda croaks, and you try to boot from sdb, you will run into
problems unless you change scsi ID's as the new drive will be( still)
sdb and fstab won't match up.

On Tue, 2002-01-22 at 13:13, Michael Still (mikes) wrote:
> Are you using the -a switch?   
> 
> On another rsync note.. I have a system here that I'm trying to do local
> rsync with to make 'poor man's mirror' of my disk.
> 
> I have 2 identical 18G SCSI hd's on sda and sdb and partitioned exactly the
> same with a /boot and a / (no swap..yeah I know), but the problem is that
> when I reboot with this disk to test my mirror lilo gives LI 01 01 01 01...
> So there is a problem somewhere.
> 
> Any ideas?  Better ways to do this?
> 
> -begin lilo.conf:
> boot = /dev/sdb
> timeout = 50
> prompt
> default = mike
> vga = normal
> read-only
> map=/boot/map
> install=/boot/boot.b
> 
> image = /boot/bzImage-mike
>         label = mike
>         root = /dev/sda2
> -end lilo.conf
> 
> -beging sync.sh:
> mount /mnt/backup/root
> mount /mnt/backup/root/boot
> /usr/bin/rsync --delete -xav / /mnt/backup/root
> /usr/bin/rsync --delete -xav /boot/ /mnt/backup/root/boot
> #/usr/sbin/chroot /mnt/backup/root /sbin/lilo -C /root/sync/lilo.conf
> /sbin/lilo -r /mnt/backup/root -v -v -v -C /root/sync/lilo.conf
> sync ; sync ; sync
> umount /mnt/backup/root/boot
> umount /mnt/backup/root
> -end sync.sh
> 
> # fdisk -l /dev/sda
> 
> Disk /dev/sda: 255 heads, 63 sectors, 2213 cylinders
> Units = cylinders of 16065 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sda1   *         1        13    104391   83  Linux
> /dev/sda2            14      2211  17655435   83  Linux
> 
> # fdisk -l /dev/sdb
> 
> Disk /dev/sdb: 255 heads, 63 sectors, 2213 cylinders
> Units = cylinders of 16065 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sdb1   *         1        13    104391   83  Linux
> /dev/sdb2            14      2211  17655435   83  Linux
> 
> --------------------------------------
> Michael Still (MikeS at McBurney.com)
> System Administrator
> The McBurney Corporation
> --------------------------------------
> 
> 
> -----Original Message-----
> From: aaron [mailto:aaron at pd.org]
> Sent: Tuesday, January 22, 2002 1:16 PM
> To: ALE
> Subject: [ale] rsync and link files
> 
> 
> 
> Was trying to use "rsync" to locally mirror my RH 7.1 hard drive (and 
> create a long overdue backup) before updating to RH 7.2
> 
> For the most part, rsync is being a gem.  However, I would like to 
> maintain the various soft, hard and absolute link files in most 
> directories and rsync is not transfering or recreating any of the links.
> 
> I have reviewed the man and tried several combinations of the link 
> handling options listed there with no success. Anyone have a clue
> what I might be missing to get the links to be mirrored with the regular 
> files??
> 
> thanks...
> aaron
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> 
> sent to listmaster at ale dot org.
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
> 
-- 
James P. Kinney III   \Changing the mobile computing world/
President and COO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 This is a digitally signed message part




More information about the Ale mailing list