Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- william@beaglebone:~$ lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 1 3.8G 0 disk
- `-sda1 8:1 1 3.8G 0 part
- mmcblk1boot0 179:16 0 2M 1 disk
- mmcblk1boot1 179:24 0 2M 1 disk
- mmcblk0 179:0 0 14.7G 0 disk
- `-mmcblk0p1 179:1 0 1.7G 0 part /
- mmcblk1 179:8 0 3.6G 0 disk
- |-mmcblk1p1 179:9 0 96M 0 part
- `-mmcblk1p2 179:10 0 3.5G 0 part
- william@beaglebone:~$ sudo mkdir /mnt/usbswap
- william@beaglebone:~$ sudo mount /dev/sda1 /mnt/usbswap/
- william@beaglebone:~$ ls /mnt/usbswap/
- MediaMeta.xml System Volume Information autorun.inf boot bootmgr bootmgr.efi efi setup.exe sources support
- Ah . . . Windows 10 install disk . . .
- william@beaglebone:~$ ls
- ramfs remove-modules.sh ti
- william@beaglebone:~$ df ti
- Filesystem 1K-blocks Used Available Use% Mounted on
- 192.168.254.162:/home/william/share 142178176 36887296 98068608 28% /home/william/ti
- ALready have an NFS mounted . . .
- william@beaglebone:~$ sudo umount /mnt/usbswap/
- william@beaglebone:~$ sudo dd if=/dev/sda of=/home/william/ti/win10_usb_install.img
- 7909376+0 records in
- 7909376+0 records out
- 4049600512 bytes (4.0 GB) copied, 658.124 s, 6.2 MB/s
- Slow USB flash stick . . . took ~11 minutes.
- william@beaglebone:~$ sudo fdisk /dev/sda
- Command (m for help): m
- Command action
- a toggle a bootable flag
- b edit bsd disklabel
- c toggle the dos compatibility flag
- d delete a partition
- l list known partition types
- m print this menu
- n add a new partition
- o create a new empty DOS partition table
- p print the partition table
- q quit without saving changes
- s create a new empty Sun disklabel
- t change a partition's system id
- u change display/entry units
- v verify the partition table
- w write table to disk and exit
- x extra functionality (experts only)
- Command (m for help): d
- Selected partition 1
- Command (m for help): p
- Disk /dev/sda: 4049 MB, 4049600512 bytes
- 255 heads, 63 sectors/track, 492 cylinders, total 7909376 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x00000000
- Device Boot Start End Blocks Id System
- Command (m for help): n
- Partition type:
- p primary (0 primary, 0 extended, 4 free)
- e extended
- Select (default p): p
- Partition number (1-4, default 1):
- Using default value 1
- First sector (2048-7909375, default 2048):
- Using default value 2048
- Last sector, +sectors or +size{K,M,G} (2048-7909375, default 7909375):
- Using default value 7909375
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- william@beaglebone:~$ sudo mkswap /dev/sda
- mkswap: /dev/sda: warning: don't erase bootbits sectors
- on whole disk. Use -f to force.
- Setting up swapspace version 1, size = 3954684 KiB
- no label, UUID=1808bf31-3313-44e6-b063-2d4d81f02e9e
- # /etc/fstab: static file system information.
- #
- # Auto generated by RootStock-NG: setup_sdcard.sh
- #
- /dev/mmcblk0p1 / ext4 noatime,errors=remount-ro 0 1
- debugfs /sys/kernel/debug debugfs defaults 0 0
- 192.168.254.162:/home/william/share /home/william/ti nfs nfsvers=3,rw,async,hard,intr 0 0
- tmpfs /home/william/ramfs tmpfs nodev,nosuid,size=256m 0 0
- home/william/ramfs tmpfs nodev,nosuid,size=256m 0 0
- UUID=1808bf31-3313-44e6-b063-2d4d81f02e9e none swap sw,pri=5 0 0
- william@beaglebone:~$ sudo swapon -a
- william@beaglebone:~$ free
- total used free shared buffers cached
- Mem: 507548 388196 119352 0 1464 359992
- -/+ buffers/cache: 26740 480808
- Swap: 3954684 0 3954684
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement