ude:~# tail -f /var/log/messages : : Oct 5 07:29:46 ude kernel: usb 2-1: new high speed USB device using ehci_platform and address 2 Oct 5 07:29:46 ude kernel: usb 2-1: configuration #1 chosen from 1 choice Oct 5 07:29:46 ude kernel: scsi2 : SCSI emulation for USB Mass Storage devices Oct 5 07:29:51 ude kernel: Vendor: WDC WD32 Model: WD-WCAMR1683855 Rev: 5J08 Oct 5 07:29:51 ude kernel: Type: Direct-Access ANSI SCSI revision: 02 Oct 5 07:29:51 ude kernel: SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) Oct 5 07:29:51 ude kernel: sdb: Write Protect is off Oct 5 07:29:51 ude kernel: SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) Oct 5 07:29:51 ude kernel: sdb: Write Protect is off Oct 5 07:29:51 ude kernel: sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > Oct 5 07:29:51 ude kernel: sd 2:0:0:0: Attached scsi disk sdb Oct 5 07:29:51 ude kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 ude:~#時計狂いっ放し。
ude:~# fdisk /dev/sdb The number of cylinders for this disk is set to 38913. 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: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 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 38913 306560362+ 5 Extended /dev/sdb5 749 873 1004031 83 Linux /dev/sdb6 874 38913 305556268+ 83 Linux Command (m for help):なんで、sdb5 が Linux なん?
Command (m for help): t Partition number (1-6): 5 Hex code (type L to list codes): 82 Changed system type of partition 5 to 82 (Linux swap / Solaris) Command (m for help): p Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 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 38913 306560362+ 5 Extended /dev/sdb5 749 873 1004031 82 Linux swap / Solaris /dev/sdb6 874 38913 305556268+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. ude:~#
ude:~# mkfs.ext3 -j /dev/sdb1 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 125696 inodes, 251007 blocks 12550 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=260046848 8 block groups 32768 blocks per group, 32768 fragments per group 15712 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 25 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. ude:~# mkfs.ext3 -j /dev/sdb2 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 626496 inodes, 1251061 blocks 62553 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1283457024 39 block groups 32768 blocks per group, 32768 fragments per group 16064 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 28 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. ude:~# mkfs.ext3 -j /dev/sdb6 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 38207488 inodes, 76389067 blocks 3819453 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 2332 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 28 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. ude:~# mkfs.xfs -f /dev/sdb2 meta-data=/dev/sdb2 isize=256 agcount=8, agsize=156382 blks = sectsz=512 attr=0 data = bsize=4096 blocks=1251056, 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 ude:~# mkfs.xfs -f /dev/sdb6 meta-data=/dev/sdb6 isize=256 agcount=16, agsize=4774316 blks = sectsz=512 attr=0 data = bsize=4096 blocks=76389056, 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 ude:~#でかい HDD はフォーマットにまで時間がかかって無駄。
sdb5 は swap に。
ude:~# mkswap /dev/sdb5 Setting up swapspace version 1, size = 1028120 kB no label, UUID=6b5ad802-dff5-46cd-9fe5-6b65c9f66d59 ude:~#
: : Marvell Serial ATA Adapter Integrated Sata device found Device 0: OK Model: WDC WD3200SD-01KNB0 Firm: 08.05J08 Ser#: WD-WCAMR1683855 Type: Hard Disk Supports 48-bit addressing Capacity: 305245.3 MB = 298.0 GB (625142448 x 512) Device 1: OK Model: Maxtor 6Y160M0 Firm: YAR511W0 Ser#: Y48DJ6QE Type: Hard Disk Supports 48-bit addressing Capacity: 156334.5 MB = 152.6 GB (320173056 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/uImage.buffalo 0 bytes read Image Name: Created: 1971-01-24 8:57:36 UTC Image Type: Invalid CPU Unknown OS Multi-File Image (uncompressed) Data Size: 50332672 Bytes = 48 MB Load Address: 04000400 Entry Point: 05000400 Contents: Image 0: 268436480 Bytes = 256 MB Image 1: 285213696 Bytes = 272 MB Image 2: 301990912 Bytes = 288 MB Image 3: 318768128 Bytes = 304 MB Image 4: 335545344 Bytes = 320 MB Image 5: 352322560 Bytes = 336 MB Image 6: 369099776 Bytes = 352 MB Image 7: 385876992 Bytes = 368 MB Image 8: 402654208 Bytes = 384 MB Image 9: 419431424 Bytes = 400 MB Image 10: 436208640 Bytes = 416 MB Image 11: 452985856 Bytes = 432 MB Image 12: 469763072 Bytes = 448 MB Image 13: 486540288 Bytes = 464 MB Image 14: 503317504 Bytes = 480 MB Image 15: 520094720 Bytes = 496 MB Image 16: 536871936 Bytes = 512 MB Image 17: 553649152 Bytes = 528 MB Image 18: 570426368 Bytes = 544 MB Image 19: 587203584 Bytes = 560 MB Image 20: 603980800 Bytes = 576 MB Image 21: 620758016 Bytes = 592 MB Image 22: 637535232 Bytes = 608 MB Image 23: 654312448 Bytes = 624 MB Image 24: 671089664 Bytes = 640 MB Image 25: 687866880 Bytes = 656 MB Image 26: 704644096 Bytes = 672 MB Image 27: 721421312 Bytes = 688 MB Image 28: 738198528 Bytes = 704 MB Image 29: 754975744 Bytes = 720 MB Image 30: 771752960 Bytes = 736 MB Image 31: 788530176 Bytes = 752 MB Image 32: 805307392 Bytes = 768 MB Image 33: 822084608 Bytes = 784 MB Image 34: 838861824 Bytes = 800 MB Image 35: 855639040 Bytes = 816 MB : :たちあがってこなひ。。。。
sda1 があっては駄目なのか????
|
← debian 化(21)死んだ ST3250823AS |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ debian 化(23)セルフで sda の作り直し |