早就想把原來那台機器上的硬碟拿過來用了,可是一直沒有時間。今天是2007年的國慶節,我起的比預想的早。來到教研室就開始了今天的任務,到剛才才弄好。
注意:我的第一塊硬碟只有10G,所以想下載點電影資料總是不夠用。硬碟是Maxtor,OS是FC3。原來的那塊很快被我卸載下來,其空間是30G,牌子是IBM。
首先,要知道,微機總共有2條IDE數據線(比較寬的,很明顯),每條上面有兩個介面,所以一共可以聯接四個IDE設備。我現在電腦上除了那個小空間的硬碟就是光碟機了,分別接在不同的數據線上。當然相應的電源線也有四個介面。
再者,當你只有一個盤的時候,不存在跳線設置問題,比如是Master,slave或者Cable Select都可以。但當你需要兩塊硬碟的時候就需要告訴主板應該從哪塊硬碟啟動,並且區別他們是不同的硬碟。所以你應該設置已經安裝了你將要啟動的操作系統的硬碟為Master,另一為Slave。當然你有幾種選擇,同一數據線,不同數據線,或者設置成Cable Select模式,當兩塊盤都設成CS時,接中間介面的是Master,端部的為slave,如果已經有一塊設置成Master/Slave,則另一會相應變化。對於不同公司的設備,有不同的的跳線方法,在硬碟的後部中間位置,可能有一個或兩個跳線帽,你可以根據說明來操作。
最後別忘記把光碟機檢查一下,也許你在安裝過程中卸掉了其數據或電源線。還有,記得固定好。
現在你可以從新安裝系統也可以用以前的系統。我在那塊IBM的盤裡(Slave盤)從新安裝了Ubuntu,分了兩個區,1和2。剩下的都用作擴張現在的FC3系統吧。安裝Ubuntu很簡單,我就不說了。
重新啟動時,grub是Slave盤裡的Ubuntu下面的,不是原來FC下的了。不過可以進入FC。(有選項的)。
fdisk -l
發現多了一個盤兩個區。My hd name is : /dev/hdd,the partition is /dev/hdd1 and /dev/hdd2.
fdisk /dev/hdd
出現如下信息:
Command (m for help): m 顯示主菜單
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition"s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n 創建新分區
Command action
e extended 擴展的分區
p primary partition (1-4) 主分區
p 創建主分區
Partition number (1-4): 3 因為已經有1和2分區了,只能從三開始
First cylinder (300-7366, default 300): 最好默認,因為它會接著上面的以前的區來。
Last cylinder or +size or +sizeM or +sizeK (300-7366, default 7366): 可以默認(既所有空閑區),也可輸入自己想的大小(+10000M 選擇分區大小 )。
Command (m for help): w 保存退出
The partition table has been altered!
mkfs -t ext3 /dev/hdd3 將我創建的第一個分區格式化
或者使用:mkfs.ext3 /dev/hdd3
mke2fs 1.27 ( 8-Mar-2002 )
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1281696 inodes, 2560252 blocks
128012 blocks (5.00%) reserved for the super user
First data block=0
79 block groups
32768 blocks per group, 32768 fragments per group
16224 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@linux /]# mkdir /mnt/video 創建一個目錄
[root@linux /]# mount /dev/hdd3 /mnt/video 將 hdd3分區 mount to /mnt/video
這樣每次都需要mount,可以在/etc/fstab 文件中設置啟動自動mount該區。
添加如下信息:
/dev/hdd3 /mnt/video auto default,user,uid=500, 0 0
[火星人
]
Linux:增加硬碟空間已經有634次圍觀
http://coctec.com/docs/linux/show-post-119651.html