双硬盘Win7装Ubuntu 12.04经验并解决无线网络不能使用问题

今天急急忙忙下装了 Ubuntu 12.04(双系统 Win7 Ultimate  64bit + Ubuntu).

先是Ubuntu安装过程把Win7下的盘识别的乱七八糟的,后来才发现是主分区已经没空间给Ubuntu了(剩下一个140G的逻辑分区给它[win7下有先删除了],所以ubuntu下认不出来,因为人家要的是主分区的空闲空间,不是逻辑分区的)

PS:我的是本本双硬盘 128G  SSD + 750 G机械硬盘 ,Win 7下原先分了 C(SSD主分区, 128G)、D(机械硬盘逻辑分区)、E(机械硬盘逻辑分区)、F(机械硬盘逻辑分区)四个盘。

 后面把F(140G)拿出来装Ubuntu,一开始是直接在Computer -> Manage -> Disk Managment中直接Delete Volume,是free出来了,但它是logic partion。

所以后面用PE下的DiskGenius把F盘转换为 主分区, 接着再进入Win7,同样在Disk Management中右键F盘Delte Volume,这回的空间就变成了unallocated space (140G)。

就这样Ubuntu安装的过程中能正常识别了:

/dev/sda

  /dev/sda4  ....      <==  D

  /dev/sda5  ....      <==  E

 /dev/sda2  ...      <==  F

上面的sda2就是我的F盘了,750G机械硬盘那是全作逻辑分区,不知道为什么sda0/sda1被还会被占用。

不过没关系,不影响安装。接下去就很顺利了......  直到系统安装成功

sudo gedit /etc/default/grub

改了默认引导项和超时时间

GRUB_DEFAULTTT=4

GRUB_..._TIMEOUT=5

补充:Win7下使用 EasyBCD 2.2修改引导项进入Ubuntu的安装

注意一个小问题,如果没法正确引导进入Ubuntu的安装,出现:

ERROR XX: File Not Found

看一下menu.lst中是不是为vmlinuz,若是,则对应文件名应从vmlinuz.efi重命名为vmlinuz (即去掉后缀名),就可以找到文件了,功引导并安装。


参考:http://www.linuxidc.com/Linux/2013-04/83479.htm

  

再来就发现无线网卡一直无法使用的问题了。
重装了几次无线网卡驱动之后才知道不是驱动的事情~
用 rfkill unblock all之后:
代码:
0: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no
1: acer-wireless: Wireless LAN
   Soft blocked: yes
   Hard blocked: no

我在另一个terminal里开着:rfkill event实时监控这状态,结果发现:
一运行 rfkill unblock all,先是把acer-wireless的 soft block 改为no了,

紧接着就有被改回成yes了~


后来在网上找了好久终于找到解决方法

步骤1:
sudo rmmod acer-wmi

这样就可以打开无线了!无线信号也会出来 ,但是有一个问题就是,只要机器一重启,那个文件又被修改回来了!

文件目录为:/Prco(貌似是)/Modules 文件!

步骤2:

blacklist acer-wmi
这个命令加入到/etc/modprobe.d/blacklist.conf文件最后即可。


总结本次问题主要使用的一些命令如下:

lspci

Linux 主机的硬件配备
lspci 找到的是目前主机上面的硬件配备
[root@www ~]# lspci [-vvn]
选项与参数:
-v     :显示更多的 PCI 接口装置的详细信息
-vv :比 -v 还要更详细的信息
-n     :直接观察 PCI 的 ID 而不是厂商名称

查阅您系统内的 PCI 装置:
[root@www ~]# lspci
#不必加上任何选项,就能够显示出目前的硬件配备为何
Host bridge:                        <==主板芯片
VGA compatible controller    <==显卡
Audio device                            <==音频设备
PCI bridge                                <==接口插槽
USB Controller                        <==USB控制器
ISA bridge                               
IDE interface                           
SMBus                                      
Ethernet controller                <==网卡

04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.

查看一般详细信息
[root@www ~]# lspci -v
查看网卡详细信息:
[root@www ~]# lspci -s 04:00.0 -vv
-s :后面接的是每个设备的总线、插槽与相关函数功能

若主机有识别到相关网卡型号信息,则说明网卡驱动没有问题,如

03:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
    Subsystem: AzureWave Device 1186
    Flags: bus master, fast devsel, latency 0, IRQ 18
    Memory at f7900000 (64-bit, non-prefetchable) [size=512K]
    Expansion ROM at f7980000 [disabled] [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: ath9k
    Kernel modules: ath9k

04:00.0 Ethernet controller: Atheros Communications Inc. Device 10a1 (rev 10)
    Subsystem: Atheros Communications Inc. Device 1091
    Flags: bus master, fast devsel, latency 0, IRQ 10
    Memory at f7800000 (64-bit, non-prefetchable) [size=256K]
    I/O ports at d000 [size=128]
    Capabilities: <access denied>


rfkill list

 RFKill

Many computer systems contain radio transmitters, including Wi-Fi, Bluetooth, and 3G devices. These devices consume power, which is wasted when the device is not in use.
RFKill is a subsystem in the Linux kernel that provides an interface through which radio transmitters in a computer system can be queried, activated, and deactivated. When transmitters are deactivated, they can be placed in a state where software can reactive them (a  soft block) or where software cannot reactive them (a  hard block).
The RFKill core provides the application programming interface (API) for the subsystem. Kernel drivers that have been designed to support RFkill use this API to register with the kernel, and include methods for enabling and disabling the device. Additionally, the RFKill core provides notifications that user applications can interpret and ways for user applications to query transmitter states.
The RFKill interface is located at  /dev/rfkill, which contains the current state of all radio transmitters on the system. Each device has its current RFKill state registered in  sysfs. Additionally, RFKill issues  uevents for each change of state in an RFKill-enabled device.
Rfkill is a command-line tool with which you can query and change RFKill-enabled devices on the system. To obtain the tool, install the  rfkill package.
Use the command  rfkill list to obtain a list of devices, each of which has an  index number associated with it, starting at  0. You can use this index number to tell  rfkill to block or unblock a device, for example:
rfkill block 0
blocks the first RFKill-enabled device on the system.
You can also use  rfkill to block certain categories of devices, or all RFKill-enabled devices. For example:
rfkill block wifi
blocks all Wi-Fi devices on the system. To block all RFKill-enabled devices, run:
rfkill block all
To unblock devices, run  rfkill unblock instead of  rfkill block. To obtain a full list of device categories that rfkill can block, run  rfkill help

rmmod 

  功能说明:删除模块。

    语  法:rmmod [-as][模块名称...]

    补充说明:执行rmmod指令,可删除不需要的模块。Linux操作系统的核心具有模块化的特性,应此在编译核心时,务须把全部的功能都放如核心。你可以将这些功能编译成一个个单独的模块,待有需要时再分别载入它们。

    参  数:
  
    -a  删除所有目前不需要的模块。 

    -s  把信息输出至syslog常驻服务,而非终端机界面。


/etc/modprobe.d/blacklist.conf

用于屏蔽相应的内核模块,blacklist使其不加载


参考链接:http://forum.ubuntu.org.cn/viewtopic.php?t=328097

(PS:很多问题ubuntu官网论坛上有解决方法,多注意)

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值