Umount qilishni ikki usuli bor
>sudo umount /dev/sdd1
>sudo umount /mnt/disk2
Show qiladigan komandalar turlari
1.>df -h (mount qilingan disklar)
2.>mount (mount haqida to’liqroq ma’lumot)
3.>lsblk (disk va razdellarni ko’rsatish)
4.>blkid (diskni ID va formatini aniqlash)
Disk partionlarini o’chiramiz.
1.>fdisk /dev/sdd
D
W
Parted orqali qo’shib ko’ramiz.
1.>parted /dev/sdd (diskga kirish)
Help (kerakli komandalarni chiqarib beradi)
Print
Mklabel msdos
Print
Quit (qilgan ishimizni saqlab chiqib ketish)
Help mkpart
Mkpart primary ext4
1
400M
Print
2-partitionni yaratamiz
Mkpart primary ntfs
401M
100%
P
Q
>sudo mkfs.ext4 /dev/sdd1
>sudo mkfs.ntfs /dev/sdd2
>parted /dev/sdd print
>sudo mount /dev/sdd1 /mnt/disk1
>sudo mount /dev/sdd2 /mnt/disk2
>df -h (o’zgartirishlarni /etc/ga yozib qo’yish kerak.Chunki rebootdan keyin o’chin ketadi)
Doimiyga mount qilamiz.
1.>sudo vim /etc/fstab (file system table)
:r!blkid (kerakli ID ni olamiz)
sfdasdfasdfasdfasfdasdfasdfas
:wq
>reboot now
>df -h
>sudo mount -a (real timeda ishlaydi faqat)
>df -h
>sudo mount -a
Do'stlaringiz bilan baham: |