ทำแผ่นบูตฉุกเฉิน

ปัญหาคือมีเครื่องลูกข่ายที่เป็นวินโดวส์ติดไวรัส และไม่ได้ลงซอฟต์แวร์ป้องกันไวรัสไว้ (เนื่องจากทอนกำลังเครื่อง)

ทางแก้คือ ใช้แผ่นบูตเดเบียนที่ลงแพกเกจ clamav เพื่อนำไปสแกนและลบไฟล์ไวรัสทิ้ง

ติดตั้งแพกเกจในการสร้างแผ่นบูตคือ live-helper

$ sudo aptitude install live-helper

สร้างไดเรกทอรีสำหรับงานนี้

$ mkdir ~/debian-live
$ cd ~/debian-live

เราทำแผ่นบูตฉุกเฉิน ต้องใช้แพกเกจ rescue

$ lh_config -p rescue

หากต้องการเปลี่ยนแปลงค่าปริยาย สามารถเปลี่ยนได้จากไฟล์ config/bootstrap

$ vi config/bootstrap

เช่น

...
# $LH_DISTRIBUTION: select distribution to use
# (Default: lenny)
LH_DISTRIBUTION="sid"
...
# $LH_SECTIONS: select section(s) to use
# (Default: main)
LH_SECTIONS="main contrib non-free"
...

ปรุงไฟล์ iso

$ sudo lh_build

จะได้ไฟล์ binary.iso ซึ่งสามารถนำไปเขียนแผ่นบูตได้ตามต้องการ ซึ่งแผ่น rescue ที่ได้นี้ จะมีแพกเกจ clamav สำหรับค้นหาไวรัสให้เรียบร้อยแล้ว

สามารถทดสอบไฟล์ iso ที่ได้ โดยใช้แพกเกจ qemu

$ sudo aptitude install qemu
$ qemu -cdrom binary.iso

หมายเหตุ

  • ชื่อแพกเกจย่อย สามารถดูได้จาก /usr/share/live-helper/lists/ เช่น ถ้าจะติดตั้ง gnome ด้วย ก็ใช้พารามิเตอร์ -p gnome เป็นต้น
  • หากเกิดข้อผิดพลาด และต้องการเริ่มใหม่ ให้ลบไดเรกทอรีซ่อนที่ชื่อ .stage
  • หากต้องการปรับค่าปริยายของระบบ เช่นต้องเปลี่ยน mirror โดยทดสอบหลายครั้ง ให้ปรับแก้สคริปต์ /usr/share/live-helper/functions/defaults.sh โดยตรง

อ้างอิง

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <blockquote> <img> <h3> <h4> <h5>
  • Lines and paragraphs break automatically.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.