星期四, 1月 17, 2019

Ubuntu Grub 修復

sudo mkdir /mnt
sudo mount /dev/sdXn /mnt

sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

grub-install /dev/sdX
(if not chroot : grub-install --root-directory=/mnt/ /dev/sdX)

grub-install --recheck /dev/sdX

update-grub

exit
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt


---------
other command:
sudo fdisk -l
sudo parted /dev/sdX print
sudo lsblk


星期三, 1月 16, 2019

網芳通訊協定 SMB

網芳通訊協定 SMB

SMBv1: Win XP/Win2003
SMBv2: Vista/Win2008
SMBv2.1: Win7/Win2008 R2
SMBv3: Win8/Win2012
Win10 自 1709 後,新安裝預設關閉 SMBv1