Linux command parted
Posted 良红
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux command parted相关的知识,希望对你有一定的参考价值。
Linux command parted
【Purpose】
Learning linux command parted to manipulate disk partitions
【Eevironment】
Ubuntu 16.04 terminal
【Procdeure】
example:
parted -s $DRIVE mklabel msdos parted -s $DRIVE unit cyl mkpart primary fat32 -- 0 9 parted -s $DRIVE set 1 boot on parted -s $DRIVE unit cyl mkpart primary ext2 -- 9 -2 mkfs.vfat -F 32 -n "boot" ${DRIVE}1 mkfs.ext3 -L "rootfs" ${DRIVE}2 << EOM y EOM sync sync mount -t vfat ${DRIVE}1 tmp_boot mount -t ext3 ${DRIVE}2 tmp_rootfs
and cyl size is 8225kB, we can find from:
[email protected]:~# parted GNU Parted 3.2 Using /dev/mmcblk0 Welcome to GNU Parted! Type ‘help‘ to view a list of commands. (parted) unit cyl print Model: SD SD16G (sd/mmc) Disk /dev/mmcblk0: 1904cyl Sector size (logical/physical): 512B/512B Bios cylinder,head,sector geometry: 1904,255,63. Each cylinder is 8225kB. Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 0cyl 9cyl 8cyl primary fat32 boot, lba 2 9cyl 1902cyl 1893cyl primary ext3
以上是关于Linux command parted的主要内容,如果未能解决你的问题,请参考以下文章
七个办法只有一个有效:200 PORT command successful. Consider using PASV.425 Failed to establish connection.(代码片段
mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段
mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段