LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] harddisk swap

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell