Reply to comment

วิธีทำ Ubuntu 8.04 Live USB

Tags:

พอดีว่าได้ซื้อ flash drive มาขนาด 4gb มาใช้เพิ่มเติมของเก่า 2gb มันใช้ไม่พอละ ตัวเก่า 2gb ผมเลยคิดว่าไหนๆก็ไม่ได้ใช้มันละเอามาทำเป็นตัว boot ubuntu ผ่าน usb ดีกว่าจะได้พกไปใช้ที่ไหนก็ได้... วิธีทำก็ไม่ยากอะไรนัก...(อันนี้ทำบน ubuntu น่ะครับ)

สิ่งที่ต้องมี
1. USB ขนาด 1Gb ขึ้นไปของผมใช้ 2Gb ติดสติ้กเกอร์ไว้ด้วยจะได้รู้...

2. ไฟล์ ubuntu-8.04-i386.iso โหลดได้จาก www.ubuntu.com หรือจากกระจกไทยตามข้างล่างนี้

http://mirror.nytes.net/linux/ubuntu/
http://mirror.in.th/ubuntu_cdimages/releases/hardy/
http://mirror1.ku.ac.th/
ftp://202.29.6.233/cd-iso/ubuntu/

เสียบ USB ลงไปในเครื่องถ้ามีข้อมูลอยู่แบบของผมก็ให้ทำการ format เลยครับโดยใช้ gparted ทำการ fomat เป็น FAT32

$sudo gparted

จากนั้นทำการตรวจดูว่า flash drive ของเรานั้นถูก mount ไว้ที่ไหน เช่นของผมเป็น /dev/sdc1

$sudo fdisk -l

ทำการติดตั้ง syslinux และ mtools ด้วยคำสั่ง

$sudo aptitude install syslinux mtools

จากนั้นทำการโหลด script มาใข้งาน...

$wget http://www.startx.ro/sugar/isotostick.sh

ใช้คำสั่ง

$chmod +x isotostick.sh

และก็

$sudo ./isotostick.sh ubuntu-8.04-i386.iso /dev/sdb1
verifying image...(no checkisomd5 in Ubuntu so skipping)!
Copying live image to USB stick
cp: cannot create symbolic link `/media/usbdev.WX8375/dists/stable': Operation not permitted
cp: cannot create symbolic link `/media/usbdev.WX8375/dists/unstable': Operation not permitted
Installing boot loader
USB stick set up as live image!

เท่านี้ก็จะได้พกพา ubuntu ไปไหนมาไหนได้ทุกที่ทุกเวลา

Reply

The content of this field is kept private and will not be shown publicly.
CAPTCHA
คำถามนี้ทดสอบว่าคุณมีความรู้ทางคณิตศาสตร์ ไม่ได้โง่!!!
6 + 10 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.