0. Trigger SCSI Device Scans
# Scan all SCSI host controllers
# If a new disk is added
sudo su # run as root
scsiPath=/sys/class/scsi_host # assuming scsi host path
for host in $(ls $scsiPath); do
echo $host
echo "- - -" > $scsiPath/$host/scan # trigger scans
done
# If an existing disk has been expanded
sudo su
for deviceRescan in $(ls /sys/class/block/sd*/device/rescan); do
echo 1 > $deviceRescan
done
root@nas:~# udevadm trigger
root@nas:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
1. Find [Auto]Mounts
root@nas:~# findmnt
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sda1 ext4 rw,relatime,errors=remount-ro
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs ro,nosuid,nodev,noexec,mode=755
│ │ ├─/sys/fs/cgroup/unified cgroup2 cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd
│ │ ├─/sys/fs/cgroup/rdma cgroup cgroup rw,nosuid,nodev,noexec,relatime,rdma
│ │ ├─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ └─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/bpf none bpf rw,nosuid,nodev,noexec,relatime,mode=700
│ └─/sys/kernel/debug debugfs debugfs rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ ├─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=11996
│ └─/proc/fs/nfsd nfsd nfsd rw,relatime
├─/dev udev devtmpfs rw,nosuid,relatime,size=1991696k,nr_inodes=497924,mode=755
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev
│ ├─/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
│ └─/dev/mqueue mqueue mqueue rw,relatime
├─/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=403156k,mode=755
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k
│ └─/run/rpc_pipefs sunrpc rpc_pipefs rw,relatime
├─/tmp tmpfs tmpfs rw,relatime
├─/srv/dev-disk-by-uuid-6ab70b65-bd95-482a-bde7-9a9855b36795 /dev/md0 ext4 rw,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group
├─/export/unifi /dev/md0[/unifi] ext4 rw,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group
├─/export/pihole /dev/md0[/pihole] ext4 rw,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group
├─/export/nextcloud /dev/md0[/nextcloud] ext4 rw,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group
└─/export/photoprism /dev/md0[/photoprism] ext4 rw,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group
2. List Blocks
root@kimlinux:/home/kim# fdisk -l
Disk /dev/sda: 14.94 GiB, 16013942784 bytes, 31277232 sectors
Disk model: KINGSTON SNS4151
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdb: 476.96 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1D8CE9C6-B07F-3D46-8FA3-3ABC71E0985C
Device Start End Sectors Size Type
/dev/sdb1 4096 618495 614400 300M EFI System
/dev/sdb2 618496 839479295 838860800 400G Linux filesystem
/dev/sdb3 839479296 1000215182 160735887 76.7G Linux LVM
Disk /dev/mapper/volumegroup1-swap: 16 GiB, 17179869184 bytes, 33554432 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/volumegroup1-vmstorage1: 75.56 GiB, 81122033664 bytes, 158441472 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdc: 7.47 GiB, 8004304896 bytes, 15633408 sectors
Disk model: Cruzer
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00696988
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 15633407 15631360 7.5G c W95 FAT32 (LBA)
3. Use FDISK to List Devices
root@kimlinux:/home/kim# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 96.6M 1 loop /snap/core/9804
loop1 7:1 0 161.4M 1 loop /snap/gnome-3-28-1804/128
loop2 7:2 0 4M 1 loop /snap/notepad-plus-plus/238
loop3 7:3 0 39M 1 loop /snap/remmina/4309
loop4 7:4 0 29.9M 1 loop /snap/snapd/8790
loop5 7:5 0 55.3M 1 loop /snap/core18/1885
loop6 7:6 0 62.1M 1 loop /snap/gtk-common-themes/1506
loop7 7:7 0 226.7M 1 loop /snap/wine-platform-runtime/145
loop8 7:8 0 215M 1 loop /snap/wine-platform-5-stable/10
loop9 7:9 0 215M 1 loop /snap/wine-platform-5-stable/5
loop10 7:10 0 39.6M 1 loop /snap/remmina/4324
loop11 7:11 0 59.6M 1 loop /snap/powershell/137
sda 8:0 0 14.9G 0 disk
└─volumegroup1-vmstorage1 253:1 0 75.6G 0 lvm /vmstorage1
sdb 8:16 0 477G 0 disk
├─sdb1 8:17 0 300M 0 part /boot/efi
├─sdb2 8:18 0 400G 0 part /
└─sdb3 8:19 0 76.7G 0 part
├─volumegroup1-swap 253:0 0 16G 0 lvm [SWAP]
└─volumegroup1-vmstorage1 253:1 0 75.6G 0 lvm /vmstorage1
sdc 8:32 1 7.5G 0 disk
└─sdc1 8:33 1 7.5G 0 part /media/kim/CENTOS-8-1-
# If we already have guessed the new device address, this command would suffice
root@kimlinux:/home/kim# fdisk -l /dev/sdc
Disk /dev/sdc: 7.47 GiB, 8004304896 bytes, 15633408 sectors
Disk model: Cruzer
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00696988
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 15633407 15631360 7.5G c W95 FAT32 (LBA)
4. Check Disk Free
root@kimlinux:/home/kim# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.9M 3.2G 1% /run
/dev/sdb2 393G 16G 357G 5% /
tmpfs 16G 657M 15G 5% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/loop0 97M 97M 0 100% /snap/core/9804
tmpfs 16G 20K 16G 1% /tmp
/dev/loop2 4.2M 4.2M 0 100% /snap/notepad-plus-plus/238
/dev/loop3 39M 39M 0 100% /snap/remmina/4309
/dev/loop4 30M 30M 0 100% /snap/snapd/8790
/dev/loop1 162M 162M 0 100% /snap/gnome-3-28-1804/128
/dev/loop5 56M 56M 0 100% /snap/core18/1885
/dev/loop6 63M 63M 0 100% /snap/gtk-common-themes/1506
/dev/loop7 227M 227M 0 100% /snap/wine-platform-runtime/145
/dev/loop8 216M 216M 0 100% /snap/wine-platform-5-stable/10
/dev/loop9 215M 215M 0 100% /snap/wine-platform-5-stable/5
/dev/loop10 40M 40M 0 100% /snap/remmina/4324
/dev/loop11 60M 60M 0 100% /snap/powershell/137
/dev/sdb1 300M 7.8M 292M 3% /boot/efi
tmpfs 3.2G 20K 3.2G 1% /run/user/1000
/dev/mapper/volumegroup1-vmstorage1 76G 572M 75G 1% /vmstorage1
/dev/sdc1 7.5G 7.2G 340M 96% /media/kim/CENTOS-8-1-
5. Daemon Messages (kernel operation messages)
root@kimlinux:/home/kim# dmesg | grep usb
[ 0.464991] usbcore: registered new interface driver usbfs
[ 0.464991] usbcore: registered new interface driver hub
[ 0.464991] usbcore: registered new device driver usb
[ 1.414609] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 1.414610] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.414611] usb usb1: Product: xHCI Host Controller
[ 1.414612] usb usb1: Manufacturer: Linux 5.4.0-42-generic xhci-hcd
[ 1.414613] usb usb1: SerialNumber: 0000:00:14.0
[ 1.415990] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[ 1.415991] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.415991] usb usb2: Product: xHCI Host Controller
[ 1.415992] usb usb2: Manufacturer: Linux 5.4.0-42-generic xhci-hcd
[ 1.415993] usb usb2: SerialNumber: 0000:00:14.0
[ 1.416653] usb: port power management may be unreliable
[ 1.418110] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 1.418111] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.418112] usb usb3: Product: xHCI Host Controller
[ 1.418112] usb usb3: Manufacturer: Linux 5.4.0-42-generic xhci-hcd
[ 1.418113] usb usb3: SerialNumber: 0000:6c:00.0
[ 1.418504] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[ 1.418505] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.418506] usb usb4: Product: xHCI Host Controller
[ 1.418506] usb usb4: Manufacturer: Linux 5.4.0-42-generic xhci-hcd
[ 1.418507] usb usb4: SerialNumber: 0000:6c:00.0
[ 2.909520] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 2.909526] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[ 3.188329] usb 1-1: New USB device found, idVendor=046d, idProduct=0990, bcdDevice= 0.05
[ 3.188330] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[ 3.188331] usb 1-1: SerialNumber: 0CEA8EE5
[ 3.317565] usb 1-3: new full-speed USB device number 3 using xhci_hcd
[ 3.560595] usb 3-1: New USB device found, idVendor=2109, idProduct=0100, bcdDevice= 3.00
[ 3.560597] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.560598] usb 3-1: Product: USB 2.0 BILLBOARD
[ 3.560598] usb 3-1: Manufacturer: VIA Technologies Inc.
[ 3.560599] usb 3-1: SerialNumber: 0000000000000001
[ 3.966043] usb 1-3: New USB device found, idVendor=046d, idProduct=0a8f, bcdDevice= 0.12
[ 3.966044] usb 1-3: New USB device strings: Mfr=3, Product=1, SerialNumber=0
[ 3.966045] usb 1-3: Product: Logitech USB Headset
[ 3.966046] usb 1-3: Manufacturer: Logitech USB Headset
[ 4.105694] usb 1-4: new high-speed USB device number 4 using xhci_hcd
[ 4.254049] usb 1-4: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[ 4.254050] usb 1-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 4.254051] usb 1-4: Product: USB 2.0 Hub
[ 4.261325] usbcore: registered new interface driver usbhid
[ 4.261325] usbhid: USB HID core driver
[ 4.262746] input: Logitech USB Headset Logitech USB Headset as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.3/0003:046D:0A8F.0001/input/input4
[ 4.321914] hid-generic 0003:046D:0A8F.0001: input,hidraw0: USB HID v1.11 Device [Logitech USB Headset Logitech USB Headset] on usb-0000:00:14.0-3/input3
[ 4.661711] usb 1-4.1: new low-speed USB device number 5 using xhci_hcd
[ 4.886472] usb 1-4.1: New USB device found, idVendor=18f8, idProduct=1286, bcdDevice= 1.00
[ 4.886474] usb 1-4.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 4.886475] usb 1-4.1: Product: USB GAMING MOUSE
[ 4.894581] input: USB GAMING MOUSE as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.0/0003:18F8:1286.0002/input/input5
[ 4.894696] hid-generic 0003:18F8:1286.0002: input,hidraw1: USB HID v1.10 Mouse [USB GAMING MOUSE ] on usb-0000:00:14.0-4.1/input0
[ 4.897834] input: USB GAMING MOUSE Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:18F8:1286.0003/input/input6
[ 4.957806] input: USB GAMING MOUSE Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:18F8:1286.0003/input/input7
[ 4.957912] hid-generic 0003:18F8:1286.0003: input,hiddev0,hidraw2: USB HID v1.10 Keyboard [USB GAMING MOUSE ] on usb-0000:00:14.0-4.1/input1
[ 5.157713] usb 1-4.2: new low-speed USB device number 6 using xhci_hcd
[ 5.382844] usb 1-4.2: New USB device found, idVendor=046d, idProduct=c31c, bcdDevice=64.00
[ 5.382846] usb 1-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5.382847] usb 1-4.2: Product: USB Keyboard
[ 5.382848] usb 1-4.2: Manufacturer: Logitech
[ 5.392267] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.2/1-4.2:1.0/0003:046D:C31C.0004/input/input9
[ 5.449790] hid-generic 0003:046D:C31C.0004: input,hidraw3: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-0000:00:14.0-4.2/input0
[ 5.455916] input: Logitech USB Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.2/1-4.2:1.1/0003:046D:C31C.0005/input/input10
[ 5.513867] input: Logitech USB Keyboard System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.2/1-4.2:1.1/0003:046D:C31C.0005/input/input11
[ 5.514086] hid-generic 0003:046D:C31C.0005: input,hidraw4: USB HID v1.10 Device [Logitech USB Keyboard] on usb-0000:00:14.0-4.2/input1
[ 12.644364] input: UVC Camera (046d:0990) as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/input/input12
[ 12.644451] usbcore: registered new interface driver uvcvideo
[ 12.671672] usb 1-1: Warning! Unlikely big volume range (=3072), cval->res is probably wrong.
[ 12.671674] usb 1-1: [5] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1
[ 13.317649] usbcore: registered new interface driver snd-usb-audio
[ 19.393708] usb 1-1: reset high-speed USB device number 2 using xhci_hcd
[51931.892597] usb usb1: root hub lost power or was reset
[51931.892598] usb usb2: root hub lost power or was reset
[51931.893912] usb usb3: root hub lost power or was reset
[51931.893913] usb usb4: root hub lost power or was reset
[51932.248594] usb 1-1: reset high-speed USB device number 2 using xhci_hcd
[51932.248629] usb 3-1: reset high-speed USB device number 2 using xhci_hcd
[51932.524717] usb 1-3: reset full-speed USB device number 3 using xhci_hcd
[51932.940735] usb 1-4: reset high-speed USB device number 4 using xhci_hcd
[51933.672717] usb 1-4.2: reset low-speed USB device number 6 using xhci_hcd
[51934.428645] usb 1-4.1: reset low-speed USB device number 5 using xhci_hcd
[77637.039679] usb 1-2: new high-speed USB device number 7 using xhci_hcd
[77637.188609] usb 1-2: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.00
[77637.188623] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[77637.188626] usb 1-2: Product: Cruzer
[77637.188629] usb 1-2: Manufacturer: SanDisk
[77637.188631] usb 1-2: SerialNumber: 20060775201136F1D4D5
[77637.226746] usb-storage 1-2:1.0: USB Mass Storage device detected
[77637.229054] scsi host3: usb-storage 1-2:1.0
[77637.229446] usbcore: registered new interface driver usb-storage
[77637.231135] usbcore: registered new interface driver uas
[77750.888138] usb 1-2: USB disconnect, device number 7
[77777.564176] usb 1-2: new high-speed USB device number 8 using xhci_hcd
[77777.718243] usb 1-2: New USB device found, idVendor=090c, idProduct=1000, bcdDevice=11.00
[77777.718249] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[77777.718252] usb 1-2: Product: USB DISK
[77777.718255] usb 1-2: Manufacturer: SMI Corporation
[77777.718258] usb 1-2: SerialNumber: AAID4P513IPGJLYN
[77777.719648] usb-storage 1-2:1.0: USB Mass Storage device detected
[77777.719887] usb-storage 1-2:1.0: Quirks match for vid 090c pid 1000: 400
[77777.719942] scsi host3: usb-storage 1-2:1.0
[77815.265937] usb 1-2: USB disconnect, device number 8
[77826.302962] usb 1-2: new high-speed USB device number 9 using xhci_hcd
[77826.455914] usb 1-2: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.00
[77826.455919] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[77826.455922] usb 1-2: Product: Cruzer
[77826.455925] usb 1-2: Manufacturer: SanDisk
[77826.455928] usb 1-2: SerialNumber: 20060775201136F1D4D5
[77826.457341] usb-storage 1-2:1.0: USB Mass Storage device detected
[77826.463059] scsi host3: usb-storage 1-2:1.0
[79475.294460] audit: type=1400 audit(1598570083.386:42): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap-update-ns.woe-usb" pid=87525 comm="apparmor_parser"
[79475.380389] audit: type=1400 audit(1598570083.470:43): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.woe-usb.woeusb" pid=87526 comm="apparmor_parser"
[79475.386617] audit: type=1400 audit(1598570083.478:44): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.woe-usb.woeusbgui" pid=87527 comm="apparmor_parser"
[79477.538617] audit: type=1400 audit(1598570085.630:47): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap-update-ns.woe-usb" pid=87667 comm="apparmor_parser"
[79477.629433] audit: type=1400 audit(1598570085.722:48): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.woe-usb.woeusb" pid=87668 comm="apparmor_parser"
[79477.725155] audit: type=1400 audit(1598570085.818:49): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.woe-usb.woeusbgui" pid=87669 comm="apparmor_parser"
[79696.395614] audit: type=1400 audit(1598570304.492:50): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.woe-usb.woeusbgui" pid=87848 comm="apparmor_parser"
[79696.398902] audit: type=1400 audit(1598570304.496:51): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.woe-usb" pid=87850 comm="apparmor_parser"
[79696.399409] audit: type=1400 audit(1598570304.496:52): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.woe-usb.woeusb" pid=87851 comm="apparmor_parser"
[79696.671641] audit: type=1400 audit(1598570304.768:55): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.woe-usb.woeusbgui" pid=87855 comm="apparmor_parser"
[79696.674903] audit: type=1400 audit(1598570304.772:56): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.woe-usb" pid=87857 comm="apparmor_parser"
[79696.675414] audit: type=1400 audit(1598570304.772:57): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.woe-usb.woeusb" pid=87858 comm="apparmor_parser"
[79737.220501] audit: type=1400 audit(1598570345.317:80): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.woe-usb" pid=88236 comm="apparmor_parser"
[79737.309845] audit: type=1400 audit(1598570345.409:81): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.woe-usb.woeusb" pid=88237 comm="apparmor_parser"
[79737.315461] audit: type=1400 audit(1598570345.413:82): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.woe-usb.woeusbgui" pid=88238 comm="apparmor_parser"
[79739.307827] audit: type=1400 audit(1598570347.405:85): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap-update-ns.woe-usb" pid=88378 comm="apparmor_parser"
[79739.408348] audit: type=1400 audit(1598570347.505:86): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.woe-usb.woeusb" pid=88379 comm="apparmor_parser"
[79739.507628] audit: type=1400 audit(1598570347.605:87): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.woe-usb.woeusbgui" pid=88380 comm="apparmor_parser"
[80357.141645] audit: type=1400 audit(1598570965.258:88): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap-update-ns.woe-usb" pid=90393 comm="apparmor_parser"
[80357.272251] audit: type=1400 audit(1598570965.386:89): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.woe-usb.woeusbgui" pid=90394 comm="apparmor_parser"
[80357.276873] audit: type=1400 audit(1598570965.394:90): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.woe-usb.woeusb" pid=90396 comm="apparmor_parser"
[80357.588211] audit: type=1400 audit(1598570965.702:93): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.woe-usb.woeusbgui" pid=90400 comm="apparmor_parser"
[80357.591466] audit: type=1400 audit(1598570965.706:94): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.woe-usb" pid=90402 comm="apparmor_parser"
[80357.592004] audit: type=1400 audit(1598570965.706:95): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.woe-usb.woeusb" pid=90403 comm="apparmor_parser"
6. List Disks by ID
root@kimlinux:/home/kim# ls -la /dev/disk/by-id
total 0
drwxr-xr-x 2 root root 380 Aug 27 15:47 .
drwxr-xr-x 7 root root 140 Aug 27 15:47 ..
lrwxrwxrwx 1 root root 9 Aug 27 16:32 ata-KINGSTON_SNS4151S316GD_50026B724704DA5C -> ../../sda
lrwxrwxrwx 1 root root 9 Aug 27 16:29 ata-Samsung_SSD_850_PRO_512GB_S250NX0H835192J -> ../../sdb
lrwxrwxrwx 1 root root 10 Aug 27 16:29 ata-Samsung_SSD_850_PRO_512GB_S250NX0H835192J-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Aug 27 16:29 ata-Samsung_SSD_850_PRO_512GB_S250NX0H835192J-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Aug 27 16:30 ata-Samsung_SSD_850_PRO_512GB_S250NX0H835192J-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Aug 27 16:29 dm-name-volumegroup1-swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 Aug 27 16:29 dm-name-volumegroup1-vmstorage1 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Aug 27 16:29 dm-uuid-LVM-S3lbC2eBQTcONOf3H2RA2XBna4IOMvBgGD5Znn2OxYf3w8RupNfSWVCXaGWcghMJ -> ../../dm-0
lrwxrwxrwx 1 root root 10 Aug 27 16:29 dm-uuid-LVM-S3lbC2eBQTcONOf3H2RA2XBna4IOMvBgvG7Hg6F7c5N2Ne5dukVA1Xr5GIggBKFd -> ../../dm-1
lrwxrwxrwx 1 root root 9 Aug 27 16:32 lvm-pv-uuid-0AG0d6-ATvu-aSGX-cQX1-99ae-4sDs-7k8nBF -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 27 16:30 lvm-pv-uuid-GzSTjH-GYc0-xdN3-kGhW-UriG-X84G-YcIiv1 -> ../../sdb3
lrwxrwxrwx 1 root root 9 Aug 27 16:59 usb-SanDisk_Cruzer_20060775201136F1D4D5-0:0 -> ../../sdc
lrwxrwxrwx 1 root root 10 Aug 27 16:59 usb-SanDisk_Cruzer_20060775201136F1D4D5-0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Aug 27 16:29 wwn-0x500253884027728b -> ../../sdb
lrwxrwxrwx 1 root root 10 Aug 27 16:29 wwn-0x500253884027728b-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Aug 27 16:29 wwn-0x500253884027728b-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Aug 27 16:30 wwn-0x500253884027728b-part3 -> ../../sdb3
Categories: