[ILUG] harddisk swap
P at draigBrady.com
P at draigBrady.com
Thu Apr 29 12:20:33 IST 2004
Timothy Murphy wrote:
> On Wednesday 28 April 2004 15:59, Cian Cullinan wrote:
>
>>1) I've partitioned the SCSI disk in advance and done "mkfs.ext3 -j" on all
>>partions except the swap. Will this work or will I have do something like
>>
>>dd if=/dev/hda of=/dev/sda bs=512 count=1
>>
>>for the MBR before I can go and partition /dev/sda?
>
>
> I would be very surprised if you could copy the MBR in this way.
> In any case, it seems to me perfectly sensible to partition the disk
> and create file-systems before doing anything else.
>
>
>>2) I'm planning on booting from a Fire CD mounting /dev/hda partitions
>>read-only and using cp to copy them to the /dev/sda partitions. Sound
>>reasonable?
>
>
> I would use "cp -a" as you suggest.
> You have to be careful not to copy filesystems mounted on subdirectories,
> eg by umount-ing them before copying the main system.
>
> But I'm sure the ILUG gurus will give better advice.
>
Won't cp bail out on a failed read?
tar should give you more control of stuff like this:
( cd /src/ && tar --ignore-failed-read --one-file-system cf - . ) |
( cd /dst/ && tar --preserve xf - )
--
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---
Tracking your reboots
To know the history of your last re-boot sequences:
last reboot
last looks back in the wtmp file for all logins. The pseudo
user "reboot" also logs in at all reboots of the system
--
More information about the ILUG
mailing list