Advertisement
Guest User

Untitled

a guest
Feb 17th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. william@beaglebone:~$ lsblk
  2. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  3. sda 8:0 1 3.8G 0 disk
  4. `-sda1 8:1 1 3.8G 0 part
  5. mmcblk1boot0 179:16 0 2M 1 disk
  6. mmcblk1boot1 179:24 0 2M 1 disk
  7. mmcblk0 179:0 0 14.7G 0 disk
  8. `-mmcblk0p1 179:1 0 1.7G 0 part /
  9. mmcblk1 179:8 0 3.6G 0 disk
  10. |-mmcblk1p1 179:9 0 96M 0 part
  11. `-mmcblk1p2 179:10 0 3.5G 0 part
  12.  
  13. william@beaglebone:~$ sudo mkdir /mnt/usbswap
  14. william@beaglebone:~$ sudo mount /dev/sda1 /mnt/usbswap/
  15. william@beaglebone:~$ ls /mnt/usbswap/
  16. MediaMeta.xml System Volume Information autorun.inf boot bootmgr bootmgr.efi efi setup.exe sources support
  17. Ah . . . Windows 10 install disk . . .
  18. william@beaglebone:~$ ls
  19. ramfs remove-modules.sh ti
  20. william@beaglebone:~$ df ti
  21. Filesystem 1K-blocks Used Available Use% Mounted on
  22. 192.168.254.162:/home/william/share 142178176 36887296 98068608 28% /home/william/ti
  23. ALready have an NFS mounted . . .
  24. william@beaglebone:~$ sudo umount /mnt/usbswap/
  25. william@beaglebone:~$ sudo dd if=/dev/sda of=/home/william/ti/win10_usb_install.img
  26. 7909376+0 records in
  27. 7909376+0 records out
  28. 4049600512 bytes (4.0 GB) copied, 658.124 s, 6.2 MB/s
  29. Slow USB flash stick . . . took ~11 minutes.
  30.  
  31. william@beaglebone:~$ sudo fdisk /dev/sda
  32. Command (m for help): m
  33. Command action
  34. a toggle a bootable flag
  35. b edit bsd disklabel
  36. c toggle the dos compatibility flag
  37. d delete a partition
  38. l list known partition types
  39. m print this menu
  40. n add a new partition
  41. o create a new empty DOS partition table
  42. p print the partition table
  43. q quit without saving changes
  44. s create a new empty Sun disklabel
  45. t change a partition's system id
  46. u change display/entry units
  47. v verify the partition table
  48. w write table to disk and exit
  49. x extra functionality (experts only)
  50. Command (m for help): d
  51. Selected partition 1
  52.  
  53. Command (m for help): p
  54.  
  55. Disk /dev/sda: 4049 MB, 4049600512 bytes
  56. 255 heads, 63 sectors/track, 492 cylinders, total 7909376 sectors
  57. Units = sectors of 1 * 512 = 512 bytes
  58. Sector size (logical/physical): 512 bytes / 512 bytes
  59. I/O size (minimum/optimal): 512 bytes / 512 bytes
  60. Disk identifier: 0x00000000
  61.  
  62. Device Boot Start End Blocks Id System
  63.  
  64. Command (m for help): n
  65. Partition type:
  66. p primary (0 primary, 0 extended, 4 free)
  67. e extended
  68. Select (default p): p
  69. Partition number (1-4, default 1):
  70. Using default value 1
  71. First sector (2048-7909375, default 2048):
  72. Using default value 2048
  73. Last sector, +sectors or +size{K,M,G} (2048-7909375, default 7909375):
  74. Using default value 7909375
  75.  
  76. Command (m for help): w
  77. The partition table has been altered!
  78.  
  79. Calling ioctl() to re-read partition table.
  80. Syncing disks.
  81.  
  82. william@beaglebone:~$ sudo mkswap /dev/sda
  83. mkswap: /dev/sda: warning: don't erase bootbits sectors
  84. on whole disk. Use -f to force.
  85. Setting up swapspace version 1, size = 3954684 KiB
  86. no label, UUID=1808bf31-3313-44e6-b063-2d4d81f02e9e
  87.  
  88.  
  89. # /etc/fstab: static file system information.
  90. #
  91. # Auto generated by RootStock-NG: setup_sdcard.sh
  92. #
  93. /dev/mmcblk0p1 / ext4 noatime,errors=remount-ro 0 1
  94. debugfs /sys/kernel/debug debugfs defaults 0 0
  95. 192.168.254.162:/home/william/share /home/william/ti nfs nfsvers=3,rw,async,hard,intr 0 0
  96. tmpfs /home/william/ramfs tmpfs nodev,nosuid,size=256m 0 0
  97. home/william/ramfs tmpfs nodev,nosuid,size=256m 0 0
  98. UUID=1808bf31-3313-44e6-b063-2d4d81f02e9e none swap sw,pri=5 0 0
  99.  
  100. william@beaglebone:~$ sudo swapon -a
  101. william@beaglebone:~$ free
  102. total used free shared buffers cached
  103. Mem: 507548 388196 119352 0 1464 359992
  104. -/+ buffers/cache: 26740 480808
  105. Swap: 3954684 0 3954684
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement