home_server:home_server_setup:other_services:disk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
home_server:home_server_setup:other_services:disk [2020-07-04 Sat wk27 12:07] – [Format] baumkphome_server:home_server_setup:other_services:disk [2024-04-25 Thu wk17 11:38] – [Some basic tools] baumkp
Line 1: Line 1:
-{{tag>linux ubuntu parted fstab format partion disk}} +{{tag>linux debian nfs parted fstab format partion disk mount umount fstab unmount}} 
-======Linux Block Device Notes=====+=======Linux Block Device Notes======
  
 =====Linux Disk Partition and Format Notes ===== =====Linux Disk Partition and Format Notes =====
  
 ====Some basic tools==== ====Some basic tools====
-''lsblk''  to list partitions (or list block devices) +  *''ls -l /dev/disk/by-uuid/'' will list the disks with UUIDs 
-''lsblk -f'' or ''blkid''  to list the UUIDs+  *''lsblk''  to list partitions (or list block devices) 
 +  *''lsblk -f'' or ''blkid''  to list the UUIDs 
 +  *''blkid'' will list data blocks
  
 ---- ----
Line 28: Line 30:
 ====Fstab==== ====Fstab====
 ''sudo vim /etc/fstab'' -to edit the boot  disk mount table, remember to make matching mount point directories ''sudo vim /etc/fstab'' -to edit the boot  disk mount table, remember to make matching mount point directories
 +
 +----
 +
 +====mount====
 +
 +===Local Device===
 +**mount -t ext4 /dev/sdb1 /run/media/diska**
 +
 +===NFS Device===
 +
 +To mount a NFS manually: 
 +  *''sudo mount -t nfs -o rw,vers=4 192.168.1.5:/export/Disk1 /mnt/backup1''
 +  *''sudo mount -t nfs -o rw,vers=4 192.168.1.5:/export/Disk2 /mnt/backup2''
 +
 +Where:
 +  * ''-t nfs'' : type nfs
 +  * ''-o'' : options, options are separated by commas with no spaces
 +    * ''rw'' : read / write
 +    * ''vers=4'' : version 4 of nfs
 +  * ''192.168.1.5:/export/Disk1'' is the remote exported NFS mount point
 +  * ''/mnt/backup1'' : is the local mount point, note this directory must exist, ideally empty, any existing contents are usually invisible and otherwise ignored
 +
 +----
 +====unmount====
 +''sudo umount /run/media/diska''
 +
 +
 +----
 +
 +====mount at boot====
 +''sudo vim /etc/fstab''
 +
 +----
 +=====Block Device Monitoring and Control=====
 +
 +====smartmon====
 +
 +----
 +
 +====hdparm====
 +
 +
 +====References====
 +  *[[https://www.digitalocean.com/community/tutorials/how-to-partition-and-format-storage-devices-in-linux|How To Partition and Format Storage Devices in Linux]]
  
 ---- ----
  • /app/www/public/data/pages/home_server/home_server_setup/other_services/disk.txt
  • Last modified: 2024-04-25 Thu wk17 11:42
  • by baumkp