4/14/2023 0 Comments How to install slax on hdd![]() LABEL=/backup /disk1 ext3 defaults 1 2 Summing upĪnd that is how your hard disk format is done under Linux. You can use label name instead of partition name to mount disk using /etc/fstab: For example, if you want to label the new partition /backup, enter You can label the partition using e2label. Open the /etc/fstab file, enter:Īppend as follows for ext3 file system: /dev/sdb1 /disk1 ext3 defaults 1 2 Save and close the file when using vim/vi text editor by pressing the Esc+ :x+ Enter keys. ![]() Make sure our partition automatically mounted at boot time. # grep -w '^/dev/sdb1' /proc/mounts Step#4 : Update /etc/fstab file One can use the grep command or egrep command to verify mounted partitions on Linux. Verify using the df command or mount command: ![]() # mkfs.xfs /dev/sdb1 Step#3 : Mount the new disk using mount commandįirst create a mount point /disk1 using the mkdir command and use mount command to mount /dev/sdb1, enter: ![]() To format Linux partitions using ext2fs on the new disk (ext3):įor ext4 file system which is now recommended, run: Step#2 : Format the new disk using mkfs command t– change a partition type (for example, choose RAID or ext3 or ext4 or fat32).w– write the new partition table and exit.The nixCraft or author is not responsible for data loss. WARNING! These examples may crash your computer if executed when the wrong disk name is used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |