树莓派挂载U盘
树莓派用的是8g的TF卡,想作为小型NAS有点小,存不了多少东西,于是将一个闲置的32G U盘挂载上,当作存储分区 以下为操作过程: 查看磁盘信息 pi@raspberrypi ~ $ sudo fdisk -l Disk /dev/mmcblk0: 7990 MB, 7990149120 bytes 4 heads, 16 sectors/track, 243840 cylinders, total 15605760 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: 0x000981cb Device Boot Start End Blocks Id System /dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA) /dev/mmcblk0p2 122880 15605759 7741440 83 Linux Disk /dev/sda: 32.2 GB, 32229031936 bytes 255 heads, 63 sectors/track, 3918 cylinders, total 62947328 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: 0x15a8a090 Device Boot Start End Blocks Id System /dev/sda1 2048 62947327 31472640 f W95 Ext'd (LBA) /dev/sda5 4096 62947327 31471616 7 HPFS/NTFS/exFAT 这里看到,/dev/sda为32G的磁盘,分区格式为NTFS,现在就是要将改磁盘挂载为linux分区。 ...