Linux Boot Process
- StackOverflow on hexeditors
The lsblk and similar commands
I consider myself to know Linux well but it still keeps surprising me quite often. Here is the list of commands I discovered recently:
The lsblk command resources:
The lsblk example:
oel64|oracle|1034$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 500M 0 disk └─sda1 8:1 0 499M 0 part /boot sdb 8:16 0 298.1G 0 disk ├─sdb1 8:17 0 249.3G 0 part ├─sdb2 8:18 0 39.1G 0 part │ ├─vg_oel64-lv_root (dm-0) 252:0 0 37.1G 0 lvm / │ └─vg_oel64-lv_swap (dm-1) 252:1 0 2G 0 lvm [SWAP] └─sdb3 8:19 0 9.8G 0 part sr0 11:0 1 1024M 0 rom oel64|oracle|1035$
- blkid - displays UUID and LABEL for filesystems.
- tune2fs - displays and alters details of extX filesystems.
- btrfstune - similar to
tune2fsdisplays and alters properties of btrfs.
- pv - monitor progress of data through a pipe
- gdmap - similar to windirstat, shows space distribution in a directory.
Linux and VirtualBox
In VirtualBox you can access (read-only or read-write) to selected folders and/or disks from the host system. They are called Shared Folders. Among them you can have Machine Folders and Transient Folders. The Machine Folders are mounted automatically by the VirtualBox addon when the guest starts. And the Transient Folders are not to be mounted automatically, by specifically, on request, by the command (generic usage and specific example):
mount -t vboxsf FOLDER_NAME /local_mount_point mount -t vboxsf D_DRIVE /mnt
Suprisingly I used it more rarely then I wanted to. Instead I copied files there and over to statically mounted machine folders.
Solution, perform the following as the regular user:
killall VBoxClient VBoxClient-all
- 3 Password Generators For Linux
- 10 Ways to Generate a Random Passwords from CLI
- Web Password Generator
- Password Security
Goal: To mount a remote filesystems from a Linux box.
Allows to mount as non-root (mount flag
user) and specify credentials
in an external file. This mount happens in the kernel layer.
/192.168.0.26/Backup /mnt/NAS/Backup cifs user,noauto,credentials=/home/iam/.smbpass,uid=iam 0 0
gvfs-mount gvfs-copy gvfs-ls