Bekijk de volledige versie : How to clone HD (как склонировать)?
piezomotor
30-01-2008, 04:00
У меня все стоит Asus WL500gP 1.9.2.7-8.8 ( http, ftp servers, samba, parental control, tranamission, ushare итп.) и работает!
HD 160 GB маловат уже! Есть новый 500 GB.
A как склонировать - но только систему? Не хотелось бы через Norton Ghost все сливать...
Может кто и знает секрет?
I have Asus WL500gP 1.9.2.7-8.8 with http, ftp servers, samba, parental control, tranamission, ushare etc., installed.
My 160 GB HD is full already, I would like to transfer Oleg's system to the bigger 500 GB HD. I do not want to use the Norton Ghost as it takes too long...
Any ideas are appreciated!
Hi,
I normally create a tar file of the whole /opt partition and restore this to the new drive.
However.
I had to reboot the router with all services 'disabled' (in the post-boot file), before I make the archive, because some services (mysql ) don't like being archived when running... (place comment mark for the 'unslung.rc' command)
flash and reboot..
After that, login using telnet/ssh and issue the following command
tar -cvzf /mnt/archive.tgz /opt
(the command above is out off my head.. it creates an archive at /mnt/archive.tgz with the contents of the /opt folder)
I'm at work at the moment, when I'm home tonight, I will post the exact codes to do this..
(I have these codes in a write-up I'm making for this forum)
(This method assumes you have a 3 partition setup 1 for swap, 2 for /opt, 3 for /mnt)
Tar is not that fast on the asus.
If you only want to backup your program directory, tar is ok.
If you want to backup everything (your data also, photo, mp3, video) I would suggest doing it with some 'ghost' tool, It would simply take to long on the asus.
piezomotor
30-01-2008, 17:13
Thanks rass, I want to backup ONLY my program directory not all unrelated stuff like movies, MP3's etc.
In other words, when I started with an empty drive having two ext3 partitions big for data and small for swap:
root]$ fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 160.0 GB, 160041885696 bytes
16 heads, 63 sectors/track, 310101 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 305802 154124176+ 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part2 305803 307883 1048824 82 Linux swap
I installed all of the packages into /opt-
and this is what is mounted:
/dev/scsi/host0/bus0/target0/lun0/part1 /opt
Hi,
you should be able to archive your program directory with tar..
If you don't have 3 partitions, place the tar on another place on /opt , but out of the directory you want to archive..
if you want to archive /opt completely and do not have an other location to store the tar file, consider mounting a (windows-pc) smb-share to put the tar file to..
to mount an smb-share on the asus, use the following code
smbmount //ip.address.of.share/E /tmp/externals -o rw,guest
above machine (ip.address.of.share) has a share (E) which is mounted on the asus (/tmp/externals) with permissions (-o rw) as a user (guest)
if smb is installed and you have sufficient rights on the share you should be able to store the tar rile there.
piezomotor
31-01-2008, 01:38
Thanks for your help! It looks like you are really advanced linux user!
I just was able to connect second external USB HD to my WL500gP and may be you would know how to fix long names support.
I just posted this question-
http://wl500g.info/showthread.php?t=10761
Hehe... nope, no advanced linux user here.. just an advanced asus-router user :D
In fact, the router is the only linux machine I have running..
(besides some virtual linux machines (VM), which I use once in a while)
I don't have an answer ready for you long filename problem.
Очень успешно склонировал свой Ext3 300 GB HD на 1 TG HD включая 1 GB swap, используя Acronis True Image Home.
To clone a disk:
• Click on the Disk Clone item in the Disk Utilities window or select Operations -> Disk Clone from the menu.
• Follow the Disk Clone Wizard steps.
Selecting Partition Transfer Method
• Proportional - the new disk space will be proportionally distributed between cloned partitions
Нужно было больше места для фильмов...
А ранее пробовал с PQmagic тоже и не пошло...
Может кому то пригодиться.
Tamadite
16-10-2008, 22:49
http://wl500g.info/showpost.php?p=110136&postcount=7
Thanks, I was just trying to clone as per above and was having an error and new 1 TB partition would not be recognized by my WL500gP:
root$ dd if=/dev/scsi/host0/bus0/target0/lun0/part1 of=/dev/scsi/host1/bus0/target0/lun0/part2
reading `/dev/scsi/host0/bus0/target0/lun0/part1': Input/output error
425508408+0 records in
425508408+0 records out
217860304896 bytes (218 GB) copied, 124946 s, 1.7 MB/s
Also I am having errors when use PQMagic 8.0 when trying to copy EXT3 partition:
http://i135.photobucket.com/albums/q155/sonice2006/errorblock.jpg
http://i135.photobucket.com/albums/q155/sonice2006/errorblock2.jpg
http://i135.photobucket.com/albums/q155/sonice2006/errorblock3.jpg
http://i135.photobucket.com/albums/q155/sonice2006/pqmagic1.jpg
first I thougt that this is a PQMagic errors, as my disk works fine with WL500gP, then I was trying to copy this partition with Acronis True Image Home, but it always creates after this copyng the same partition size even I choose the proportional partition copying.
As far as I know this maximum EXT3 size is:
Block size Max file size Max filesystem size
1KiB 16GiB <2TiB
2KiB 256GiB <4TiB
4KiB 2TiB <8TiB
8KiB[limits 1] 2TiB <16TiB
Original:
http://i135.photobucket.com/albums/q155/sonice2006/Acronis2.jpg
http://i135.photobucket.com/albums/q155/sonice2006/Acronis3.jpg
http://i135.photobucket.com/albums/q155/sonice2006/Acronis4.jpg
Result:
http://i135.photobucket.com/albums/q155/sonice2006/Acronis.jpg
I did not get it, how come I can not clone 300 GB HD to 1TB HD here... I can not expand this to 1TB, it looks like I have no problems to clone to the same partition size though...
http://i135.photobucket.com/albums/q155/sonice2006/fsckext3.jpg
It looks like I have file system error, but how to fix it?
right... is it just not the easiest to install midnight commander, and then transfer the files?:rolleyes:
and I don't think it's clever to use a WINDOWZE tool to make a ext3 clone...
just use linux, the best is just to use your router, but otherwise use something like ubuntu, opensuse or debian... whatever you like:p
DemonGloom
01-12-2008, 15:44
As I know, wl500gp can support partitions up to 500GB, 1Tb is too big for our routers :(
Насколько помню, wl500gp поддерживает разделы размером до 500 ГБ, 1ТБ - слишком много для наших роутеров :(
is it just not the easiest to install midnight commander
Смонтировал 1 TB в /mnt -
root]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 2944 2944 0 100% /
/dev/root 2944 2944 0 100% /
/dev/scsi/host0/bus0/target0/lun0/part1
306627988 23980440 267071736 9% /opt
/dev/scsi/host1/bus0/target0/lun0/part1
960420360 23983336 887650432 3% /mnt
но когда пытаюсь копировать и выдает "omitting directory"...В чем дело?
root]$ cp /opt/* /mnt
omitting directory `/opt/bin'
omitting directory `/opt/doc'
omitting directory `/opt/etc'
omitting directory `/opt/fax'
omitting directory `/opt/ftp_pub'
omitting directory `/opt/ftp_pvt'
omitting directory `/opt/harddisk'
omitting directory `/opt/home'
omitting directory `/opt/include'
omitting directory `/opt/info'
omitting directory `/opt/ipkg-1fa6eY'
omitting directory `/opt/ipkg-6EPu9G'
omitting directory `/opt/ipkg-ATzkGL'
omitting directory `/opt/ipkg-BRVp0R'
omitting directory `/opt/ipkg-DzDWBR'
omitting directory `/opt/ipkg-G3sGGd'
omitting directory `/opt/ipkg-HEUfS1'
omitting directory `/opt/ipkg-Kr19Aq'
omitting directory `/opt/ipkg-XaAB4S'
omitting directory `/opt/ipkg-e2IU1p'
omitting directory `/opt/ipkg-xV4xyr'
omitting directory `/opt/ipkg-ys4QxK'
omitting directory `/opt/lib'
omitting directory `/opt/libexec'
omitting directory `/opt/lost+found'
omitting directory `/opt/man'
omitting directory `/opt/sbin'
omitting directory `/opt/share'
omitting directory `/opt/usr'
omitting directory `/opt/var'
As I know, wl500gp can support partitions up to 500GB, 1Tb is too big for our routers :(
Насколько помню, wl500gp поддерживает разделы размером до 500 ГБ, 1ТБ - слишком много для наших роутеров :(
what sonice says here, no idea what he exactly means.. I mean, get yourself some other characters I can read:p
anyway... I got 1TB hdd + 500GB hdd
The router should be perfectly capable of mounting that:rolleyes:
oh yes, and you can also use copy "cp"
I just find some GUI a bit easier sometimes:)
не могу ничем сделать полную копию харда от роутера..
винч 160 гигов самсунг, отформатирован роутером, около года работал круглосуточно нонстопом.
акронисы, гхост и прочие не видят ни одного раздела на этом диске..
поправьте меня пожалуйста если не так, как правильнее выполнить примерно такую операцию, чтобы скопировать весь диск в архив.tar.gz?:
mkdir /mnt/backup_disk/backup
tar -cvzf /mnt/backup_disk/backup/disc0.tar.gz /mnt/disc0/
роутером на роутер так копировал некоторые директории, вроде работает, но не разбираюсь в ключах. желательно, чтобы сохранялись симлинки и прочее.
п.с. использую Debian 5.0 lenny без графического окружения.
tar -cvzf /mnt/backup_disk/backup/disc0.tar.gz /mnt/disc0/
работает вроде, бэкапается в архив.