find drive with lsblk
command. without the number for example sda
Now use the following:
sudo dd bs=4M if=<iso-file> of=/dev/<name in lsblk> conv=fdatasync status=progress
Install cifs-utils
.
Show smb servers:
smbclient -L <host>
Setup cifs:
sudo mount -t cifs -o username=<username> //<server ip>/<path> <mount path>
link: thomas-krenn.com
Install package genisoimage
.
Get Logical block size
and Volume size
:
sudo isoinfo -d -i /dev/cdrom | grep -i -E 'block size|volume size'
Now clone the drive:
dd if=/dev/cdrom of=<iso location> bs=<block size> count=<volume size> status=progress
Edit the file ~/.profile
export PATH="$PATH:/path
Update /etc/locale.gen
sudo locale-gen