[root@lanner ~]# cat /proc/partitions
major minor #blocks name
8 0 244198584 sda
8 1 512000 sda1
8 2 243685376 sda2
253 0 52428800 dm-0
253 1 16490496 dm-1
253 2 174764032 dm-2
8 48 3913344 sdd
8 49 524288 sdd1
8 50 3388032 sdd2
[root@lanner ~]# fdisk /dev/sdd
WARNING: DOS-compatible mode is deprecated.It's strongly recommended to
switch off the mode (command 'c') andchange display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sdd: 4007 MB, 4007264256 bytes
128 heads, 9 sectors/track, 6794 cylinders
Units = cylinders of 1152 * 512 = 589824bytes
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes / 512bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdd1 * 2 912 524288 83 Linux
/dev/sdd2 913 6794 3388032 83 Linux
Command (m for help): d
Partition number (1-4): 1
Command (m for help): d
Selected partition 2
Command (m for help): p
Disk /dev/sdd: 4007 MB, 4007264256 bytes
128 heads, 9 sectors/track, 6794 cylinders
Units = cylinders of 1152 * 512 = 589824bytes
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes / 512bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
Command (m for help):
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-6794, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G}(1-6794, default 6794): +512M
Command (m for help): p
Disk /dev/sdd: 4007 MB, 4007264256 bytes
128 heads, 9 sectors/track, 6794 cylinders
Units = cylinders of 1152 * 512 = 589824bytes
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes / 512bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdd1 1 911 524731+ 83 Linux
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (912-6794, default 912):
Using default value 912
Last cylinder, +cylinders or +size{K,M,G}(912-6794, default 6794):
Using default value 6794
Command (m for help): p
Disk /dev/sdd: 4007 MB, 4007264256 bytes
128 heads, 9 sectors/track, 6794 cylinders
Units = cylinders of 1152 * 512 = 589824bytes
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes / 512bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdd1 1 911 524731+ 83 Linux
/dev/sdd2 912 6794 3388608 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@lanner ~]# sync
[root@lanner ~]# mkfs.msdos /dev/sdd1
mkfs.msdos 3.0.9 (31 Jan 2010)
[root@lanner ~]# mkfs.ext3 /dev/sdd2
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
212160 inodes, 847152 blocks
42357 blocks (5.00%) reserved for the superuser
First data block=0
Maximum filesystem blocks=868220928
26 block groups
32768 blocks per group, 32768 fragments pergroup
8160 inodes per group
Superblock backups stored on blocks:
32768,98304, 163840, 229376, 294912, 819200
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystemaccounting information:
done
This filesystem will be automaticallychecked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@lanner ~]#
[root@lanner ~]# mount /dev/sdd1 /mnt/
[root@lanner ~]# cp -a /root/tmp/tmp/plx_binary/MB-7582_usb_image/*/mnt/
[root@lanner ~]# cp /root/tmp/tmp/plx_binary/bzImage /mnt/
cp: overwrite `/mnt/bzImage'? y1111DDXDXXEEDEEGSWS
[root@lanner ~]# sync
[root@lanner ~]# umount /mnt/
[root@lanner ~]# mount /dev/sdd2 /mnt/
[root@lanner ~]# cp/root/tmp/tmp/plx_binary/* /mnt/
cp: omitting directory`/root/tmp/tmp/plx_binary/MB-7582_usb_image'
[root@lanner ~]# ls /mnt/
aa bzImage ixgbe.ko lost+found MB-7582_usb_image.zip ntb.ko ntb_netdev.ko plx_control.sh readme.txt
[root@lanner ~]# umount /mnt/