鐵之狂傲

 取回密碼
 註冊
搜尋

本文章最後由 無我皇 於 21-5-30 18:17 編輯

202105307-1-Fedora_Core_2_Linux-laTW-gnome2-gimp-jpegQ89-thCOM-hda1-UIC.jpg

202105307-1-Fedora_Core_2_Linux-laTW-gnome2-gimp-jpegQ89-thCOM-hda1-UIC.jpg

小皇改的 grub.conf,研究了一下 GRUB 有一些心得了,
檔案是 /boot/grub/grub.conf ,必須要手動編輯這個檔案,
用文字編輯器開啟,也可以在重開機進行到 GRUB 時
用上下鍵選擇系統再按 e 編輯選到系統的開機設定,
用上下鍵選擇要編輯的行列再按 e 編輯選到的行列,
編輯好後按 enter 鍵再按 b 進行開機測試,這樣雖然方便,
但是系統不會把更改後的版本儲存下來,還是要進系統
修改 grub.conf ,小皇把 /boot 都放在 /dev/hda5 ,
磁區代號可以用終端機輸入 fdisk -l /dev/hda 來得知,
但寫在 grub.conf 上的磁碟號碼要減一,它的格式為
root (hd0,4) ,它代表(hd0:第一顆IDE硬碟,4:第5分割區)
據研究是指 /boot 的安裝位置,所以每當成功安裝
GNU/Linux 後建議要備份開機檔,指令如下
cd /
tar -zcf boot.tar.gz /boot
以後要還原可以用下列指令
cd /
rm -rf /boot
tar -zxf boot.tar.gz
還有一個很重要的備份,
用GNU/Linux備份和還原硬碟開機磁區MBR
http://www.gamez.com.tw/thread-603450-1-1.html

我現在在用兩個 Fedora Core 2 Linux 加 SuSE Linux 7 PROFESSIONAL
的三個系統的多重開機,圖為多重開機的 grub.conf 檔,
寫完此檔就可以重開機測試,多重開機後就可以備份另一個系統了。

我把 SuSE Linux 7 PROFESSIONAL 的 /boot 和 / 裝在 /dev/hda8,
也就是安裝的時候沒有獨立出 /boot 來所以 /boot就在  root (hd0,7)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - -
UIC modified grub.conf, studied GRUB and got some experience,
The file is /boot/grub/grub.conf, this file must be edited manually.
Use a text editor to open it, or when the reboot is in progress to GRUB
Use the up and down keys to select the system and then press e to edit and select the system boot settings,
Use the up and down keys to select the row and column you want to edit,
and then press e to edit the selected row and column,
After editing, press the enter key and then press b to start the power-on test. Although it is convenient,
But the system will not save the changed version, it still has to enter the system
Modify grub.conf, UIC put /boot in /dev/hda5,
The sector code can be obtained by entering fdisk -l /dev/hda on the terminal,
But the disk number written on grub.conf should be reduced by one, and its format is
root (hd0,4), it stands for (hd0: the first IDE hard disk, 4: the fifth partition)
According to research, it refers to the installation location of /boot, so whenever successful installation
It is recommended to back up the boot file after GNU/Linux, the command is as follows
cd /
tar -zcf boot.tar.gz /boot
To restore in the future, you can use the following command
cd /
rm -rf /boot
tar -zxf boot.tar.gz
There is also a very important backup,
Use GNU/Linux to backup and restore the MBR of the hard disk boot sector
http://www.gamez.com.tw/thread-603450-1-1.html

UIC am currently using two Fedora Core 2 Linux plus SuSE Linux 7 PROFESSIONAL
Multi-booting of the three systems, the picture shows the grub.conf file for multi-booting,
After writing this file, you can reboot to test, and after multiple reboots,
you can back up another system.

UIC installed /boot and / of SuSE Linux 7 PROFESSIONAL in /dev/hda8,
That is to say, /boot is not independently generated during installation,
so /boot is at root (hd0,7)
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
202105296-1-Fedora_Core_2_Linux-laTW-gnome2-gimp-jpegQ89-thCOM-UIC.jpg

202105296-1-Fedora_Core_2_Linux-laTW-gnome2-gimp-jpegQ89-thCOM-UIC.jpg

202105307-2-Fedora_Core_2_Linux-laTW-gnome2-gimp-jpegQ89-thCOM-hda1-UIC.jpg

202105307-2-Fedora_Core_2_Linux-laTW-gnome2-gimp-jpegQ89-thCOM-hda1-UIC.jpg

今天完成了第二個 Fedora Core 2 Linux
用另外一個 Fedora Core 2 Linux
備份另外一個 Fedora Core 2 Linux 系統
輸入指令備份
tar -zcf 要備份到/要備份的檔名.tar.gz 要備份的目標目錄,


mount /dev/sda1 /mnt/sd1
將第一個隨身碟掛載到 /mnt/sd1

mount /dev/hda7 /mnt/hd7
將硬碟第七分割區掛載到 /mnt/hd7

cd /
將 / 作為工作目錄

tar -zcf hd7fd2thCOMmoe.tar.gz /mnt/hd7
將目錄 /mnt/hd7 壓縮成 hd7fd2thCOMmoe.tar.gz ,但發現這是個錯誤,
這樣會在工作目錄產生壓縮檔,按 Ctri + c 終止指令

tar -zcf /mnt/sd1/hd7fd2thCOMmoe.tar.gz /mnt/hd7
將目錄 /mnt/hd7 壓縮成 hd7fd2thCOMmoe.tar.gz 於隨身碟上
hd7 硬碟第七分割區
fd2 Fedora Core 2 Linux
thCOM 電腦名稱
moe 萌化過

fdisk -l /dev/hda
列出第一顆 IDE 硬碟的分割區
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - -
以後還原
mount /dev/sda1 /mnt/sd1
將第一個隨身碟掛載到 /mnt/sd1

mount /dev/hda7 /mnt/hd7
將硬碟第七分割區掛載到 /mnt/hd7

rm -rf /mnt/hd7
不經確認強制刪除 /mnt/hd7

cd /
將 / 作為工作目錄

tar -zxf /mnt/sd1/hd7fd2thCOMmoe.tar.gz
解壓縮隨身碟中的 hd7fd2thCOMmoe.tar.gz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - -Completed the second Fedora Core 2 Linux today
Use another Fedora Core 2 Linux
Back up another Fedora Core 2 Linux system
Input command backup
tar -zcf to be backed up to/the file name to be backed up. tar.gz to the target directory to be backed up,

mount /dev/sda1 /mnt/sd1
Mount the first flash drive to /mnt/sd1

mount /dev/hda7 /mnt/hd7
Mount the seventh partition of the hard drive to /mnt/hd7

cd /
Use / as the working directory

tar -zcf hd7fd2thCOMmoe.tar.gz /mnt/hd7
Compressed the directory /mnt/hd7 to hd7fd2thCOMmoe.tar.gz, but found that this was an error,
This will generate a compressed file in the working directory, press Ctri + c to terminate the command

tar -zcf /mnt/sd1/hd7fd2thCOMmoe.tar.gz /mnt/hd7
Compress the directory /mnt/hd7 into hd7fd2thCOMmoe.tar.gz on the flash drive
hd7 hard disk partition seventh
fd2 Fedora Core 2 Linux
thCOM computer name
moe Moe anthropomorphic , Sprouting

fdisk -l /dev/hda
List the partitions of the first IDE hard drive

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Restore later
mount /dev/sda1 /mnt/sd1
Mount the first flash drive to /mnt/sd1

mount /dev/hda7 /mnt/hd7
Mount the seventh partition of the hard drive to /mnt/hd7

rm -rf /mnt/hd7
Forcibly delete /mnt/hd7 without confirmation

cd /
Use / as the working directory

tar -zxf /mnt/sd1/hd7fd2thCOMmoe.tar.gz
Unzip hd7fd2thCOMmoe.tar.gz in the flash drive
202105307-1-SuSE_Linux_7P-gnome2-GIMP-jpegQ90-thCOM-UIC.jpg

202105307-1-SuSE_Linux_7P-gnome2-GIMP-jpegQ90-thCOM-UIC.jpg

202105263-1-Fedora_Core_2_Linux-laJP-gnome2-gimp-jpegQ89-thCOM-UIC.jpg

202105263-1-Fedora_Core_2_Linux-laJP-gnome2-gimp-jpegQ89-thCOM-UIC.jpg
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
In order unnecessary misunderstanding:
UIC do not know English
English is translated using google translate
If you need to translate,
please use Chinese to translate more accurate.
https://translate.google.com/
為了不必要的誤會:小皇不懂英文,
英文都是用google translate翻譯的,
若需要翻譯請用中文來翻譯比較準確.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

回覆 使用道具 檢舉

全世界最先進的跳動筆
你需要登入後才可以回覆 登入 | 註冊

存檔|手機版|聯絡我們|新聞提供|鐵之狂傲

GMT+8, 21-7-30 03:11 , Processed in 0.056935 second(s), 19 queries .

回頂部