2004年9月7日火曜日

初代OBSのディスク挿換

まぁ、手順メモです。

【概要】
・OBSに入れていた40GBのディスクをUSB外付け箱用に取り出して、
 ノートPC(hobbs)のバックアップにする。
・代わりにUSB外付け箱に入っていた6.5GBを初代OBSへ。

【OBS状況】
hcube:/home/shibata# fdisk /dev/sda
The number of cylinders for this disk is set to 4864.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4012 32226358+ 83 Linux
/dev/sda2 4013 4226 1718955 82 Linux swap
/dev/sda3 4227 4864 5124735 de Dell Utility
Command (m for help): q
【40GBHDDかの吸い出し】
 (1)Linuxパーティション
503 mount -t ext2 /dev/sda1 /mnt/
504 cd /mnt
505 ls
506 mkdir /home/OBS-HDD.20040823
507 ls
508 cp -a * /home/OBS-HDD.20040823/
 (2)リカバリ用パーティション
 hcube:/# dd if=/dev/sda3 of=/home/OBS-HDD.20040823/dev.sda3.dd
 10249470+0 records in
 10249470+0 records out
 5247728640 bytes transferred in 352.366105 seconds (14892830 bytes/sec)
 hcube:/# sync
【6.5GBHDDへの書き込み】
523 cd /home/OBS-HDD.20040823/
524 ls
525 mkswap /dev/sda2
526 sync
527 mount -t ext2 /dev/sda1 /mnt/
528 ls /mnt
529 ls
530 ls proc/
531 cd proc/
532 rm -rf *
533 ls
534 cd ..
535 ls
536 ls lost+found/
537 rm -rf lost+found/
538 ls
539 mv dev.sda3.dd ../OBS.dev.sda3.dd
540 ls
541 cp -a * /mnt/
542 df
543 sync
【ディスク入れ替えと再立ち上げ】
obu:/home/shibata# dmesg |more
Linux version 2.4.13 (root@obu.uriuri.com) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 Sun May 5 10:24:09 JST 2002
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,9600 console=ttyS1,115200 root=/dev/hda1 ro
Decrementer Frequency = 184320000/60
Calibrating delay loop... 48.94 BogoMIPS
Memory: 14576k available (1092k kernel code, 388k data, 44k init, 0k highmem)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
RTC Backup utility
LED driver version 1.0.0
Push switch driver v0.01
Starting kswapd
CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
ttyS01 at 0x0000 is a SCC
pty: 256 Unix98 ptys configured
block: 64 slots per queue, batch=8
RAMDISK driver initialized: 16 RAM disks of 6144K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
IDE driver for OBS Version 1.2.0
IDE init timeout
hda: HITACHI_DK239A-65, ATA DISK drive
ide0 at 0xc2000010-0xc2000017,0xc200200c on irq 8
hda: 12685680 sectors (6495 MB) w/512KiB Cache, CHS=13424/15/63
Partition check:
hda: [PTBL] [839/240/63] hda1 hda2
eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 10, addr 00:80:6d:47:0a:97
eth0: Phy @ 0x0, type 78Q2120 (0x0300e54b)
eth1: CPM ENET Version 0.2 on SCC2, 00:80:6d:47:0a:98
loop: loaded (max 8 devices)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
TCP: Hash tables configured (established 1024 bind 1024)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 44k init
Unable to handle swap header version 16777216
Unable to handle swap header version 16777216
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.
eth0: status: link up, 100 Mbps Full Duplex, auto-negotiation complete.
Adding Swap: 294832k swap-space (priority -1)
 mkswapし直してswapon -a

韓国館別館

先日、某師匠と言ったお店。


食べた中でのおすすめは、
・上タン:ごま油がさっと塗ってあって美味。
・ねぎ塩タン:ネギたっぷりでタンも厚め。美味。
・上カルビ:んもー、とろりとうまかった。
かな。

骨付きカルビも食えばよかったなぁ。

白ご飯を頼むと、プサンで食べたときと同じく、
金属製の食器ででてきました。

��サービスででてきた青唐辛子の赤唐辛子味噌漬け(?)は
��辛くて食べられず(^^;

ペンギン付きSuica

従来のSuicaだとキオスクで買い物できないとか、
Icocaと相互乗り入れできないとかいう話があったので
本日交換してみた。

Suica発行機に入れて「交換」を選択するだけでさっくり入れ替え完了。
あっというまでした。



これだと、既存ユーザもあまり文句を言わずに切り替えるかな。

同時に切り替えた同僚が「Linuxみたいにペンギンがついてて良いな(^^)」と
言っていたのがまた良い(^^;

台風18号

例によって、Joint Typhoon Warning Center Productsより。

まるでデジャヴという感じの経路。



台風16号より西寄りに経路を取ると、福岡も厳しいかなぁ。



2004年9月5日日曜日

ATKOXのためのrcファイル


woodyに戻しても、バックアップを取っていた/homeをかぶせると、

すぐにはatokxは動かなかった。



必要なDaemonは動いていたので、新規ユーザを追加して調べると、

以下のrcファイル群の設定で動いた。



��その昔、Webで調べた気もするが。



~/.bash_profile


if [ -f "/etc/profile" ]; then
. /etc/profile
fi

export IGNOREEOF="255"
export LANG="ja_JP.eucJP"
export PAGER="lv"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/sbin:/usr/sbin"
export PS1='[\u@\h \W]\\$ '
#export XMODIFIERS="@im=kinput2"
export XMODIFIERS="@im=htt"

#export EDITOR="xemacs"
#export EDITOR="emacs"
#export EDITOR="mule"
#export EDITOR="vi"
#export USERNAME=`id -un`
#export XNLSPATH="/usr/X11R6/lib/X11/locale"

#setterm -blank 0
umask 002
mesg n

if [ -f ".bashrc" ]; then
. .bashrc
fi



~/.xinitrc


#!/bin/sh

xrdb -merge ~/.Xdefaults
#ssh-add ~/.ssh/identity ~/.ssh/id_dsa < /dev/null &
#kinput2 &

atokstart=/usr/lib/im/locale/ja/atokserver/atokx_client
if [ -f "$atokstart" ]; then
. $atokstart
fi

if [ -f ~/.xinitrc-desktop ]; then
. ~/.xinitrc-desktop
else
exec rxvt
fi



でも、なんでバックアップからかぶせたのに動かなかったんだろうか...

sargeで困った

手元のノートPCをwoodyからsargeに(無理矢理)したら、あれもこれも動かなくなった(^^;

��サーバとしてなら動くんだけど、
��Xを使うマシンとしては、KDEだのなんだのが、軒並み動かず。

今やっと復活。
もう少し待ってからにしよう。弱いな(^^;

��ちなみに、家庭内サーバ機は複数sidです。

2004年9月4日土曜日

初代OBS

初代OBSを人に上げたので、私の手元からは無くなりました。

��2台持っていたけど、どちらも嫁入り。

後は某所に置いてあるOBSS(OBS200)とOBS266のみ。