パーティションを見る。
USB で接続
USB でハックキット化した LS-XHL に接続する。
brick:~# tail -f /var/log/messages
:
:
Sep 14 22:32:10 brick kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Sep 14 22:32:10 brick kernel: usb 1-1: configuration #1 chosen from 1 choice
Sep 14 22:32:10 brick kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Sep 14 22:32:15 brick kernel: scsi 2:0:0:0: Direct-Access ViPowER VP-89118(SD1) 2.10 PQ: 0 ANSI: 4
Sep 14 22:32:15 brick kernel: sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
Sep 14 22:32:15 brick kernel: sd 2:0:0:0: [sdb] Write Protect is off
Sep 14 22:32:15 brick kernel: sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
Sep 14 22:32:15 brick kernel: sd 2:0:0:0: [sdb] Write Protect is off
Sep 14 22:32:15 brick kernel: sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
Sep 14 22:32:15 brick kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
Sep 14 22:32:15 brick kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
fdisk で見る
brick:~# fdisk -l /dev/sdb
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 60802 488386583+ ee EFI GPT
brick:~#
parted のインストール
parted で見ようとしたら、なかったので、インストールする。
brick:~# parted
-su: parted: command not found
brick:~# apt-get install parted
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libparted1.8-10
Suggested packages:
libparted1.8-dev libparted1.8-i18n parted-doc
The following NEW packages will be installed:
libparted1.8-10 parted
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 270kB of archives.
After this operation, 623kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libparted1.8-10 1.8.8.git.2008年03月24日-11.1 [202kB]
Get:2 http://ftp.jp.debian.org lenny/main parted 1.8.8.git.2008年03月24日-11.1 [67.6kB]
Fetched 270kB in 3s (85.5kB/s)
Selecting previously deselected package libparted1.8-10.
(Reading database ... 10020 files and directories currently installed.)
Unpacking libparted1.8-10 (from .../libparted1.8-10_1.8.8.git.2008年03月24日-11.1_armel.deb) ...
Selecting previously deselected package parted.
Unpacking parted (from .../parted_1.8.8.git.2008年03月24日-11.1_armel.deb) ...
Processing triggers for man-db ...
Setting up libparted1.8-10 (1.8.8.git.2008年03月24日-11.1) ...
Setting up parted (1.8.8.git.2008年03月24日-11.1) ...
brick:~#
parted で見る
brick:~# parted /dev/sdb
GNU Parted 1.8.8
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ViPowER VP-89118(SD1) (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 1024MB 1024MB ext3 primary
2 1024MB 6144MB 5120MB xfs primary
3 6144MB 6144MB 512B primary
4 6144MB 6144MB 512B primary
5 6144MB 7168MB 1024MB linux-swap primary
6 7168MB 492GB 485GB xfs primary
(parted) quit
brick:~#
LS-XHL と同じ
マウント
brick:~# mkdir /tmp/root
brick:~# mount /dev/sdb2 /tmp/root
brick:~# ls /tmp/root
bin debugtool etc initrd lighttpd.webui modules root share tmp var
boot dev home lib mnt proc sbin sys usr www
brick:~# mount /dev/sdb1 /tmp/root/boot
brick:~# ls !$
ls /tmp/root/boot
hddrootfs.buffalo.updated.done lost+found uImage.buffalo
initrd.buffalo u-boot.buffalo
brick:~# mount /dev/sdb6 /tmp/root/mnt/disk1/
brick:~# ls !$
ls /tmp/root/mnt/disk1/
share spool
brick:~#
LS-XHL と同じ。まあ、ファームが共通だから当たり前
Copyright (C) 2003-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp
山下康成@京都府向日市