|
藍森林 http://www.lslnet.com 2006年8月08日 13:08
如何對sco unix 整個系統做備份
我的UNIX裝在一個4GB 的SCSI硬盤上,但是想對整個系統做備份,於是新買了一個4GB的SCSI硬盤,容量比老硬盤小幾十兆,不能通進GHOST進行備份,能否利用dd 命令和 cpio 命令製作系統備份,希望有此經驗的高手能盡快給予詳細的解決方法.非常感謝! |
如何對sco unix 整個系統做備份
必要條件:
目標盤空間應該>;=源盤空間. |
如何對sco unix 整個系統做備份
我想,不能用分區對分區或盤對盤的方式克隆,但是用分區到鏡像應該可以吧。 |
如何對sco unix 整個系統做備份
我也遇過這個問題,就是買的SCSI盤較原來的SCSI盤稍小所以無法做GHOST,當時也沒想過用DD或cpio命令,所以就重裝了系統,再將其他覆蓋過來使其同原系統一樣了 |
如何對sco unix 整個系統做備份
轉貼
在開始硬盤對拷之前,首先應將已安裝好系統的源盤和空白目標盤分別設置跳線,安裝在計算機上。開機,進入CMOS設置兩塊硬盤的參數,然後進入源盤的超級用戶root,就可以開始拷貝了。
以下是在digital P200微機上,SCO Open Server Release 5環境下進行硬盤對拷的過程。
1.增加一塊硬盤
#mkdev hd 1 0
Your root hard disk is attached to an IDE controller.
Pick one of the choices below or you may quit and
Invoke mkdev hd -u for a detail usage message.
1)Add a hard disk to IDE controller
2)Add a hard disk to SCSI controller
3)Add a hard disk to an IDA controller(EISA)
Enter 1,2,3,or enter 'q' to quit:(輸入1)
……
If you wish to exit the entire installation at this menu,
Press the <DEL>;key.
Hard Disk Drive 1 Configuration
1.Display current disk parameters
2.Modify current disk parameters
3.Select default disk parameters
Enter an option or 'q' to quit:
(這是dkinit程序的菜單。在此可以選1顯示目標硬盤參數,如不符要求,可選2進行修改,然後輸入q繼續)
……
1.Display Partition Table
2.Use Entire Disk for UNIX
3.Use Rest of Disk for UNIX
4.Create UNIX Partition
5.Activate Partition
6.Delete Partition
7.Create Partition
Enter your choice or 'q' to quit:
(這是fdisk程序的菜單。在此可以對目標硬盤按需要進行分區,然後輸入q繼續)
……
1.Print Current Bad Track Table
2.Scan Disk (You may choose Read-Only or Destructive later)
3.Add Entries to Current Bad Track Table by Cylinder/Head Number
4.Add Entries to Current Bad Track Table by Sector Number
5.Delete Entries Individually from Current Bad Track Table
6.Delete All Entries from Bad Track Table Please enter your choice or 'q' t 廯 t:
(這是badtrk程序的菜單,選擇2可以掃瞄查找硬盤上有問題的磁道,並對應到硬盤別處的正常磁道上,另外還建立一個壞道表。輸入q繼續)
Enter the number of bad tracks to allocate space for
(or press<return>;to use the recommended value of 15):
(回車)
There are 2110657 blocks in the UNIX area.
Please enter the number of file systems you want this area
To be divided into,or press<Return>;to get the default of 2 file system(s).
(回車)
The layout of the filesystems and swap area is now prepared.
Do you wish to make any manual adjustments to the sizes or
names of the filesystems or swap area before they are created
on the hard disk?(y/n)
(輸入n)
Making filesystems
Hard disk initialization procedure completed.
2.用dd命令將SCO UNIX硬盤自舉程序從源盤拷入目標盤
#dd if=/dev/hd0a of=/dev/hdla bs=1024 count=40
3.用divvy命令在目標盤上建立可安裝的文件系統
#divvy-im /dev/rhdla
There are 2095537 lk blocks in the UNIX area.
Between 16000 and 512000 lk blocks should be reserved for the swap area.
Please enter the swap-space allocation ,or press <Return>;
To get the default allocation of 24000 lk blocks:
(回車)
There are 2095537 lk blocks in the UNIX area.
Between 15000 and 64000 lk blocks should be reserved for the boot filesystem.
Please enter the boot-space allocation,or press <Return>;
To get the default allocation of 20000 lk blocks:
(回車)
Do you want a separate /u filesystem?(y/n)
(輸入n)
The layout of the filesystems and swap area is now prepared.
Do you wish to make any manual adjustments to the sizes or
names of the filesystems or swap area before they are created
on the hard disk?(y/n)
(輸入n)
Making filesystems
4.用divvy 命令查看並修改內分區(division)名
#divvy/dev/rhdla
Name Type New FS # First Block
Last Block dll50 EAFS no 0
0 19999
d1151 NON Fs no 1 20000
43999
HTFS no 2 44000
2045725
Not USED no 3 -
-
Not USED no 4 -
-
Not USED no 5 -
-
recover NON FS no 6 2045726
2045735
hdla WHOLE DISK no 7 0
2061831
2045736 lk blocks for divisions,16096 lk blocks reserved for the system.
n[ame] Name or rename a division.
c[reate] Create a new file system on this division.
t[ype] Select or change filesystem type on new filesystems.
p[revent] Prevent a new file system from being created on
this.
s[tart] Start a division on a different block.
e[nd] End a division on a different block.
r[estore] Restore the original division table.
Please enter your choice or 'q' to quit:
(輸入n修改內分區名。在此分別將0,1,2內分區名修改為rb ,rs,rr)
i[nstall] Install the division set-up shown.
r[eturn] Return to the previous menu.
e[xit] Exit without installing a division table.
Please enter your choice:
(輸入i將內分區情況安裝在目標盤上)
Making filesystems.
5.將目標盤引導文件系統安裝到源盤上,並拷貝其內容
#mount/dev/rb/mnt
#cd/stand
#find.-print|cpio-pdumv /mnt
#umount/mnt
6.將目標盤根文件系統安裝到源盤上,並拷貝其內容
# mount/dev/rr/mnt
#find/-mount print|cpio-pdumv/mnt
7.建立目標盤根文件系統中的文件系統安裝點
#cd /mnt
#mkdir mnt stand;chmod 755 mnt stand;chgrp bin mnt stand
#umount /mnt
至此,拷貝完畢。 |
如何對sco unix 整個系統做備份
很詳細. |
如何對sco unix 整個系統做備份
這樣做源盤和目標盤必須是相同型號大小麼? |
如何對sco unix 整個系統做備份
沒有這個要求 |
如何對sco unix 整個系統做備份
我已經用DD 和CPIO命令對boot 區、root 區做了完整的備份,而且系統已經啟動,但是我的原來的硬盤上還存在一個u區,不知該如何進行備份,希望有此經驗的高手再次給予指教。非常感謝! |
如何對sco unix 整個系統做備份
u區也是一個文件系統,如法炮製即可 |
如何對sco unix 整個系統做備份
我不知道u 區為哪一個目錄 |
如何對sco unix 整個系統做備份
可以通過mount看一下,u掛在那裡了 |
如何對sco unix 整個系統做備份
我是一名初學者,不知道如何用mount 看u 區掛在哪個目錄下,請高手給予詳細說明,非常感謝! |
如何對sco unix 整個系統做備份
例:
#mount
/ on /dev/root read/write on .........
/stand on /dev/boot read only on ......
其上/dev/root文件系統掛在/stand目錄上 |
如何對sco unix 整個系統做備份
我用了這個命令,但是不行,請高手再指教。 |
如何對sco unix 整個系統做備份
| 如何對sco unix 整個系統做備份
| |
|