DM8168 SD启动卡的手动制作
1、用fdisk 命令查看sd卡是否接入,接入的位置在什么地方 root@xubbwd-VirtualBox:~# fdisk -l Disk /dev/sda: 429.5 GB, 429496729600 bytes 255 heads, 63 sectors/track, 52216 cylinders, total 838860800 sectors Units = 扇区 of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0002b500 设备 启动 起点 终点 块数 Id 系统 /dev/sda1 * 2048 836763647 418380800 83 Linux /dev/sda2 836765694 838858751 1046529 5 扩展 /dev/sda5 836765696 838858751 1046528 82 Linux 交换 / Solaris Disk /dev/sdb: 1948 MB, 1948254208 bytes 60 heads, 62 sectors/track, 1022 cylinders, total 3805184 sectors Units = 扇区 of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 设备 启动 起点 终点 块数 Id 系统
root@xubbwd-VirtualBox:~# df -lh 文件系统 容量 已用 可用 已用% 挂载点 /dev/sda1 393G 3.0G 370G 1% / udev 492M 4.0K 492M 1% /dev tmpfs 201M 780K 200M 1% /run none 5.0M 0 5.0M 0% /run/lock none 501M 200K 501M 1% /run/shm share 405G 53G 352G 14% /media/sf_share /dev/sr0 62M 62M 0 100% /media/VBOXADDITIONS_4.3.10_93012 /dev/sdb1 1.9G 17M 1.8G 1% /media/6C42-0744
2、删除分区 root@xubbwd-VirtualBox:~# fdisk /dev/sdb 命令(输入 m 获取帮助): d Selected partition 1 命令(输入 m 获取帮助): wq The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: 设备或资源忙. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks.
3、新建分区 root@xubbwd-VirtualBox:~# fdisk /dev/sdb 命令(输入 m 获取帮助): m 命令操作 a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) 命令(输入 m 获取帮助): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p 分区号 (1-4,默认为 1): 1 起始 sector (2048-3805183,默认为 2048): 2048 Last sector, +扇区 or +size{K,M,G} (2048-3805183,默认为 3805183): 200000 命令(输入 m 获取帮助): n Partition type: p primary (1 primary, 0 extended, 3 free) e extended Select (default p): p 分区号 (1-4,默认为 2): 2 起始 sector (200001-3805183,默认为 200001): 200001 Last sector, +扇区 or +size{K,M,G} (200001-3805183,默认为 3805183): 将使用默认值 3805183 命令(输入 m 获取帮助): wq The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. root@xubbwd-VirtualBox:~# fdisk -l Disk /dev/sda: 429.5 GB, 429496729600 bytes 255 heads, 63 sectors/track, 52216 cylinders, total 838860800 sectors Units = 扇区 of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0002b500 设备 启动 起点 终点 块数 Id 系统 /dev/sda1 * 2048 836763647 418380800 83 Linux /dev/sda2 836765694 838858751 1046529 5 扩展 /dev/sda5 836765696 838858751 1046528 82 Linux 交换 / Solaris Disk /dev/sdb: 1948 MB, 1948254208 bytes 60 heads, 62 sectors/track, 1022 cylinders, total 3805184 sectors Units = 扇区 of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 设备 启动 起点 终点 块数 Id 系统 /dev/sdb1 2048 200000 98976+ 83 Linux /dev/sdb2 200001 3805183 1802591+ 83 Linux
4、标准sdb1为启动盘 root@xubbwd-VirtualBox:/home# fdisk /dev/sdc 命令(输入 m 获取帮助): m 命令操作 a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) 命令(输入 m 获取帮助): a 分区号 (1-4): 1 命令(输入 m 获取帮助): wq The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
|