戻る

usb の メモリ の 見え方

sda1 sda ???

購入した 生のものの場合、 まあ vfat に なっていると考えられます。 ”/var/log/syslog”に 表示されるのは

# cat syslog 
Nov 19 21:29:22 sv kernel: usb.c: USB device 2 (vend/prod 0x718/0x677) is not claimed by any active driver.
Nov 19 21:29:23 sv kernel:   Vendor: TDKMedia  Model: Transit           Rev: PMAP
Nov 19 21:29:23 sv kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 19 21:29:23 sv kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Nov 19 21:29:24 sv kernel: SCSI device sda: 15622144 512-byte hdwr sectors (7999 MB)
Nov 19 21:29:24 sv kernel: sda: Write Protect is off
Nov 19 21:29:24 sv kernel:  sda1

御覧の 様に sda1 です。

# mount /dev/sda /mnt/
mount: you must specify the filesystem type
# mount -t vfat  /dev/sda /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       or too many mounted file systems
# mount -t msdos  /dev/sda /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       or too many mounted file systems

mount は sda の場合 何故か 出来ません(当り前かもしれません)

fdisk を 試みましょう。/dev/sda の場合です。

# fdisk /dev/sda

Command (m for help): p

Disk /dev/sda: 247 heads, 62 sectors, 1020 cylinders
Units = cylinders of 15314 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1      1021   7807040    c  Win95 FAT32 (LBA)
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(1, 0, 1) logical=(0, 130, 5)
Partition 1 has different physical/logical endings:
     phys=(912, 63, 0) logical=(1020, 30, 4)
Partition 1 does not end on cylinder boundary:
     phys=(912, 63, 0) should be (912, 246, 62)

Command (m for help): q

/dev/sda1 という事になっていま す。 ちなみに sda1 で mount ば 問題は 無いという事です。

# mount /dev/sda1 /mnt/
# df | sed 2,3d
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1              7802896      7872   7795024   1% /mnt
# umount /mnt/

まあ そういう事だ と考えておきましょう。

fdisk を 試みましょう。今回は /dev/sda1 の場合です。

# fdisk /dev/sda1

Command (m for help): p

Disk /dev/sda1: 247 heads, 62 sectors, 1019 cylinders
Units = cylinders of 15314 * 512 bytes

     Device Boot    Start       End    Blocks   Id  System
/dev/sda1p1   ?     50813    125353 570754815+  72  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(357, 116, 40) logical=(50812, 15, 11)
Partition 1 has different physical/logical endings:
     phys=(357, 32, 45) logical=(125352, 80, 51)
Partition 1 does not end on cylinder boundary:
     phys=(357, 32, 45) should be (357, 246, 62)
/dev/sda1p2   ?     11016    137438 968014120   65  Novell Netware 386
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(288, 115, 43) logical=(11015, 93, 47)
Partition 2 has different physical/logical endings:
     phys=(367, 114, 50) logical=(137437, 121, 42)
Partition 2 does not end on cylinder boundary:
     phys=(367, 114, 50) should be (367, 246, 62)
/dev/sda1p3   ?    122103    248525 968014096   79  Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(366, 32, 33) logical=(122102, 184, 30)
Partition 3 has different physical/logical endings:
     phys=(357, 32, 43) logical=(248524, 211, 39)
Partition 3 does not end on cylinder boundary:
     phys=(357, 32, 43) should be (357, 246, 62)
/dev/sda1p4   ?    188435    188438     27749+   d  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(372, 97, 50) logical=(188434, 46, 25)
Partition 4 has different physical/logical endings:
     phys=(0, 10, 0) logical=(188437, 200, 33)
Partition 4 does not end on cylinder boundary:
     phys=(0, 10, 0) should be (0, 246, 62)

Partition table entries are not in disk order

Command (m for help): q

mac-fdisk の あとのもの

mac-fdisk した後のものを見てみましょう。

sda1 sda ???

さて mac-fdisk で パーテションを作成した後のものの場合

# cat syslog 
Nov 19 21:38:00 sv kernel: usb.c: USB device 3 (vend/prod 0x718/0x672) is not claimed by any active driver.
Nov 19 21:38:00 sv kernel:   Vendor: TDKMedia  Model: Transit           Rev: PMAP
Nov 19 21:38:00 sv kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 19 21:38:00 sv kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Nov 19 21:38:01 sv kernel: SCSI device sda: 15622144 512-byte hdwr sectors (7999 MB)
Nov 19 21:38:01 sv kernel: sda: Write Protect is off
Nov 19 21:38:01 sv kernel:  unknown partition table

今回は sda1 というのは 明白に 出てきません。”unknown partition table”

# fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


Command (m for help): p

Disk /dev/sda: 247 heads, 62 sectors, 1020 cylinders
Units = cylinders of 15314 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System

Command (m for help): q

まあ こういう事のようです。

# fdisk /dev/sda1

Unable to open /dev/sda1

fdisk は /dev/sda に 対して 行うのでしょう

にゃんたろう 拝!

2011年12月 3日 (土) 21:06:16 JST 作成


戻る

Copyright © 2006.-2012. nyantarou All Rights Reserved.