首页 > 代码库 > fdisk,mount.label

fdisk,mount.label

########fdisk

ll /dev/sda*

df -TH

fdisk -cul

fdisk -cu ~~n~~p~~+1G~~

partx -a /dev/sda

########EXT4

mkfs.ext4 /dev/sda6

mke2fs -b 4096 /dev/sda6

tune2fs -l /dev/sda6

########mount,Label

blkid

/etc/fstab

e2lab /dev/sda6 TEST6

mount LABEL=TEST6 /mnt

tune2fs -l /dev/sda6 |grep -i "mount count"

mount -o remount,ro /dev/sda6 /mnt

fuser -v /mnt

umount /mnt

 

fdisk,mount.label