NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 50G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 0 49.5G 0 part ├─VolGroup-lv_root (dm-0) 253:0 0 45.6G 0 lvm / └─VolGroup-lv_swap (dm-1) 253:1 0 4G 0 lvm [SWAP] sdb 8:16 0 50G 0 disk └─sdb1 8:17 0 50G 0 part └─VolGroup-lv_data (dm-3) 253:3 0 50G 0 lvm /data sdc 8:32 0 50G 0 disk └─sdc1 8:33 0 50G 0 part
sdc 50G
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdc 8:32 0 55G 0 disk └─sdc1 8:33 0 50G 0 part
for i in /sys/class/scsi_host/host*; do grep -q 'mptspi' "$i/proc_name" && echo '- - -
' > "$i/scan"; done; lsblk
/sys/class/scsi_host ├── host0 │ └── proc_name ├── host1 │ └── proc_name └── host2 └── proc_name
- - -
into /sys/class/scsi_host/host2/scanStill in the context of resetting the root password of an old Linux VM, we know how to :
...but things are never simple (life sucks ) and you _may_ find that the security of this old VM has been hardened and prevents from entering boot options without a password .The alternate solution is now to (try to) boot on any recovery media and see if we can change the root password.
To get ... | Type ... | i.e. ... |
---|---|---|
/ | > |
Shift-< |
: | . |
Shift-; |
! | / |
Shift-: |
- | 6 |
Shift-- |
root:$1$12345678$abcdefghijklmnopqrstuv:12345:0:99999:7:::
:
-separated)