重裝KuroBox Pro 的硬碟,並安裝 Debian 7.0 (Wheezy) 的作業系統

我的 KuroBox Pro 是沒有 Console 介面可以查看到,參考了很多資料,
終於重新安裝了 Debian 7.0 (Wheezy) 的 Linux 環境在機器上.

A.準備環境
1. 有一台作為 Client 連線的電腦(如果是Windows 請另外準備一台 Linux 的電腦)
2. USB 可以接 SATA 硬碟的外接盒或是連接線,
3. TFTP Server 軟體安裝在 Client 機器上,
4. 可以連上網際網路的網路環境,因為要使用網路安裝的方式安裝Debian 7.0 (Wheezy),最好是有DHCP的網路環境,網路安裝的開機環境會以DHCP 來取得 IP .
5. 下載 TFTP 開機需要使用的檔案,可以利用網路安裝 Debian
6. 記錄好 KuroBox Pro 的 MAC 位置,方便之後查詢機器的IP位置,


下載連結 http://ftp.jp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/

資料來源網址: http://white-voice.cocolog-nifty.com/wv/2013/05/linkstation-ls-.html


B. 開始新硬碟分割等作業
1. 由 linux 主機先行分割及格式化新購的硬碟,或是進入 EM 模式或 TFTP 開機來進行硬碟的分割及格式化,相關指令及分割大小,請依各人需求規劃,並自行上網杳詢相關指令

資料來源網址: http://white-voice.cocolog-nifty.com/wv/2011/03/ls-gl4kb2tb-h-1.html

2. 修改 U-Boot 的啟動參數
資料來源網址: http://white-voice.cocolog-nifty.com/wv/2011/03/ls-gl4kb2tb-h-2.html


C. 利用網路安裝方式來安裝 Debian 7.0 Wheezy
1. 以上列的資料,先將新硬碟分割好,並格式化完成,在開機的 /boot 掛載區放入網路安裝的開機檔案,
2. 重新開機後,要等一段時間,才能連到設備,先查詢到網路安裝環境開機取得的 IP 位置,
3. 利用 pietty軟體使用 SSH 連接到 KuroBox Pro 的設備
登入帳號 installer / 密碼 install
如果前面的步驟沒有問題,設備有開機起來,應該會看到 Debian 的安裝介面,就可以開始安裝 Debian ,
而且安裝過程中會自行利用網路下載所需要的安裝檔案,所以要保持網路的連線,由於機器的效能不如桌機或是筆電,所以會花費比較多的時間,

資料來源網址: http://white-voice.cocolog-nifty.com/wv/2011/03/ls-gl4kb2tb-h-3.html

D. 安裝 OwnCloud 雲端硬碟套件
加套件庫並手動安裝(隱藏)

需要 Debian 7.0 ,用 root 執行:

echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list
apt-get update
apt-get install owncloud
您可以加入套件庫金鑰至 apt。請記住金鑰所有人也會分發您的系統將會信任的更新、套件和套件庫 (詳見更多資訊)。要加入金鑰,請執行:

wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key
apt-key add - < Release.key<br>需要 Debian 6.0 ,用 root 執行:

echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_6.0/ /' >> /etc/apt/sources.list.d/owncloud.list
apt-get update
apt-get install owncloud
您可以加入套件庫金鑰至 apt。請記住金鑰所有人也會分發您的系統將會信任的更新、套件和套件庫 (詳見更多資訊)。要加入金鑰,請執行:

wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_6.0/Release.key
apt-key add - < Release.key<br>
資料來源: http://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud


2015/01/08 Add Debian apt-mirrot 自建源功能
建立及操作過程參考下列網址,因為設定檔案不匹配,所以下列是我的設定檔

root@debian:~# cat /etc/apt/mirror.list | grep -v '#'
set base_path /mnt/disk1/debian_mirror
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
set defaultarch <running host architecture>
set postmirror_script $var_path/postmirror.sh
set run_postmirror 0
set nthreads 20
set _tilde 0


deb-armel http://opensource.nchc.org.tw/debian/ wheezy main contrib non-free

deb-armel http://opensource.nchc.org.tw/debian/ squeeze main contrib non-free


clean http://opensource.nchc.org.tw/debian
root@debian:~#

root@debian:~# cat /etc/apache2/sites-enabled/source | grep -v '#'
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /mnt/disk1/debian_mirror/mirror/
<Directory /mnt/disk1/debian_mirror/mirror/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

LogLevel warn

CustomLog /var/log/apache2/access.log combined

</VirtualHost>
root@debian:~#


root@debian:~# cat /etc/apt/sources.list | grep -v '#'
deb http://127.0.0.1/opensource.nchc.org.tw/debian wheezy main non-free contrib


deb http://opensource.nchc.org.tw/debian/ wheezy main
deb-src http://opensource.nchc.org.tw/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

deb http://opensource.nchc.org.tw/debian/ wheezy-updates main
deb-src http://opensource.nchc.org.tw/debian/ wheezy-updates main
root@debian:~#

或是利用連結的方式
ln -s /mnt/disk1/debian_mirror/mirror/opensource.nchc.org.tw/ /var/www


# 2015/09/10 新增 Debian 8 jessie 的資訊 , 並補充一些常用的參數和資料

Debina 8 jessie 版本的網路安裝開機檔下載連結
http://ftp.jp.debian.org/debian/dists/jessie/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/


# Console 終端機連線設定
Kuro-Box/Pro
Bps: 115200
Data: 8bit
Parity: None
Stop bit: 1
Flow Ctrl: None

# TFTP 開機設定資訊
TFTP Server IP 192.168.11.1
KuroBox Pro 預設 IP 192.168.11.150

# TFTP 開機檔案
預設開機檔案請從原廠網站下載 kbpfw102.zip
把解壓縮出來的檔案放在 TFTP Server 的根目錄

# 備份及還原安裝好的環境
1. 先使用上列的 TFTP 環境開機, 或把硬碟接在另一台 linux 的桌機上
2. 把使用到的開機分割區掛載起來, 並掛載要存放備份檔案的空間
我的環境如下 /dev/sda1 (/boot) , /dev/sda2 ( / ) , /dev/sda3 ( /Backup )
mount /dev/sdb1 /mnt/sdb1
mount /dev/sdb2 /mnt/sdb2
mount /dev/sdb3 /mnt/Backup

3-1. 備份 boot 區
cd /mnt/sdb1
tar zcvf /mnt/Backup/boot-bak-yyyymmdd.tar.gz .

3-2. 備份根目錄
cd /mnt/sdb2
tar zcvf /mnt/Backup/root-bak-yyyymmdd.tar.gz .

4. 要還原的話,先作 1 的環境,
然後重新格式化 /dev/sdb1 , /dev/sdb1 清除資料
作 2 掛載分割區

5-1. 還原 boot 區
cd /mnt/sdb1
tar zxvf /mnt/Backup/boot-bak-yyyymmdd.tar.gz

5-2. 還原 根目錄
cd /mnt/sdb2
tar zxvf /mnt/Backup/root-bak-yyyymmdd.tar.gz


# 預設登入帳號/密碼
lspro login: root Password: hydr0g3nfoonas-em$
kuroboxport login: root Password: kuroadmin


#變更為從 ROM 開機
setenv default_kernel_addr=0x00100000
setenv bootargs_base console=ttyS0,115200
setenv bootargs_root root=/dev/mtdblock2
setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver)
setenv uImage_block 0
setenv uImage_offset=0x00020000
setenv nand_boot yes
setenv bootcmd 'nboot $(default_kernel_addr) $(uImage_block) $(uImage_offset); bootm $(default_kernel_addr)'
saveenv


# Syncthing 同步軟體安裝
http://apt.syncthing.net/
Debian/Ubuntu Packages
# Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -

# Add the "release" channel to your APT sources:
echo deb http://apt.syncthing.net/ syncthing release | sudo tee /etc/apt/sources.list.d/syncthing-release.list

# Update and install syncthing:
sudo apt-get update
sudo apt-get install syncthing


待續.....


註. 相關資料連結

KURO-BOX/PRO 原廠連結
http://archive.kuroutoshikou.com/modules/display/?iid=966

KuroboxPro
http://buffalo.nas-central.org/wiki/Category:KuroboxPro

SCON-KIT/ PRO quick manual
http://buffalo.nas-central.org/wiki/SCON-KIT/_PRO_quick_manual

自建debian 7源
http://my.oschina.net/davehe/blog/301665

玄箱Pro Debian 7.0「Wheezy」安裝
http://www.benii.com/blog/pc/kuroboxpro/kurobox_pro_debian7wheezy/

LinkStation LS-GL Debian 7.0 (Wheezy)安裝
http://white-voice.cocolog-nifty.com/wv/2013/05/linkstation-ls-.html

由Debian的安裝程序(Debian的安裝說明)網絡安裝 Debian 7.0 Wheezy 的
http://white-voice.cocolog-nifty.com/wv/2011/03/ls-gl4kb2tb-h-3.html

如何在Debian上安装配置ownCloud
http://linux.cn/article-4289-1.html

【硬體】窮人的NAS: Buffalo LinkStation
http://www.pczone.com.tw/vbb3/thread/16/133020/

Debian 6.0 Squeeze巳經技援NAS
http://digiland.tw/viewtopic.php?id=1838

老調重彈 - 玄箱(追加 console 連線心得、追加作業系統使用心得)
http://www.mobile01.com/topicdetail.php?f=110&t=1089578

KuroBox-Pro安裝Debian 6.0
http://digiland.tw/viewtopic.php?id=1838

安裝Debian的傑西到KuroBox
http://blog.usoinfo.info/article/418596388.html

Console 終端機連線說明
http://www.mztn.org/kpro_memo/kpro_serial.html

無痛安裝Kuro-Box HG PartⅠ
http://tycoon13.blogspot.tw/2007/04/kuro-box-hg-part.html

KUROBOX 安裝Lenny 升級U-BOOT KERNAL 2.6筆記
http://den13501.pixnet.net/blog/post/98654873-kurobox-%E5%AE%89%E8%A3%9Dlenny-%E5%8D%87%E7%B4%9Au-boot-kernal-2.6%E7%AD%86%E8%A8%98

Debian系統升級:從Wheezy到Jessie
http://blog.csdn.net/u014801157/article/details/46833283

Syncthing 同步軟體 Debian/Ubuntu Packages 安裝
http://apt.syncthing.net/

先註記,之後再安裝並更新

歡迎各位高手補充相關資料,
請問K大,你換的硬碟是什麼牌的?
可以分享一下,每個分割區的小小嗎?
Debina 8 jessie 版本的開機檔下載
http://ftp.jp.debian.org/debian/dists/jessie/main/installer-armel/current/images/orion5x/network-console/buffalo/kuroboxpro/

我的硬碟是用 WD 綠標 2 TB 的,
我的分割區基本上和上列文件沒有太大的差異,
我多了個 sda3 來備份安裝好的作業系統環境,
所以資料是儲存在 sda6

root@KUROBOX-PRO:~# fdisk -l /dev/sda

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a973e

Device Boot Start End Blocks Id System
/dev/sda1 * 63 1012094 506016 83 Linux
/dev/sda2 1012095 20563199 9775552+ 83 Linux
/dev/sda3 20563200 40114304 9775552+ 83 Linux
/dev/sda4 40114366 3907024064 1933454849+ 5 Extended
/dev/sda5 40114368 41126399 506016 82 Linux swap / Solaris
/dev/sda6 41126463 3907024064 1932948801 83 Linux
root@KUROBOX-PRO:~#

root@KUROBOX-PRO:~# df -h
檔案系統 容量 已用 可用 已用% 掛載點
rootfs 9.2G 1.4G 7.4G 16% /
udev 10M 0 10M 0% /dev
tmpfs 13M 292K 12M 3% /run
/dev/sda2 9.2G 1.4G 7.4G 16% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 124M 0 124M 0% /run/shm
/dev/sda1 464M 12M 427M 3% /boot
/dev/sda3 9.2G 2.9G 5.9G 33% /mnt/sda3
/dev/sda6 1.8T 121G 1.6T 7% /mnt/disk1
root@KUROBOX-PRO:~#
k1951223 wrote:
Debina 8 jessie...(恕刪)


目前嘗試新安裝Jessie版都有問題
會停在installation package
會一直在Killedving localechoose和一些其它的package
然後就顯示Killied

一直到 6/30的版本才成功安裝

mitee wrote:
Killedving


請問Killedving 的狀況後來怎麼好的?
我安裝也一直出現,搞不清楚是怎麼一回事...

id3883 wrote:
請問Killedving...(恕刪)


直至五月時更新才解決
但...
應該是想容性問題

你的硬碟是多大的呢?

mitee wrote:
直至五月時更新才解決...(恕刪)


我拿了一顆3T的硬碟,但Kurobox pro好像不支援GPT格式...
又拿了顆300G的試,也不見成功。

怪怪的

id3883 wrote:
我拿了一顆3T的硬...(恕刪)

WD RED 2T成功
但之前在安裝過程也是一直死
你是停在哪一個步驟呢?

mitee wrote:
WD RED 2T成...(恕刪)


成功裝上Debian 7了,也正常升到Debian 8。
因為我一直用UART進行安裝,後來才用ssh安裝才成功...

只是不知Kurobox Pro有沒支援3T以上GPT分割?

id3883 wrote:
成功裝上Debian...(恕刪)


查不到3TB的安裝實例~~~
關閉廣告
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!