PDA

View Full Version : Anyone know a command line to make a duplicate of my Tivo HDD?


Mark Ward
08-09-2008, 03:11 AM
I have a 250gb Samsung 5400RPM in one of my Tivos and I'd like to "clone" that HDD, kernel update, recordings & all, for my other Tivo.

Using an MFSTools boot CD is there a command line I can use to make an exact copy of that HDD onto another 250gb Samsung 5400RPM HDD?

I am able to have both HDDs connected at the same time, typically I'd have the original disk on hdb and the destination disk on hdc for a normal disk upgrade.

Thanks,

Mark.

blindlemon
08-09-2008, 05:15 AM
Do you want an exact copy - ie. sector by sector? In that case use DD:-

dd if=/dev/hdX of=/dev/hdY bs=2M conv=noerror,sync

Or do you just want a copy of the TiVo OS and recordings excluding the empty space? In that case:-

mfsbackup -Tao - /dev/hdX | mfsrestore -s 300 -r4 -xzpi - /dev/hdY

followed by copykern to initialise the swap.

Make sure you use the LBA48 Boot CD (ptv-mfstools2-large-disk.iso) in both cases or you will only copy stuff up to 137gb :eek:

Mark Ward
08-09-2008, 06:11 AM
Do you want an exact copy - ie. sector by sector? In that case use DD:-

dd if=/dev/hdX of=/dev/hdY bs=2M conv=noerror,sync

Or do you just want a copy of the TiVo OS and recordings excluding the empty space? In that case:-

mfsbackup -Tao - /dev/hdX | mfsrestore -s 300 -r4 -xzpi - /dev/hdY

followed by copykern to initialise the swap.

Make sure you use the LBA48 Boot CD (ptv-mfstools2-large-disk.iso) in both cases or you will only copy stuff up to 137gb :eek:

Is one method better than the other? Either will do what I want to achieve.

I want to put all the changes I've made to the OS and also the shows on my other Tivo.

Thanks,

Mark.

blindlemon
08-09-2008, 12:14 PM
Both methods will copy everything, although the 2nd method requires you to run copykern afterwards.

If your drive is 100% full then both will take a similar amount of time; if your drive is not full though, the 2nd method will be quicker, maybe a lot quicker if your drive is only half full or nearly empty and especially so if you run my PurgeDeleted script via telnet first ;)