特殊:Badtitle/NS100:BootFromFirewireHardDisk/zh:修订间差异
Dbzhang800(留言 | 贡献) 小无编辑摘要 |
Zhiquanhe2003(留言 | 贡献) |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:BootFromFirewireHardDisk}} | {{Languages|UbuntuHelp:BootFromFirewireHardDisk}} | ||
=== | === 设备无法正常工作 === | ||
These instructions won't work, as the Ubuntu kernel does not have the necessary bits compiled in -- SCSI, fw support, and sbp-2. See http://macubuntu.blogspot.com/ for step-by-step instructions on how to get this to work. | These instructions won't work, as the Ubuntu kernel does not have the necessary bits compiled in -- SCSI, fw support, and sbp-2. See http://macubuntu.blogspot.com/ for step-by-step instructions on how to get this to work. | ||
Ubuntu的内核不支持对SCSI、FireWire驱动器和SBP-2(Serial Bus Protocol)设备的位编译,因此这些设备无法正常使用。请根据http://macubuntu.blogspot.com/ 上面的指示来使其正常工作。 | |||
=== Original post === | === Original post === |
2009年4月20日 (一) 18:35的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BootFromFirewireHardDisk }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/af | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Afrikaans| [[::BootFromFirewireHardDisk/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/ar | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|العربية| [[::BootFromFirewireHardDisk/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/az | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|azərbaycanca| [[::BootFromFirewireHardDisk/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/bcc | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|جهلسری بلوچی| [[::BootFromFirewireHardDisk/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/bg | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|български| [[::BootFromFirewireHardDisk/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/br | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|brezhoneg| [[::BootFromFirewireHardDisk/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/ca | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|català| [[::BootFromFirewireHardDisk/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/cs | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|čeština| [[::BootFromFirewireHardDisk/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/de | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Deutsch| [[::BootFromFirewireHardDisk/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/el | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Ελληνικά| [[::BootFromFirewireHardDisk/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/es | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|español| [[::BootFromFirewireHardDisk/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/fa | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|فارسی| [[::BootFromFirewireHardDisk/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/fi | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|suomi| [[::BootFromFirewireHardDisk/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/fr | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|français| [[::BootFromFirewireHardDisk/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/gu | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|ગુજરાતી| [[::BootFromFirewireHardDisk/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/he | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|עברית| [[::BootFromFirewireHardDisk/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/hu | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|magyar| [[::BootFromFirewireHardDisk/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/id | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Bahasa Indonesia| [[::BootFromFirewireHardDisk/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/it | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|italiano| [[::BootFromFirewireHardDisk/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/ja | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|日本語| [[::BootFromFirewireHardDisk/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/ko | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|한국어| [[::BootFromFirewireHardDisk/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/ksh | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Ripoarisch| [[::BootFromFirewireHardDisk/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/mr | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|मराठी| [[::BootFromFirewireHardDisk/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/ms | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Bahasa Melayu| [[::BootFromFirewireHardDisk/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/nl | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Nederlands| [[::BootFromFirewireHardDisk/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/no | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|norsk| [[::BootFromFirewireHardDisk/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/oc | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|occitan| [[::BootFromFirewireHardDisk/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/pl | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|polski| [[::BootFromFirewireHardDisk/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/pt | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|português| [[::BootFromFirewireHardDisk/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/ro | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|română| [[::BootFromFirewireHardDisk/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/ru | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|русский| [[::BootFromFirewireHardDisk/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/si | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|සිංහල| [[::BootFromFirewireHardDisk/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/sq | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|shqip| [[::BootFromFirewireHardDisk/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/sr | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|српски / srpski| [[::BootFromFirewireHardDisk/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/sv | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|svenska| [[::BootFromFirewireHardDisk/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/th | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|ไทย| [[::BootFromFirewireHardDisk/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/tr | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Türkçe| [[::BootFromFirewireHardDisk/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/vi | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|Tiếng Việt| [[::BootFromFirewireHardDisk/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/yue | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|粵語| [[::BootFromFirewireHardDisk/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/zh | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|中文| [[::BootFromFirewireHardDisk/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/zh-hans | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|中文(简体)| [[::BootFromFirewireHardDisk/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BootFromFirewireHardDisk | UbuntuHelp:BootFromFirewireHardDisk | {{#if: | :}}BootFromFirewireHardDisk/zh}}/zh-hant | • {{#if: UbuntuHelp:BootFromFirewireHardDisk|中文(繁體)| [[::BootFromFirewireHardDisk/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BootFromFirewireHardDisk|:BootFromFirewireHardDisk/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BootFromFirewireHardDisk/zh/zh | | {{#ifexist: BootFromFirewireHardDisk/zh/zh | | {{#ifeq: {{#titleparts:BootFromFirewireHardDisk/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BootFromFirewireHardDisk/zh|1|-1|}} | zh | | }}
设备无法正常工作
These instructions won't work, as the Ubuntu kernel does not have the necessary bits compiled in -- SCSI, fw support, and sbp-2. See http://macubuntu.blogspot.com/ for step-by-step instructions on how to get this to work.
Ubuntu的内核不支持对SCSI、FireWire驱动器和SBP-2(Serial Bus Protocol)设备的位编译,因此这些设备无法正常使用。请根据http://macubuntu.blogspot.com/ 上面的指示来使其正常工作。
Original post
This page needs a bit of love, imported from bugzilla #1181
该页面的设置需要小心谨慎。
Here you have a link to a howto to boot from a harddisk.
这里有一个链接是教你如何从硬盘启动的。
I'm not sure if the link will be valid too much time so here you have the important bits:
我不敢肯定该链接的有效期是多久,所以你要注意下面的部分:
3. i. Next is to locate the firmware path of the FireWire drive:
3. i. 接下来是设置FireWire驱动器的固件路径:
# find /proc/device-tree/ -name disk@\* | grep -i firewire /proc/device-tree/pci@f4y000000/FireWire@e/node@0001d200e00260c6/sbp-2@c000/disk@0
3. j. Next it is time to create the yaboot.conf file on the
FireWire
drive. The
config file shown below was based on the FireWire
address above.
3. j. 接下来在FireWire驱动器上创建yaboot.conf文件,下面的配置文件基于上述的FireWire地址。
# pico /mnt/fw/boot/yaboot.conf ofboot=fw/node/sbp-2/disk@0: init-message=”Welcome top Yellow Dog Linux! \n Hit <TAB> for boot options. \n\n” partition=4 timeout=30 install=/usr/lib/yaboot/yaboot magicboot=/usr/lib/yaboot/ofboot default=linux image=/boot/vmlinux-2.4.20-8dsmp label=linux root=/dev/sda4 read-only initrd=/boot/initrd-2.4.20-8dsmp.gz defaultos=linux delay=10 enablecdboot
I believe the partition=4 line can go in the image= section which is where it belongs. If one has several boot images then a different partition might be needed. However, it was done this way for simplicity. Since this example only uses one FireWire drive with one install of YDL it is not necessary to move the line. The ofboot line should be the firmware path to the FirwWire drive.
我认为“partition=4”这一行可以归类写入“image=”一段。如果有多个启动镜像的话需要有不同的分区(partition)选项。但是,这样做是为了简单方便。由于这个例子只是使用一个FireWire驱动器安装了YDL(Yellow Dog Linux),所以无须移动该行。ofboot 这一行应该是FireWire驱动器的固件路径。
3. k. Now we must “bless” the drive so that it can be seen by the Apple boot loader.
现在,我们要为该驱动器祈祷,以保佑它能够被苹果的启动引导器观察到。
# ybin -v --boot /dev/sda2 --nonvram --config /mnt/fw/boot/yaboot.conf
3. l. You should now be ready to boot the FireWire
drive using the Mac boot
loader. In order to get to the Mac boot leader you must restart the machine:
现在,你应该准备使用苹果的启动引导器来启动FireWire驱动器。要使用苹果的启动引导器,你必须重启你的机器:
# shutdown –r now 然后按住以下键: ALT + APPLE KEY + O + F
3. m. You should see a boot prompt and at this prompt type:
3. m.你会看到一个启动提示符,然后输入:
> boot fw/node/sbp-2/disk@0:2, yaboot
Note that the disk@0:2 is from the FireWire address and 2 is the bootstrap partition. This will change if you put the bootstrap on another partition number.
注意,“disk@0:2”是FireWire的路径,“2”是指启动分区。如果你改变了启动分区的位置,这个选项会有所改变。
3. n. Now you should see the yaboot boot loader from the FireWire drive; you can just hit enter here and it will take you into YDL.
现在,你应该可以看到来自FireWire驱动器的yaboot引导载入程序了,你只要按下Enter键就可以进入YDL(Yellow Dog Linux)了。
4: Firmware paths
固件路径
To find the firmware path of your FireWire disk, type the command: ( find /proc/device-tree - name disk@\* | grep firewire ) Removing the /proc/device-tree gives the OpenFirmware path of the disk. Firmware aliases found in /proc/device-tree/aliases or lack of multiple firewire disks will allow a simplification of the path, as illustrated in our example.
要找到你的FireWire硬盘的固件路径,输入以下命令: ( find /proc/device-tree - name disk@\* | grep firewire ) 删除/proc/device-tree然后输入OpenFirmware[1]的路径。固件的别名可以在proc/device-tree/aliases中找到,对于单个Firewire硬盘可以是简单的路径地址,就像我们的例子一样。