2018年10月13日 星期六

可以刪除450MB修復磁碟分割區嗎?

可以刪除450MB修復磁碟分割區嗎?

450MB修復磁碟分割區說大不大,個人認為蠻小的,此分割區是恢復系統用的微軟獨有的特殊分割區,主要是供給Windows RE(Windows Recovery Environment)使用,讓你順利進行系統還原、系統映像恢復、啟動修復等操作,讓你的電腦可以在不遺失照片、音樂、視頻和其他個人文件的情況下恢復運作。個人建議不必刪除,但有些玩家使用SSD來當系統開機碟,空間錙銖必較,想要刪除此450MB修復磁碟分割區來合併主要分割區,以求更大的系統空間。此分割區是可以刪除,但會喪失系統復原的一些功能,魚與熊掌不可兼得,端看個人的需求來決定吧!


想要刪除450MB修復磁碟分割,請先以系統管理身分來進入「命令提示字元」視窗。

因使用以「系統管理員身分」來執行,所以會出現使用者帳戶的允許視窗確認,按下「是」來繼續。


進入了「命令提示字元」視窗,因中文版關係,所以下方的出現微軟中文輸入法,請使用〔Ctrl〕+〔Space〕來切換至英文狀態,並輸入「diskpart」文字後按下〔Enter〕鍵。接著再輸入List Disk來查看目前的磁碟機設備狀況,主要是確定要系統開機碟是哪一個編號,例如下圖中我有插入16GB的外接USB隨身碟的編號是「1」,所以編號「0」就是系統的開機碟(下圖是我的設備狀態,並不是每個人都會有相同的設備)。

確定要安裝的系統碟編號後,接著就是一連串的指令,需特別注意的是第一行的「Select Disk 0」,其最後的編號就是你系統安裝的磁碟編號,接著依序輸入如下指令來完成450MB修復磁碟分割區的選擇。
  • Select Disk 0    ← 選擇要安裝的磁碟編號
  • list partition      ← 顯示此磁碟上的分割區
  • select partition 1         ← 選擇450MB修復磁碟分割區

接著使用 delete partition override 來刪除。

刪除後再次進入磁碟管理程式,看到450MB修復磁碟分割區已經變成為配置,接著你就可以利用硬碟分割區調整工具來合併主要磁碟分顆區。

一旦刪除450MB修復磁碟分割區後,進入進階選項畫面已經看不到Windows RE環境的功能,如系統還原、系統映像修復、啟動修復、命令提示字元與修復至先前組建通通不見了。

2018年9月21日 星期五

dns

桌機、筆電、ap、伺服器的dns原本是設定誰?如果是指到你們學校的dns,你得把他們改成: 163.17.40.1、163.17.40.3、163.28.80.41或中華電信, google的dns 168.95.1.1, 168.95.192.1, 8.8.8.8 2001:288:5400::1, 2001:288:5400::3, 2001:288:5000:1:163:28:80:41

163.17.40.1, 163.17.40.3, 163.28.80.41, 168.95.1.1, 168.95.192.1, 8.8.8.8, 2001:288:5400::1, 2001:288:5400::3, 2001:288:5000:1:163:28:80:41

DNS1="163.17.40.1"
DNS2="163.17.40.3"
DNS3="163.28.80.41"
DNS4="168.95.1.1"
DNS5="168.95.192.1"
DNS6="8.8.8.8"


https://linuxconfig.org/how-to-setup-a-static-ip-address-on-debian-linux

How to setup a Static IP address on Debian Linux

Objective

The objective is to configure a static IP address on Debian Linux server. 

Please note that for Desktop installations it is recommended to use GUI tools, such as network-manager. If you wish to configure your network interfaces directly via /etc/network/interfaces file on your Desktop, make sure you disable any other possibly interfering network configuration daemons. For example, the below commands will disable network-manager:
# systemctl stop NetworkManager.service
# systemctl disable NetworkManager.service

Operating System and Software Versions

  • Operating System: - Debian 9 (Stretch)

Requirements

Privileged access to your Debian Linux system is required.

Difficulty

EASY

Conventions

  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Instructions

Enable Static IP

By default you will find the following configuration within the /etc/network/interfaces network config file:
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
Update the iface eth0 inet dhcp to iface eth0 inet static. The resulting content of /etc/network/interfaces network config file should look similar to the one below:
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static


Configure IP Address

At this stage, we have two choices on how to configure a static IP address for our eth0 network interface. The first option is to add IP address configuration directly into /etc/network/interfaces file. Append the following line to your existing /etc/network/interfaces:
        address 10.1.1.125
        netmask 255.0.0.0
        gateway 10.1.1.1
The resulting content /etc/network/interfaces file should look like the one below. Update your IP address, netmask and gateway as necessary:
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
      address 10.1.1.125
      netmask 255.0.0.0
      gateway 10.1.1.1
The second and recommended option is to define your network interfaces separately within /etc/network/interfaces.d/ directory. 

During the networking daemon initiation the /etc/network/interfaces.d/ directory is searched for network interface configurations. Any found network configuration is included as part of the /etc/network/interfaces

Create a new network configuration file with any arbitrary file name eg. eth0 and include the eth0IP address configuration shown below. To do this use your preferred text editor for example vim:
# cat /etc/network/interfaces.d/eth0
iface eth0 inet static
      address 10.1.1.125
      netmask 255.0.0.0
      gateway 10.1.1.1
Now, remove the above lines stated from /etc/network/interfaces so you will end up with:
# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0


Static DNS server

To configure a static DNS edit /etc/resolv.conf file, and include the IP address of your preferred nameserver eg:
nameserver 8.8.8.8
Alternatively, add the following line into your /etc/network/interfaces network config file:
dns-nameservers 8.8.8.8 8.8.4.4

Apply Changes

To apply changes restart your network daemon:
# service networking restart
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME or create a JOB ALERT on LinuxCareers.com job portal.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

YOU MAY ALSO BE INTERESTED IN:



Comments and Discussions