DM8168 SD启动卡的手动制作
1、用fdisk 命令查看sd卡是否接入,接入的位置在什么地方root@xubbwd-VirtualBox:~# fdisk -lDisk /dev/sda: 429.5 GB, 429496729600 bytes255 heads, 63 sectors/track, 52216 cylinders, total 838860800 sectorsUnits = 扇区 of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0002b500 设备 启动 起点 终点 块数 Id 系统/dev/sda1 * 2048 836763647 418380800 83 Linux/dev/sda2 836765694 838858751 1046529 5 扩展/dev/sda5 836765696 838858751 1046528 82 Linux 交换 / SolarisDisk /dev/sdb: 1948 MB, 1948254208 bytes60 heads, 62 sectors/track, 1022 cylinders, total 3805184 sectorsUnits = 扇区 of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000 设备 启动 起点 终点 块数 Id 系统
root@xubbwd-VirtualBox:~# df -lh文件系统 容量 已用 可用 已用% 挂载点/dev/sda1 393G 3.0G 370G 1% /udev 492M 4.0K 492M 1% /devtmpfs 201M 780K 200M 1% /runnone 5.0M 0 5.0M 0% /run/locknone 501M 200K 501M 1% /run/shmshare 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 获取帮助): dSelected partition 1命令(输入 m 获取帮助): wqThe 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 atthe 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 获取帮助): nPartition type: p primary (0 primary, 0 extended, 4 free) e extendedSelect (default p): p分区号 (1-4,默认为 1): 1起始 sector (2048-3805183,默认为 2048): 2048Last sector, +扇区 or +size{K,M,G} (2048-3805183,默认为 3805183): 200000命令(输入 m 获取帮助): nPartition type: p primary (1 primary, 0 extended, 3 free) e extendedSelect (default p): p分区号 (1-4,默认为 2): 2起始 sector (200001-3805183,默认为 200001): 200001Last sector, +扇区 or +size{K,M,G} (200001-3805183,默认为 3805183):将使用默认值 3805183命令(输入 m 获取帮助): wqThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.root@xubbwd-VirtualBox:~# fdisk -lDisk /dev/sda: 429.5 GB, 429496729600 bytes255 heads, 63 sectors/track, 52216 cylinders, total 838860800 sectorsUnits = 扇区 of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0002b500 设备 启动 起点 终点 块数 Id 系统/dev/sda1 * 2048 836763647 418380800 83 Linux/dev/sda2 836765694 838858751 1046529 5 扩展/dev/sda5 836765696 838858751 1046528 82 Linux 交换 / SolarisDisk /dev/sdb: 1948 MB, 1948254208 bytes60 heads, 62 sectors/track, 1022 cylinders, total 3805184 sectorsUnits = 扇区 of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk 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 获取帮助): wqThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.
一周热门 更多>