slam:~# fdisk -l /dev/sda Disk /dev/sda: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 1 25 200781 83 Linux /dev/sda2 26 524 4008217+ 83 Linux /dev/sda3 525 556 257040 82 Linux swap / Solaris /dev/sda4 557 30401 239729962+ 83 Linux slam:~#本番用 HDD にも sda4 を除いて同じパーティションを切る。
本番用 1TB HDD を 玄箱/PRO(kup) のフロントパネル内 SATA に接続して、パーティションを切る。
kup:~# fdisk /dev/sdb The number of cylinders for this disk is set to 121601. 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/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 125 1004031 83 Linux /dev/sdb2 126 748 5004247+ 83 Linux /dev/sdb4 749 121601 970751722+ 5 Extended /dev/sdb5 749 873 1004031 82 Linux swap / Solaris /dev/sdb6 874 121478 968759631 83 Linux Command (m for help):LS-Q1.0TL/1D の標準ファームのパーティションが切られているので、消す。
Command (m for help): d Partition number (1-6): 4 Command (m for help): d Partition number (1-4): 2 Command (m for help): d Selected partition 1 Command (m for help):順にパーティションを切っていく。
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-121601, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-121601, default 121601): 25 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (26-121601, default 26): Using default value 26 Last cylinder or +size or +sizeM or +sizeK (26-121601, default 121601): 524 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (525-121601, default 525): Using default value 525 Last cylinder or +size or +sizeM or +sizeK (525-121601, default 121601): 556 Command (m for help): n Command action e extended p primary partition (1-4) p Selected partition 4 First cylinder (557-121601, default 557): Using default value 557 Last cylinder or +size or +sizeM or +sizeK (557-121601, default 121601): Using default value 121601 Command (m for help): t Partition number (1-4): 3 Hex code (type L to list codes): 82 Changed system type of partition 3 to 82 (Linux swap / Solaris) Command (m for help): p Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 25 200781 83 Linux /dev/sdb2 26 524 4008217+ 83 Linux /dev/sdb3 525 556 257040 82 Linux swap / Solaris /dev/sdb4 557 121601 972293962+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. kup:~#
kup:~# mkfs -j /dev/sdb1 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 50200 inodes, 200780 blocks 10039 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=67371008 25 block groups 8192 blocks per group, 8192 fragments per group 2008 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 26 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. kup:~# mkfs.xfs /dev/sdb2 meta-data=/dev/sdb2 isize=256 agcount=8, agsize=125256 blks = sectsz=512 attr=0 data = bsize=4096 blocks=1002048, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=2560, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 kup:~# mkswap /dev/sdb3 Setting up swapspace version 1, size = 263204 kB no label, UUID=a6679c36-f6af-47f4-8028-8f3c7569a0f6 kup:~# mkfs.xfs /dev/sdb4 meta-data=/dev/sdb4 isize=256 agcount=32, agsize=7596046 blks = sectsz=512 attr=0 data = bsize=4096 blocks=243073472, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=32768, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 kup:~#
Jun 29 21:05:48 kup kernel: usb 2-1: new high speed USB device using ehci_platform and address 2 Jun 29 21:05:48 kup kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jun 29 21:05:53 kup kernel: Vendor: SAMSUNG Model: JDPPB08546 Rev: 0-05 Jun 29 21:05:53 kup kernel: Type: Direct-Access ANSI SCSI revision: 02 Jun 29 21:05:53 kup kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) Jun 29 21:05:53 kup kernel: SCSI device sdc: 488397168 512-byte hdwr sectors (250059 MB) Jun 29 21:05:53 kup kernel: sdc: sdc1 sdc2 sdc3 sdc4 Jun 29 21:05:53 kup kernel: Attached scsi disk sdc at scsi2, channel 0, id 0, lun 0 Jun 29 21:05:53 kup kernel: Attached scsi generic sg2 at scsi2, channel 0, id 0, lun 0, type 0
kup:~# mkdir /tmp/sdb kup:~# mount /dev/sdb2 /tmp/sdb/ kup:~# mkdir /tmp/sdb/boot kup:~# mount /dev/sdb1 /tmp/sdb/boot kup:~# mkdir /tmp/sdb/mnt kup:~# mount /dev/sdb4 /tmp/sdb/mnt kup:~# kup:~# kup:~# mkdir /tmp/sdc kup:~# mount /dev/sdc2 /tmp/sdc/ kup:~# mount /dev/sdc1 /tmp/sdc/boot kup:~# mount /dev/sdc4 /tmp/sdc/mnt/ kup:~# kup:~#
kup:~# cd /tmp/sdc/ kup:/tmp/sdc# ls bin dev home lib mnt proc sbin srv tmp var boot etc initrd media opt root selinux sys usr kup:/tmp/sdc# tar cf - . |(cd /tmp/sdb; tar xvf -) ./ ./var/ ./var/lib/ ./var/lib/apt/ ./var/lib/apt/lists/ ./var/lib/apt/lists/partial/ : : ./sys/ ./selinux/ ./srv/ ./opt/ ./media/ ./initrd/ kup:/tmp/sdc#
Debian GNU/Linux 5.0 slam login: yasunari Password: Last login: Mon Jun 29 20:54:07 JST 2009 from uxl.yamasita.jp on pts/0 Linux slam 2.6.16.16-arm1 #69 Wed Oct 1 10:59:37 JST 2008 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. yasunari@slam:~$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 3997952 296136 3701816 8% / tmpfs 63052 0 63052 0% /lib/init/rw tmpfs 63052 0 63052 0% /dev/shm /dev/root.old 13303 12026 1277 91% /initrd /dev/sda1 194442 12278 172125 7% /boot /dev/sda4 972162816 14116900 958045916 2% /mnt yasunari@slam:~$引っ越し完了。
|
← Re: 第三世代 LinkStation ハックキットでハック de 録!!(10) ビデオの共有 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-QLシリーズファームウェア アップデータ Ver.1.11 |