Latest Posts

KVM用于挂载的iso文件在ubuntu下简单制作方法mkisofs


如果你要把某个文件或者目录压到iso文件中,需要使用mkisofs这个工具。这个工具非常强大,还可以压缩DVD格式的iso。你想改的参数都可以修改,而且还有-gui这个参数。最简单的用法如下:

mkisofs -r -o file.iso your_folder_name/
 


Read More

linux下命令行界面挂载U盘/光盘的方法


linux下命令行界面挂载U盘的方法

1:确认U盘挂载的设备,假设为/dev/sdf

2: 在mnt目录下创建一个文件夹

cd /mnt

mkdir usbdisk

3:将U盘设备挂载到目录

mount /dev/sdf /mnt/usbdisk

 

 

linux下命令行界面挂载光盘的方法

1:确认光盘挂载的设备,假设为/dev/sr0

2: 在mnt目录下创建一个文件夹

cd /mnt

mkdir sr0

3:将U盘设备挂载到目录

mount /dev/sr0/mnt/sr0

 

现在说重点,如何确定设备号呢?

方法1:查看主屏幕输出,在插入U盘或者光盘后,会有信息在屏幕输出,可以通过查看这个确认设备号

方法2:可以在插入U盘或者光盘后,使用dmesg | tail -n 200 查看最新的设备信息,一般情况下,这个设备即为刚刚插入的设备。


Read More

bash的命名由来


Bash (Bourne-Again SHell),Unix shell的一种,在1987年由布莱恩·福克斯为了GNU计划而编写。1989年发布第一个正式版本,原先是计划用在GNU操作系统上,但能运行于大多数类Unix系统的操作系统之上,包括Linux与Mac OS X v10.4都将它作为默认shell。
Bash是Bourne shell的后继兼容版本与开放源代码版本,它的名称来自Bourne shell(sh)的一个双关语(Bourne again / born again):Bourne-Again SHell。

首个重要的标准Unix Shell是1977年底在V7 Unix(AT&T第7版)中引入的,并且以它的创始科技部基础条件平台“国家气象网络计算应用节点建设”(2004DKA50730)资助者Stephen Bourne的名字命名。


Read More

PCI devices


Vendors
The top level of the hierarchy is the list of vendors. Each vendor has a 2-byte ID, stored in the database as 4 hexadecimal digits (with lowercase letters). They can be browsed here.

Devices
Each vendor keeps a list of his devices and assigns ID's to them. Each device in the list has a 2-byte long ID, stored the same way as the vendor ID (4 hexadecimal digits).

Subsystems
Sometimes, a device ID is not sufficient to select the right driver. For example, the same chip can be wired in different ways on different boards. In such cases, the manufacturer of the board defines a subsystem ID for the board, which serves as an additional identification.

The subsystem ID's are 4 bytes long, stored as 8 hexadecimal letters with a space in the middle (e.g., 1234 abcd could be a subsystem ID). The first quad of digits is the vendor ID (from the same list of vendors as the devices; possibly different from the vendor of the device itself), the rest is assigned by the vendor.

 

 

 

# Syntax:
# vendor  vendor_name
#    device  device_name                <-- single tab
#        subvendor subdevice  subsystem_name    <-- two tabs

1000  Broadcom / LSI
    0001  53c810
        1000 1000  LSI53C810AE PCI to SCSI I/O Processor
    0002  53c820
    0014  MegaRAID Tri-Mode SAS3516
        1000 9460  MegaRAID 9460-16i
        1000 9480  MegaRAID 9480-8i8e
        1000 9481  MegaRAID 9480-8e
        1028 1f3a  PERC H745 Adapter
        1028 1f3b  PERC H745 Front
        1028 1fd4  PERC H745P MX
        1137 020e  UCSC-RAID-M5 12G Modular RAID Controller
        1d49 0602  ThinkSystem RAID 930-16i 4GB Flash PCIe 12Gb Adapter
        1d49 0604  ThinkSystem RAID 930-8e 4GB Flash PCIe 12Gb Adapter
        1d49 0607  ThinkSystem RAID 930-16i 8GB Flash PCIe 12Gb Adapter
        8086 352d  Integrated RAID Module RMSP3AD160F
        8086 9460  RAID Controller RSP3TD160F
        8086 9480  RAID Controller RSP3MD088F

1d49  Lenovo
1d4c  Diamanti, Inc.


Read More

dash 和 bash


dash 和 bash


Read More

linux系统主机通过二维码与手机传递简单信息的操作方法


linux系统主机通过二维码与手机传递简单信息的操作方法。

1:在linux系统下安装二维码生成工具qrencode

2:使用工具生成二维码 qrencode -o t1006.png 12345678

3:在linux系统下,在图形系统下打开文件t1006.png

4: 使用手机对主机二维码进行扫码,并设别为文字。

 

通过这种方法,文字从主机被传递复制到了手机上面。


Read More

数字类型的格式化字符串format string for digit


%d--> for int

%u--> for unsigned int

%ld--> for long int or long

%lu--> for unsigned long int or long unsigned int or unsigned long

%lld--> for long long int or long long

%llu--> for unsigned long long int or unsigned long long


Read More

SGPIO简易理解入门


SGPIO(Serial GPIO)要从关键字上理解,分成两个关键字Serial和GPIO。

Serial是一组GPIO串联在一起。

GPIO,是单个BIT表示GPIO的拉高拉低,GPIO不只是拉高拉低两种形态,

可能是一会拉高一会拉低,以一定的闪烁,即为SGPIO的pattern。


Read More


© 2008-2022 CunYouLu存有录博客 村友录 存游录 鲁ICP备08005943号