Advertisement
VolleMelk

Install Debian Squeeze on LS-WVL

Mar 14th, 2013
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.67 KB | None | 0 0
  1. # --------------------
  2. # Note: Is this a re-install?
  3. #
  4. # Copy:
  5. # * initrd.buffalo
  6. # * initrd.buffalo.final
  7. # * squeeze-armel-rootfs.tgz
  8. # to ~/
  9. #
  10. # If you came here from Step 4 of this guide: http://pastebin.com/H6rEZ5ge
  11. # these files should already be there and you can continue on.
  12. # After this guide, go to Step 6 of the other guide
  13. # --------------------
  14.  
  15. # --------
  16. # If the NAS fails to boot, you can unbrick your NAS using TFTP. I have described it here:
  17. # http://pastebin.com/5sY24CTQ
  18. # --------
  19.  
  20. tar xvzf squeeze-armel-rootfs.tgz -C /mnt/array1/
  21. cp squeeze-armel-rootfs.tgz /mnt/array1/
  22. mv /boot/initrd.buffalo /boot/initrd.buffalo.old
  23. cp initrd.buffalo* /boot/
  24.  
  25. reboot
  26.  
  27. mkfs.ext3 /dev/md1
  28. tune2fs -c0 -i0 /dev/md1
  29.  
  30. mount /dev/md1 /mnt
  31. tar xvzf /squeeze-armel-rootfs.tgz -C /mnt
  32. cp /squeeze-armel-rootfs.tgz /mnt/root           # make a copy
  33.  
  34. nano /etc/fstab
  35. # /etc/fstab: static file system information.
  36. #
  37. # file system   mount point type    options         dump pass
  38. /dev/md1    /       ext3    defaults,noatime    0    1
  39. /dev/md0    /boot       ext3    ro,nosuid,nodev     0    2
  40. /dev/md10   none        swap    sw          0    0
  41. proc        /proc       proc    defaults        0    0
  42. # * Important is /dev/md1
  43.  
  44. # Use correct initrd
  45. cd /boot
  46. mv initrd.buffalo initrd.buffalo.initial
  47. cp initrd.buffalo.final initrd.buffalo
  48.  
  49. reboot
  50.  
  51. mkfs.ext3 -m0 /dev/md2
  52. tune2fs -c0 -i0 /dev/md2
  53.  
  54. nano /etc/fstab
  55. # /etc/fstab: static file system information.
  56. #
  57. # file system   mount point type    options         dump pass
  58. /dev/md1    /       ext3    defaults,noatime    0    1
  59. /dev/md2    /home       ext3    defaults,noatime    0    2
  60. /dev/md0    /boot       ext3    ro,nosuid,nodev     0    2
  61. /dev/md10   none        swap    sw          0    0
  62. proc        /proc       proc    defaults        0    0
  63.  
  64. reboot      # as a test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement