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
IP: routing cache hash table of 512 buckets, 4Kbytes
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

投稿者 his : 2004年9月 7日 09:44
このエントリーのトラックバックURL: http://hoop.euqset.org/blog/mt-tb2006.cgi/51186
コメント
コメントする









名前、アドレスを登録しますか?





画像の中に見える文字を入力してください。