Linux CentOS
CentOS Live USB製作:
忘記Ubuntu密碼 救援方法:
CentOS 7安裝:
CentOS(Community Enterprise Operating System)是Linux發行版之一,它是來自於Red Hat Enterprise Linux依照開放原始碼規定釋出的原始碼所編譯而成。由於出自同樣的原始碼,因此有些要求高度穩定性的伺服器以CentOS替代商業版的Red Hat Enterprise Linux使用。兩者的不同,在於CentOS並不包含封閉原始碼軟體。CentOS 對上游代碼的主要修改是為了移除不能自由使用的商標。[1]2014年,CentOS宣布與Red Hat合作[2],但CentOS將會在新的委員會下繼續運作,並不受RHEL的影響
How to Create Bootable USB Key CentOS 7
In this Linux install tooling tutorial we will take a look how to create a bootable usb key with CentOS 6.5 (and higher) or CentOS 7. We have also add how to create a bootable CentOS 7 USB key from Mac OSX.
From a Linux System
To create a bootable CentOS 7 USB key you need an CentOS DVD image and an USB key that has at least 4.2 gigabytes of space.
The starting from CentOS 6.5 (or higher) you can install from USB keys by simply transferring the desired ISO using the dd command line utility. For instance using the following command:
dd if=CentOS-7.0-1406-x86_64-DVD.iso of=/dev/sdb
note: of course, you'll need to make sure that the output device (of=) is the USB key!
You can use exactly the same method for CentOS 7.
Note: the CentOS 7 installer image has a special partitioning which, as of (July) 2014, most Windows tools do NOT transfer correctly leading to undefined behaviour when booting from the USB key. So use an other Linux partition (or vm) or a Mac OSX machine to create your bootable USB key.
在 Ubuntu 如果忘記了登入密碼,可以簡單地進入 recovery mode 重設密碼,以下是重新密碼方法:
1. 進入 GRUB 選單
如果電腦內除了 Ubuntu 外,還安裝了其他作業系統,一開機便會看到 GRUB 的選單,但如果只安裝了 Ubuntu 的話,在開機時按著「Shift」鍵,便可以進入 GRUB 開機選單。
如果電腦內除了 Ubuntu 外,還安裝了其他作業系統,一開機便會看到 GRUB 的選單,但如果只安裝了 Ubuntu 的話,在開機時按著「Shift」鍵,便可以進入 GRUB 開機選單。
2. 選擇 recovery mode
看到 GRUB 選單後,選擇 Ubuntu 的 “recovery mode”。
看到 GRUB 選單後,選擇 Ubuntu 的 “recovery mode”。
3. 重新掛載根目錄
這時 Ubuntu 應該會以唯讀的方式掛載根目錄,需要重新掛載根目錄成可讀:
這時 Ubuntu 應該會以唯讀的方式掛載根目錄,需要重新掛載根目錄成可讀:
# mount -o rw,remount /
4. 重新密碼
這時便可以用 passwd 指令重設密碼,但如果連 username 都忘記的話,可以查看 /home 目錄,裡面會看到帳號名稱。
這時便可以用 passwd 指令重設密碼,但如果連 username 都忘記的話,可以查看 /home 目錄,裡面會看到帳號名稱。
# passwd username
然後輸入新密碼 2 次。
5. 重新進入 Ubuntu
重設密碼後,輸入 exit 指令:
重設密碼後,輸入 exit 指令:
# exit
回到 recovery menu 後,選擇 “resume normal boot” 便可以正常啟動 Ubuntu,這時可以用新密碼登入。
留言
張貼留言