LoginSignup
0
0

More than 5 years have passed since last update.

openbsd で より小さなハードディスクへの クローン

Last updated at Posted at 2018-05-04

OpenBSD をハードディスクに入れた後で, あれれガバガバに空いてるじゃん:joy: これだったら もっと 小さな=安いハードディスク にいれておけばよかった:thermometer_face: というようなことがよくあると思います:rainbow: こんな時のために使います


最後に upgradeをして boot loader をいれるので、カーネルは 変わってしまう可能性があります:cop_tone2:ここが growfsとは違うところです。


従って openbsdのバージョンが上がる時にスペシャルに有用です。 なお 危ないですので:helmet_with_cross:リスク:helmet_with_cross:は 自己責任でお願いします。 これ解る人には分かるが 解らない人には全く判らない代物のです。



1)まず big HDDで
1.jpg
しておきます。

2)それから small HDD と big HDD とをつけて install63.fs をddした USB memory で立ち上げます。
2.jpg

3)
3.jpg

4)small HDDを フォーマットに向かって走ります。
4.jpg

5)ご存知の !で脇道にはいって exit で戻ってくる方法で sd0 sd1 がそれぞれ何に当たるかを割り出します
5.jpg

6)available disk として small HDD の sd0 を指定しました。
6.jpg

7)パーテションはaだけで qのあと smallつまりsd0のフォーマットが始まります
7.jpg

8)フォーマットが終わった時点で ctrl+cで中止しました。
つまり small HDDを formatしただけです
8.jpg

9)big HDDを認識させるための目的で このHDD sd1に対して upgradeをかけます。
9.jpg

10)bigなsd1は 認識させるだけなのです。 
10.jpg

11)upgradeをしたため bigなsd1のみは すでにマウントされてますねん
一方 small な sd0はマウントされてはりません
11.jpg

12)クローンです
12.jpg

13)つぎに smallなsd0にたいして upgradeをかけるのですが この前に sd0aもsd1aも umountしとかないとupgradeができません.
また upgrade前に smallなsd0のfstabを /dev/sd0a な duidを使わない方式に戻しておきます。
13.jpg

14.jpg

15.jpg

16.jpg

17.jpg

18.jpg


19)small HDDのみをつけて bootします。
19.jpg

20.jpg

 この古いバージョンは

http://openbsd-akita.blogspot.jp/2018/04/cloning-to-smaller-hard-disk.html
です。
これだと 2回 USBメモリでの起動がいります。
この方法だと 1貝ですみます。

http://duarbo.air-nifty.com/songs/2008/12/post-6665.html の英訳

the main thema of "Shimabara (regional) lullaby" is is actually 'KARA_YUKI' .

During the Meiji era, many daughters were put out for sale from poor farmers on Shimabara Peninsula and Amakusa Islands.
It is said that the cumulative total of 200,000 people is 300,000 people.
They gathered secretly at the mouth of Kamonotsu at the southern tip of the Shimabara Peninsula in the late night where they were packed with coal at the ship's bottom of the ocean ship and were sold to the halls of various places in China and Southeast Asia (KARA means china and YUKI means go ).

Their fate was harsh.
There were many cases that seafarers comforted in the ocean ship, and many people lost their lives due to severe sexual service and diseases transferred from men in the hall.
These women were called KARAYUKI .

please hear the next "Shimabara (regional) lullaby" . it contains something essential for human!

i think the problem is poverth , no maney no food !

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0