搜尋此網誌

2010年8月20日 星期五

Debian lenny --> squeeze

原本想把epc上的lenny升級到squeeze

但是!

#apt-get update;apt-get upgrade

失敗了~~~沒注意到那裡的問題

重開之後卡在GNOME的login畫面,也無法切到console端

所以...開啟了epc營救計畫





拿一隻2g的usb隨身碟,接在linkstation上的usb端口

不一定抓得到...所以要看dmesg有無抓到這一串

usb-storage: device found at 44
usb-storage: waiting for device to settle before scanning
usb 1-1: New USB device found, idVendor=0457, idProduct=0151
usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=3
usb 1-1: Product: USB Mass Storage Device
usb 1-1: SerialNumber: 01234567890123
usb-storage: device scan complete
scsi 28:0:0:0: Direct-Access USBest USB2FlashStorage 0.00 PQ: 0 ANSI: 2
sd 28:0:0:0: [sda] 2048000 512-byte hardware sectors (1049 MB)
sd 28:0:0:0: [sda] Write Protect is off
sd 28:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 28:0:0:0: [sda] Assuming drive cache: write through
sd 28:0:0:0: [sda] 2048000 512-byte hardware sectors (1049 MB)
sd 28:0:0:0: [sda] Write Protect is off
sd 28:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 28:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sda: p1 exceeds device capacity
sd 28:0:0:0: [sda] Attached SCSI removable disk

參考
http://wiki.debian.org/InstallToUsbMemoryStick
http://liaozi.blogspot.com/2009/03/dddebian-live-usb.html
http://kezeodsnx.pixnet.net/blog/post/28636651
http://choitw.xanga.com/666308152/eee-pc-%E8%A3%9Ddebianlxde%E5%85%8D%E5%AE%89%E8%A3%9D%E7%A8%8B%E5%BC%8F%E3%80%81%E5%85%8D%E6%B8%85%E6%B4%97/
http://plog.longwin.com.tw/my_note-unix/2009/12/08/debian-env-install-debian-linux-usb-2009


試了幾種方式,最快最懶的方式(大概10分鐘吧...)
#dd if=debian-live-505-i386-lxde-desktop.img of=/dev/sda

會產生一個468M的分割區,佔去454M的資料

然後處理一下分割區,可以把剩下的分割區劃出來
#cfdisk /dev/sda

放入debian-505-i386-netinst.iso或其他開機iso

以便到時安裝不同的版本,到此開機USB可以算是搞定



用usb隨身碟開機啟動(epc)之後

把原本epc上的系統掛在/media/disk

參考
http://rescatux.berlios.de/wiki/Squeeze_Chroot
http://maxubuntu.blogspot.com/2010/07/chroot.html

開啟root終端機

#mount -t proc /proc /media/disk/proc
#mount -o bind /tmp /media/disk/tmp
#mount -o bind /dev/media/disk/dev <--好像漏了這一步 #chroot /media/disk 這時應該可以看到系統了 接著繼續上次失敗的部份 #apt-get autoclean;apt-get update;apt-get upgrade;apt-get dist-upgrade

當然會有失敗的部份

順便紀錄一下

Q1:apt-get FATAL -> Could not set non-blocking flag Bad file descriptor (on chrooted fs)
ANS:mount -o remount,dev /path/to/filesystem

Q2:dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
ANS:USB的kernel與epc的kernel版本不同!
#mount -o bind /boot /media/disk/boot

Q3:all config files need .conf: /etc/modprobe.d/madwifi, it will be ignored in a future release
ANS:mv /etc/modprobe.d/madwifi /etc/modprobe.d/madwifi.conf

Q4:.udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
ANS:#dpkg-reconfigure udev;m-a prepare;m-a a-i rt2860



最後重開,移開usb隨身碟

發現wifi失效,還以為是系統出問題

後來發現fn+f2沒有按(硬體未開啟無線網路)

然後就有了這篇歡樂的文章~~~

沒有留言:

張貼留言