fdisk分区实例

查看磁盘分区详情 直接使用fdisk -l 或者使用fdisk /dev/sda,再使用p命令来查看 Command (m for help): p Disk /dev/sda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders, total 62914560 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: 0x000657c3 Device Boot Start End Blocks Id System /dev/sda1 * 2048 61868031 30932992 83 Linux /dev/sda2 61870078 62912511 521217 5 Extended /dev/sda5 61870080 62912511 521216 82 Linux swap / Solaris fdisk命令 fdisk有以下命令可用,其中常用的已简单说明 ...

三月 19, 2015 · jqx

推荐几个Xposed模块

MinMinGuard Statusbar Scroll to Top WiFiKeyView SwipeBack

三月 14, 2015 · jqx

入手树莓派2 Model B

树莓派 2 Mode B 配置详情 A 900MHz quad-core ARM Cortex-A7 CPU 1GB RAM 4 USB ports 40 GPIO pins Full HDMI port Ethernet port Combined 3.5mm audio jack and composite video Camera interface (CSI) Display interface (DSI) Micro SD card slot VideoCore IV 3D graphics core pi@raspi:~ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye pi@raspi:~ $ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 1 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 2 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 3 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 38.40 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : BCM2835 Revision : a21041 Serial : 00000000d81b63a8 Model : Raspberry Pi 2 Model B Rev 1.1 pi@raspi:~ $ free -h total used free shared buff/cache available Mem: 921Mi 53Mi 784Mi 0.0Ki 84Mi 818Mi Swap: 99Mi 0B 99Mi pi@raspi:~ $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 29.3G 0 disk ├─mmcblk0p1 179:1 0 256M 0 part /boot └─mmcblk0p2 179:2 0 29G 0 part / pi@raspi:~ $ ➜ ~ neofetch `.::///+:/-. --///+//-:`` pi@raspi2b `+oooooooooooo: `+oooooooooooo: ---------- /oooo++//ooooo: ooooo+//+ooooo. OS: Raspbian GNU/Linux 11 (bullseye) armv7l `+ooooooo:-:oo- +o+::/ooooooo: Host: Raspberry Pi 2 Model B Rev 1.1 `:oooooooo+`` `.oooooooo+- Kernel: 6.1.21-v7+ `:++ooo/. :+ooo+/.` Uptime: 18 mins ...` `.----.` ``.. Packages: 624 (dpkg) .::::-``:::::::::.`-:::-` Shell: zsh 5.8 -:::-` .:::::::-` `-:::- Terminal: /dev/pts/1 `::. `.--.` `` `.---.``.::` CPU: BCM2835 (4) @ 1.000GHz .::::::::` -::::::::` ` Memory: 70MiB / 921MiB .::` .:::::::::- `::::::::::``::. -:::` ::::::::::. ::::::::::.`:::- :::: -::::::::. `-:::::::: :::: -::- .-:::-.``....``.-::-. -::- .. `` .::::::::. `..`.. -:::-` -::::::::::` .:::::` :::::::` -::::::::::` :::::::. .::::::: -::::::::. :::::::: `-:::::` ..--.` ::::::. `...` `...--..` `...` .:::::::::: `.-::::-` pi@raspi:~ $ screenfetch .',;:cc;,'. .,;::c:,,. pi@raspi ,ooolcloooo: 'oooooccloo: OS: Raspbian 11 bullseye .looooc;;:ol :oc;;:ooooo' Kernel: armv7l Linux 6.1.21-v7+ ;oooooo: ,ooooooc. Uptime: 3m .,:;'. .;:;'. Packages: 592 .dQ. .d0Q0Q0. '0Q. Shell: bash 5.1.4 .0Q0' 'Q0Q0Q' 'Q0Q. Disk: 1.5G / 30G (6%) '' .odo. .odo. '' CPU: ARMv7 rev 5 (v7l) @ 4x 1GHz . .0Q0Q0Q' .0Q0Q0Q. . RAM: 104MiB / 921MiB ,0Q .0Q0Q0Q0Q 'Q0Q0Q0b. 0Q. :Q0 Q0Q0Q0Q 'Q0Q0Q0 Q0' '0 '0Q0' .0Q0. '0' 'Q' .oo. .0Q0Q0. .oo. 'Q0Q0. '0Q0Q0Q0. .Q0Q0b 'Q0Q0. '0Q0Q0' .d0Q0Q' 'Q0Q' .. '0Q.' .0Q0Q0Q. '0Q0Q' pi@raspi:~ $

三月 12, 2015 · JQX

组装ATRIX 4G Laptop Dock和树莓派

清单如下: Raspberry Pi B+ Laptop Dock for Motorola ATRIX 4G Micro-HDMI 母对母转接头 HDMI-Micro HDMI 公对公连接线 Micro USB 母对母延长线 USB-Micro USB充电线一根 以下为实物图: 操作: 主要是将一个Micro USB母口和一对USB/Micro USb公口相连,然后就可以通过Laptop Dock进行供电,并且链接Laptop Dock键盘。 下图是一张Laptop Dock接口的照片: 以下为USB引脚定义: 红 电源+ 白 数据- 绿 数据+ 黑 接地 因此需要将Laptop上的Micro USB引出的电路进行改造,将其中的电源接到Micro USB公口上给树莓派供电,将数据接到USB公口上链接键盘,线路改造图示如下: 接下来就是考验动手能力了,完成后的实物图如下:

二月 28, 2015 · JQX

树莓派安装TP WN322G+驱动

首先查看usb设备 pi@raspi ~ $ lsusb Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 0ace:1215 ZyDAS ZD1211B 802.11g 注意,最后一行为无线网卡信息 打开https://wiki.debian.org/WiFi,查看是否有对照型号的固件 安装对应的固件 pi@raspi ~ $ sudo apt-get install zd1211-firmware 完成后使用iwconfig检查是否已经安装成功 pi@raspi ~ $ iwconfig wlan0 IEEE 802.11bg ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry long limit:7 RTS thr:off Fragment thr:off Power Management:off lo no wireless extensions. eth0 no wireless extensions.

二月 7, 2015 · jqx