2008-10-31

发现白天实在效率很低,也许真的是美国人为啥比较发达的原因吧?人效率高的那会,都是美国的白天?我们都在效率高的时候睡觉所以啥也干不了??

所以今晚又熬了一夜,花了3个小时找的办法,花了一个小时想如何破解学校那个装补丁才可以上网的绝招,学校那监控补丁没linux版本…所以,hmm 只能郁闷或者想绝招了,当然我还是很快想到了上网的绝招滴

至于的办法可以参看 Clonezilla-Clone System

当然前面3个小时都在玩这个 How to clone your bootable Ubuntu install to another drive 被这个误解了……那个该死的复制个系统要半个小时都不会复制完,实在是不如 2分钟一个系统

另外一个 系统不错的好处就是,之前由于要配置的publish key和private key,如果有15台机器的话,要来回复制c15 2大概 hmm 我个人理解要有 15x 14 x 13 x 12 x 11 x 10等等等之类次的来回cp了,估计如果搞这个可以搞一天,而且逻辑上哪台跟哪台没弄肯定会记错…… 现在好了 key都是一样的,只要原始版本的linux的 server安装之后 localhost 可以,这样基本上 网内 出来的机器都不没问题了

晚上在机房把所有的机器都拆了,硬盘全部拆出来,真的是拆的手指痛,有15台机器,每台机器1个硬盘,拆掉15次,然后装上15次,再拆掉15次,再装15次,一共60次……电源线+数据线……真是bt。估计今天白天大家要是看到肯定会疯掉的,估计这帮韩国人计算机系的没几个人会这么拆电脑来玩,都是疯子电脑坏掉就直接丢掉等教授换新的……

搞了一晚上,基本上流程是在之前写好了计划,把都已经修改过,slave1 192.168.0.1 这样的方式依次类推 然后每个机箱上都贴了一个ip地址最后一位数

唯一遗憾的就是 的site-config.xml那暂时没配置,等下次上机做实验的时候我再教那些人一块来搞吧

暂时写这么多,等我详细试验过之后,如果没什么问题,我会把今晚详细配置15台机器组一个系统的办法和流畅写一下的

先不去睡觉了,把我那台升级到8.10去…之前升级过一次beta版本 差点疯掉…这回正式版应该会好一些吧,不过之前beta版本gnome界面超漂亮……看这回有没跟之前的beta不同咯

今晚又要借着我们实验室那小伙去澳大利亚语言研修的东风,又有饭吃了,昨天是土木系那边教授请客吃生鱼片,今天就是我们教授请吃烤肉去了……hmm

Tags: ,,,,,,,.

今晚不睡觉的目的,其实是要把机房的15台机器全部装好 8.04并且装好所需的环境设置

刚刚用那个 跟下午一个毛病,花费很久很久很久

Replace with the correct paths for your drives if they differ. It’s going to take a while, so grab a book or start up a movie. Maybe go to bed.

从这几句话看……就知道有多么的慢了

实在太强了,只需要2分钟即可备份一份系统出来,而且自动修复……基本上就是傻瓜式的操作,省时又省力……只恨没早点找到这个,不过现在时间还来得及,hmm

http://www.clonezilla.org/

Tags: ,,,,.

还是无视这篇文章

Clonezilla – Clone System Ubuntu

看这篇吧

下午搞了一下午这个玩意

当然,直接看网上的教程是用 if=/dev/sda of=/dev/sdb 这种方法,但是每次copy之后就会出现

: reading `/dev/scd1': Input/output error
1053920+0 records in
1053920+0 records out
这种错误,然后直接把硬盘接到另外一台机器开启之后, error 18或者error 2
于是很无奈的没办法解决……
刚刚又仔细的在网上看了下教程

If you’ve ever wanted to completely your install, with all of the tweaks, files you’ve downloaded and changes you’ve made to it, there’s a fairly simple way to do this. This is great if you want a complete backup, or if you’re looking to move your to a newer (read: bigger, faster, stronger) hard drive or even just to your install to other machines with the same hardware.

We’ll be using the terminal (Applications-> Accessories-> Terminal) and the command to do this. You’ll also need to have your second disk up and running when we get going. You can either have it installed and mounted internally or use an external disk enclosure and USB or Firewire. (Note: Doing this via USB 1 will be excruciatingly slow!)

You’ll also want to either be cloning your hard drive to one of the exact same size, or if you have a larger disk, make a partition of the same size on it and to that. Then, use an liveCD to change the partition size (-> Administration-> Partition Editor). Lastly, you’ll need a LiveCD.

On to the good stuff. Got both disks plugged in? Good! Now you’ll need to figure out which disk you are copying from and which disk you are copying too. In your terminal, type:

df -h

Look first for the partition that’s mounted at root, or ‘/’. Here’s what my root partition looks like.

Filesystem Size Used Avail Use% Mounted on

/dev/sda1 71G 46G 22G 68% /

If you’re using a SATA drive it will appear like that. IDE should be /dev/hda1. See that slash below the Mounted on? That’s the root drive.

Now you’ve got to locate the drive you’re copying too. The same df -h command will do the trick. Look for another disk mounted on /dev/****. If you’re not sure what you’re looking for, first run the df -h command without your second disk mounted. Then plug the 2nd disk in (be sure to shut down if you’re doing this inside your machine and not via USB or FireWire) and run the df -h command again. The newest partition that appears is what you’re looking for!

So if your current root partition is /dev/sda1 and the partition you’re going to copy to is /dev/sdb1 (a USB mounted drive) here’s the command you’ll need to type in your terminal:

sudo if=/dev/sda1 of=/dev/sdb1

Replace with the correct paths for your drives if they differ. It’s going to take a while, so grab a book or start up a movie. Maybe go to bed.

Once it’s complete, you’ve got yourself a brand new copy of your current install. You’re not quite done yet though. Now you’ve got to install on your new disk so you can boot from it. Make sure your new disk is attached to your machine and your old disk is unplugged and boot into the LiveCD.

Once your machine boots up, open up a terminal session and type:

sudo

will launch and give you the > prompt. Here, type:

find /boot//stage1

You should see something come back that looks like hd(0,0). Jot that down, you’ll need it in a second.

Now, still in the > prompt, type:

root hd(0,0)

You’ll put in whatever result you go above – it may be different than hd(0,0).

Once that completes, type:

setup (hd0)

Even if you got a result that differs from hd(0,0) above.

Type:

quit

And you’re out of . Restart your machine, removing the LiveCD and you should be up and running on your new hard drive. You may also encounter a problem on your first boot where the will try to scan your hard drive for bad sectors. If that fails, you’ll find yourself in a root terminal session. Just type:

fsck

Let the disk check finish and you should be good to go.

这篇真的不错,基本原理是一样的,只是用的时候用来启动系统,而不是我之前那样直接启动到系统里面再用系统去copy系统……这样可能有些东西在运行,无法copy,然后这个教程还讲到 copy完成之后,还要再修改新搞的硬盘的设置……怪不得我没设置,自然会出错 -_-

Tags: ,,,,,,.