LS-GL で GPT な HDD を使う

Debian LS-GL

LS-CHL の標準ファームの HDD を LS-GL につないでみた。

fdisk でパーティションを見る

ude:~# fdisk /dev/sdb
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
The number of cylinders for this disk is set to 60801.
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: 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
Command (m for help): q
ude:~#
GPT

GPT って、カーネルがサポートしてないと使えない?
良くわかってないので、勉強必要。

pated のインストール

parted で GPT の様子を見ようとしたら、
ude:~# parted
-su: parted: command not found
ude:~#
だったので、parted をインストールする
ude:~# apt-get install parted
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libnfsidmap2 libevent1 librpcsecgss3 libgssglue1 nfs-common
Use 'apt-get autoremove' to remove them.
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 26 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 0s (359kB/s)
Selecting previously deselected package libparted1.8-10.
(Reading database ... 10435 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) ...
ude:~# parted /dev/sdb
GNU Parted 1.8.8
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) quit
ude:~#

parted でパーティションを見る

多分駄目
ude:~# parted -s /dev/sdb print
Warning: /dev/sdb contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table?
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
ude:~#
何か、警告が出ているが、、、、見えてはいる。

パーティションの削除

別の LinkStation に使うため、パーティションを削除する。
ude:~# parted -s /dev/sdb rm 6
Error: /dev/sdb: unrecognised disk label
ude:~#
あれ? print はできたのに。
もう一回 print。
ude:~# parted -s /dev/sdb print
Error: /dev/sdb: unrecognised disk label
ude:~#
できなくなった。

幻だったのか???

LS-XHL で削除

結局は、LS-XHL + ハックキットに HDD をつないで削除。
brick:~# parted -s /dev/sdb 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
brick:~# parted -s /dev/sdb rm 6
brick:~# ^6^5
parted -s /dev/sdb rm 5
brick:~# ^5^4
parted -s /dev/sdb rm 4
brick:~# ^4^3
parted -s /dev/sdb rm 3
brick:~# ^3^2
parted -s /dev/sdb rm 2
brick:~# ^2^1
parted -s /dev/sdb rm 1
brick:~# !?print
parted -s /dev/sdb 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
brick:~# fdisk /dev/sdb
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
The number of cylinders for this disk is set to 60801.
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: 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
Command (m for help): d
Selected partition 1
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
brick:~# parted -s /dev/sdb mklabel msdos
brick:~# !fdisk
fdisk /dev/sdb
The number of cylinders for this disk is set to 60801.
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: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d7d73
 Device Boot Start End Blocks Id System
Command (m for help): q
brick:~#




DDOS
ハックの記録
LinkStation/玄箱 をハックしよう
作り直したハックキットの確認(4)LS-WSGL

Copyright (C) 2003-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市

AltStyle によって変換されたページ (->オリジナル) /