1、普通squashfs文件解压缩及查看 (1) 可使用unsuqashfs命令直接解压缩。 [root@localhost squashfs]# unsquashfs squashfs.img (2)也可mount到临时目录 [root@localhost squashfs]# mount -o loop squashfs.img -t squashfs temp/ 2、XZ算法压缩后的squashfs.img解压缩与查看 下载Fedora 15 Live CD后,尝试解压缩ISO中的squashfs.img文件,发现无法mount,也无法通过unsquashfs命令解压缩。提示“Filesystem uses xz compression, this is unsupported by this version”。但下载到的最新squashfs 4.2版本,提示XZ压缩算法的。 [root@localhost ~]# mount -o loop /boot/Fedora-15-x86_64-Live-Desktop.iso /mnt/ [root@localhost ~]# ls /mnt/ EFI GPL isolinux LiveOS [root@localhost ~]# cd /mnt/LiveOS/ […]
READ MORE »Linux驱动报错“Sense Key”和“ASC and ASCQ”含义
Sense Keys Definitions 0x0 No sense 0x1 Recovered Error 0x2 Not Ready 0x3 Medium Error 0x4 Hardware Error 0x5 Illegal Request 0x6 Unit Attention 0x7 Data Protect 0x9 Firmware Error 0xB Aborted Command 0xC Equal 0xD Volume Overflow 0xE Miscompare ASC and ASCQ Message Meanings ASC ASCQ 0x00 0x00 “No Additional Sense Information” 0x00 0x06 […]
READ MORE »Linux内核加载mptsas驱动栈信息
内核启动时,加载基于LSISAS1068E控制器mptsas动栈信息,对了解驱动有帮助。该内核栈信息基于2.6.32-71.el6内核。 scsi0 : ioc0: LSISAS1068E B3, FwRev=011a0000h, Ports=1, MaxQ=266, IRQ=32 **************************************** tie the class to the device device: ‘host0’: device_add Pid: 419, comm: modprobe Not tainted 2.6.32-71.el6.debug #7 Call Trace: [<ffffffff8132bf53>] device_add+0x5b3/0x690 [<ffffffff813434e6>] scsi_add_host_with_dma+0xc6/0x240 [<ffffffffa0048b6c>] mptsas_probe+0x37c/0x510 [mptsas] [<ffffffff812765c7>] local_pci_probe+0x17/0x20 [<ffffffff812777b1>] pci_device_probe+0x101/0x120 [<ffffffff8132ec92>] ? driver_sysfs_add+0x62/0x90 [<ffffffff8132ee30>] driver_probe_device+0xa0/0x2a0 [<ffffffff8132f0db>] __driver_attach+0xab/0xb0 [<ffffffff8132f030>] ? __driver_attach+0x0/0xb0 [<ffffffff8132e094>] bus_for_each_dev+0x64/0x90 [<ffffffff8132ebce>] driver_attach+0x1e/0x20 […]
READ MORE »Linux内核启动设备加载栈信息
内核启动时,加载设备栈信息,对了解驱动有帮助。该内核栈信息基于2.6.32-71.el6内核。 **************************************** tie the class to the device device: ‘tty35’: device_add Pid: 1, comm: swapper Not tainted 2.6.32-71.el6.debug #7 Call Trace: [<ffffffff8132bf53>] device_add+0x5b3/0x690 [<ffffffff8133519b>] ? pm_runtime_init+0xcb/0xe0 [<ffffffff8132c04e>] device_register+0x1e/0x30 [<ffffffff8132c278>] device_create_vargs+0x108/0x180 [<ffffffff8132c321>] device_create+0x31/0x40 [<ffffffff812f39ae>] tty_register_device+0x9e/0x140 [<ffffffff8116ff10>] ? exact_lock+0x0/0x20 [<ffffffff8116fd20>] ? exact_match+0x0/0x10 [<ffffffff812f3b5d>] tty_register_driver+0x10d/0x230 [<ffffffff818f5400>] ? tty_init+0x0/0xfa [<ffffffff818f5cd7>] vty_init+0x15d/0x17d [<ffffffff818f54f6>] tty_init+0xf6/0xfa [<ffffffff8100a04c>] do_one_initcall+0x3c/0x1d0 [<ffffffff818c1839>] kernel_init+0x252/0x2a8 [<ffffffff810141ca>] child_rip+0xa/0x20 […]
READ MORE »RHEL6系统中fdisk盘符乱序原因
1、问题现象 在12盘服务器中,RAID1应该是sda,前面2块盘做了RAID1。安装RHEL6 x86_64系统,启动后发现通过fdisk查看到的盘符不是顺序的,而是乱序。 [root@localhost ~]# uname -a Linux localhost.localdomain 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.0 (Santiago) [root@localhost ~]# (1)通过df –h或者fdisk这些需要使用驱动的工具看到的磁盘顺序是乱的,但lsscsi这些工具看底层的顺序是没问题的 root@r05d11019.yh.aliyun.com # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 145G 1.7G 136G 2% […]
READ MORE »[转]DDR3 Config Recommendations
1、DDR3内存介绍 Memory technology cheat sheet Memory Technology Comparison DDR3 DIMM population rules DDR3 SDRAM DIMM Introduction Memory Ranking Considerations Customer choice with DDR3 2、DDR3内存配置优化 Optimizing for Capacity Optimizing for Performance Optimizing for Performance: Latency Optimizing for Performance: Throughput 点击下载
READ MORE »Linux内核双链表
1 定义 双链表的定义在文件<include/linux/list.h>中。 00019: struct list_head{ 00020: structlist_head*next,*prev; 00021: };
READ MORE »Linux内核双链表语句list_entry(ptr, type, member)理解
list_entry(ptr, type, member)语句理解 list_entry(ptr, type, member)语句定义在文件include/linux/list.h中。 00342: /** 00343: *list_entry-getthestructforthisentry 00344: *@ptr:the&structlist_headpointer. 00345: *@type:thetypeofthestructthisisembeddedin. 00346: *@member:thenameofthelist_structwithinthestruct. 00347: */ 00348: #definelist_entry(ptr, type, member)\ 00349: container_of(ptr,type,member) 00350: 而container_of()宏定义在文件include/linux/kernel.h。 00670: /** 00671: *container_of-castamemberofastructureouttothecontainingstructure 00672: *@ptr:thepointertothemember. 00673: *@type:thetypeofthecontainerstructthisisembeddedin. 00674: *@member:thenameofthememberwithinthestruct. 00675: * 00676: */ 00677: #definecontainer_of(ptr, type, member)({ \ 00678: consttypeof(((type*)0)–>member)*__mptr=(ptr); \ 00679: (type*)((char*)__mptr–offsetof(type,member));}) […]
READ MORE »LSISAS1068E Linux驱动扫描硬盘顺序问题
问题现象 在使用LSISAS1068E的服务器上(驱动名称为mptsas),为了业务运行可靠性,将第1、2块盘做RAID1,并且希望把Linux系统安装在RAID1,且硬盘盘符为/dev/sda。
READ MORE »Linux内存管理伙伴算法
伙伴算法 Linux内核内存管理的任务包括: 遵从CPU的MMU(Memory Management Unit)机制 合理、有效、快速地管理内存 实现内存保护机制 实现虚拟内存 共享 重定位
READ MORE »