Arch (or Linux) and hardware...

Hi all,
Where's a good place to learn about how linux interacts with hardware?
I want to switch to Arch from Fedora, but I know that I'll get stuck when it comes to stuff like lsmod, modprobe, udev, dev-fs and other such hardware proggies/concepts.
My knowledge in that area's virtually zilch.  So far I've stuck with Fedora coz it's the only distro that's managed to recognise my (on-board) soundcard and (on-board) network adapter.  Now, I wanna get my hands dirty :-)

Short summary kind of thing:
-- Modules --
modprobe <module>
finds the module and calls insmod to load the module. In general you never have to call insmod yourself but can just use modprobe. It's config file is /etc/modprobe.conf, there you can add aliasses (more on that later) and module options.
lsmod
lists all loaded modules.
modinfo <module>
gives some info about a module.
Now's the kernel support autoloading of modules, meaning that if the kernel knows what it needs it calls modprobe to load it. Sometimes it doesn't know the exact module, but only other info, an alias. Then it calls modprobe with the alias and if it can be resolved with modprobe.conf the correct module is loaded.
Autoloading happens more or less only for modules which are loaded when needed. In general that means only modules which are needed by another (already or yet to be loaded) module. Good examples are the netfilter/iptables modules which are loaded when they're needed for certain iptable rules (e.g. ip_conntrack, iptable_nat).
-- Hotplug --
Another, kind of autoloading implemented is hotplug. When the kernel detects new hardware, it spits out a hotplug event by calling /sbin/hotplug and giving it enough info so that it can find the correct module needed for that hardware.
So if you plug in a usb stick hotplug kicks in and loads the appropriate modules. The user space hotplug program (just a shellscript now, but that is changing) also calls any user scripts, filtered by type of event. That gives the opportunity to for instance mount the usb stick automatically somewhere.
This is all nice and well, but most hardware is there at startup and doesn't generate a hotplug event. So to detect all already present hardware you can execute the hotplug coldplug script to scan /sys for all hardware and load all needed modules. In arch you do this by adding hotplug to DAEMONS in rc.conf.
Of course you don't have to use hotplug, but if you want everything to "just work" then you'll probably use it. That's what most distros do. In Arch it's an option. If you know all the hardware you're going to use beforehand then you can simply add it to MODULES in rc.conf and don't have hotplug installed. You can also have hotplug installed but not run the coldplug script at startup so that if you later on plug something in it will be detected. Or you can let hotplug load almost all modules needed and leave your MODULES more or less empty.
-- /dev --
A device file is a special kind of file (like pipes/sockets/symlinks are kind of files), with the only properties that it has a major number, a minor number, and a name. It also can be a character device or a block device. A character device is anything where you read or write a stream of data, like /dev/null or /dev/mouse. A block device is anything with a given size where you can randomly read from, like /dev/hda, /dev/fb0 (framebuffer device). Everything you do on a device file is handled by the driver which handles the device with that major/minor number pair. Such driver is often compiled as a module.
The modules are automatically loaded, but one thing is missing: The device files in /dev. Simplest is to just add all possible device files to /dev. Although this sort of works, it's ugly and not a long term solution as devices get more and more random major/minor numbers. Nice that the device file is there already when you plugged in your usb stick, but which one from the hundreds is it?
The first solution to this was devfs. It's in the kernel with a userspace devfsd daemon helping it to automatically created the /dev files when needed, thus only making the files which are needed. Now /dev hadn't that awfully many files anymore, and it was simpler to find things.
Devfs had some problems though, mostly in the way it was implemented.  Although in practice it worked fine most of the time, internally it wasn't pretty and many kernel developers weren't happy with it. Though when the original maintainer sort of disappeared leaving it unmaintained and no one else stepped up, it became obsolete, as udev was there almost.
With the 2.6 kernel came /sys, a virtual filesystem which provides a lot of hardware info. This together with hotplug gives enough information to know what device file to make, if any, when a module is loaded. That's what udev does: making the needed device files with the help of hotplug and /sys.
The main reason why udev was made is to have a consistent /dev, that is, if you plug in your usb stick in port 1 it will come up like e.g. /dev/usbstick, but also if you stick it in another usb port. That is something devfs couldn't do. The next little step was to make udev so that it can replace devfs altogether and handle all device files.
As udev is totally in userspace, while devfs was unmaintained in the kernel, being a slight burden there, it was no surprise they made devfs obsolete and deemed udev it's successor. The topic udev versus devfs is politically touchy, as they're different and do things differently, not to mention that devfs was obsoleted before udev was ready for primetime (not all drivers supported /sys and hotplug yet, and udev only supports those).
Devfs brought with it also another naming scheme for /dev. Historically there were more or less no directories in /dev and all files were just dumped into /dev. Devfs made a very hierarchical structure, with files as /udev/discs/disc0/part1 instead of /dev/hda1. Some love it, some hate it. Personally I think there should be no more than one depth of subdirs, something like /dev/hda/1. With the default udev config file of Arch you get the same naming as you would get with devfs, as that was one of the main points of udev: letting the user choose the device names. With devfs + a daemon you could only choose to make symlinks.
If you know beforehand what hardware you have, and don't plug in all kind of things like usb sticks or cameras then you can use a static /dev with only the files you need. That's what I use. I also let udev handle my /udev dir, to see how well it works.
Hopefully things became more instead of less clear now. ;-)

Similar Messages

  • LabVIEW for Linux and hardware registers

    Hi all,
    I'm considering using LabVIEW for Linux in an upcoming project based around
    PC/104. As the only way to communicate to the PC/104 module inputs is via
    hardware addressing, I need to know whether it is possible to directly
    address hardware in LabVIEW for Linux. If not can you suggest a way of doing
    this? Also does LabVIEW for Linux and say RedHat make for a more stable
    system than LabVIEW for Windows and Windows 2000/XP?
    Thanks in advance.
    Regards,
    Shane Broadbent
    - remove the 'nospam' to reply by e-mail

    Hi Shane.
    I know that you can address hardware in Labview for Linux: I do it with an NI6071e,k 6602 and 6503. I don't know specifically about the PC/104, but I imagine it can also be done.
    Generally you can talk to the hardware registers using code interface nodes (CINs) in Labview. In the CIN you just use a 'write()' command. I don't think there's anything more to it than that. Creating the CINs is no trouble at all.
    Don't know about stability of Labview with Linux compared to windows, all though others tell me stability is pretty much the same.
    hope this helps and good luck!

  • Dual 1.25 G4 won't boot OS X anymore, boots linux and hardware test

    Dual 1.25 MDD G4 that I've had for 5 years. 1.25 G RAM, 300 Gb HD.
    No hardware changes to this machine for several years. Recently it locked up
    and I rebooted it - I get a light gray screen with an Apple logo and nothing else
    happens.
    I cannot boot OS X from CD/DVD, but I can boot the hardware test and run all the tests (all of them pass). I can also boot from a Linux CD.
    I've tried various startup key combinations (cmd-opt-P-R, cmd-opt-N-V, etc.) but
    I still cannot boot into OS X from either CD/DVD or from the HD.
    I tried Techtool deluxe (from old Applecare) and that won't boot the machine since it too is OS X.
    Any ideas on what to try next?
    Thanks,
    -Mark

    Dual 1.25 MDD G4 that I've had for 5 years. 1.25 G RAM, 300 Gb HD.
    No hardware changes to this machine for several years. Recently it locked up
    and I rebooted it - I get a light gray screen with an Apple logo and nothing else
    happens.
    I cannot boot OS X from CD/DVD, but I can boot the hardware test and run all the tests (all of them pass). I can also boot from a Linux CD.
    I've tried various startup key combinations (cmd-opt-P-R, cmd-opt-N-V, etc.) but
    I still cannot boot into OS X from either CD/DVD or from the HD.
    I tried Techtool deluxe (from old Applecare) and that won't boot the machine since it too is OS X.
    Any ideas on what to try next?
    Thanks,
    -Mark

  • Have Installed Arch Linux and Xmonad on 2013 15" MacBook Pro Retina

    I just recieved the latest stunning MacBook Pro Retina 15" (ME665) released in Feb 2013, couldn't wait to install the Arch Linux 2013.02.01 on it, dual boot with Mac OSX.
    I'm impressed by the performance of this device after working with the combo of Arch Linux and Xmonad for several days, everything works out of the box, including touchpad, audio, video, wireless network, bluetooth, etc. Even the apperance of most apps are compatible with the high resolution of Retina display.
    Another important thing is the battery life, 5 hours! Program and compile, listen music, download AOSP through Wi-Fi, watch YouTube videos with Flash hardware accelaration on.
    For the installtion details, see my long blog post at http://vec.io/posts/use-arch-linux-and- … na-display
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by vecio (2013-02-28 02:22:38)

    Can you tell me what your /sys/class/backlight/gmux_backlight/brightness and max_brightness values are? This has not worked out of the box for me.

  • Share files between Arch Linux and XP Home

    Hi, I have an Arch Linux desktop and a XP Home Laptop both connected to a Billion 7401 ADSL Router to get to the internet. If I am using any computer sometimes I have a need to use files from the other one, and from an external HDD connected to the XP laptop. I have been googling for the last 3 weeks but could not find a concrete solution to this issue, maybe because I don't understand much about networking or p2p, and samba. Looks like I have to spend more money on either another computer to be setup as a server or on a router or hub or switch? But I thought my Billion Router is already a router? I wonder if you can please help me to solve this problem or point me to a good link? Thanks a lot.

    SSHFS is another more Linux native option for sharing files (and it can be compatible with XP too using special programs).
    http://en.wikipedia.org/wiki/SSHFS
    http://wiki.archlinux.org/index.php/Sshfs
    As I understand it XP Home uses simple file sharing which can be really insecure depending on your needs.  Once when I ran a computer with Linux and was needing to set up a samba share I discovered massive issues since (at the time) I was connecting regularly over a shared wireless network among untrusted persons.  I ended up looking into using SSH tunneling to overcome the issues associated with XP Home's Simple File sharing and that is when I came across SSHFS.
    Whatever you do make sure to read this about XP Home's "Simple Filesharing"
    http://www.centerlineit.com/index.php?v … q&Itemid=9
    It's important you understand it.
    Last edited by davidm (2010-04-12 04:01:34)

  • [SOLVED]Arch Linux, and Windows 8.1 Dual Boot issue

    Hi guys. I recently bought a new laptop, and decided to run Arch Linux and Windows 8.1. I installed Windows 8.1 first as recommended by the beginners guide, and then installed Arch Linux. I made sure UEFI was enabled in my BIOS, and made sure everything was on a GPT partition. The install itself went fine. My laptop loads grub, and Arch Linux shows up and boots, but there is no option to boot into Windows 8.1. The only way I can boot into Windows 8.1 is by accessing my motherboard, and choosing to launch the windows boot manager instead of the grub launcher. How can I get Windows 8.1 to show up in grub? Thanks in advance guys.
    Last edited by Painguy (2014-08-20 20:19:37)

    Painguy wrote:
    -----------Edit------------------
    Yeah just ran this after installing os prober
    grub-mkconfig -o /boot/grub/grub.cfg
    and it works now. Sorry for the crazy posts guys. Thanks for the suggestions and help.
    Yeah I'm sure I'm doing something wrong lol. I did not install OS-Prober. I think that's where the issue is. I'm missing the menu entry in grub.cfg right? Do I just run os prober or do I have to manually edit grub.cfg.
    If that's not the case then here is what I did up until now. What I did was start with a blank SSD drive. I used cgdisk to make the disk use a GPT partitioning scheme. I installed windows 8.1 and checked in windows to make sure it boots into UEFI-GPT mode and it does.  I then installed arch linux using the beginners guide. I made sure to use cgdisk to create any extra partitions, and installed GRUB to the efi partition that windows had created ( I did not format this partition ). I then finished the installation and rebooted, and Grub only shows arch linux. I don't think I'm dealing with anything MBR related. I made sure I used the GPT partitioning scheme....i think lol.
    All you need to do is run os-prober then run grub-mkconfig. It should pick up Windows at that point.

  • Arch Linux and ARM

    We have been talking to the Arch Linux ARM team and have decided to refine our policy around that architecture.
    The Other Architectures forum has been moved into the Technical Issues and Asssistance category, and the ARM sticky has been updated with clearer direction about our policy.
    If you are an ARM user, please take a couple of minutes to familiarize yourself with the updated policy. Both the Arch mod team and the ALARM team feel that this is the best way to ensure that assistance is sought from the community that is best placed to help.

    Whoa, everyone's reading far too much into what I said.  I just meant that I got it installed under the chroot in android following the steps that were on the plugapps site; the actual page doesn't seem to exist anymore, but I found similar instructions here.  I meant that I thought it was cool that I had a functioning build of pacman running locally on the device.  Didn't mean to imply that it was a native install.
    Although I understand the reaction as I'm watching the developments in this thread with just as much anticipation.
    Last edited by jb (2011-06-30 18:00:45)

  • Incorporating both Arch Linux and a package repository onto one DVD.

    Dear Arch Linux community,
    I would like to tell you a little background information about myself before I start to talk about my actual subject. I know that this part of my message does not belong here, but it is my own ritual to do it like this in my first message in every community. I hope I can make friends with people here and try not to harm this community in any way. Thank you for reading this.
    I am a 16-year-old male student from Finland and addicted to GNU/Linux and freeware / open source software. My previous experience with GNU/Linux is fairly large; from thin client Debian GNU/Linux administrator to kernel hacker and software developer. My delight is music, particularly writing and composing my own music tracks which vary from classic chiptunes to acid trance and dance beats. Arch Linux seems to be a great GNU/Linux operating system for me, because I am looking for a GNU/Linux distribution that does not focus on desktop, but rather on simplicity and lightweight solutions. I also do not fear "bleeding edge" software which is a positive point for Arch Linux compared to Debian GNU/Linux. As you can probably notice I have been using Debian GNU/Linux before I considered Arch Linux. However now I am here hoping for a totally new experience from Arch Linux.
    Enough with my foreword, I would like to now go back to the actual subject. Usually I use DVD media for GNU/Linux images to have both the installer for the GNU/Linux distribution and the main package repository to make installations faster and to have the possibility for an offline installation. As I see, Arch Linux provides only CD images which are approximately 160MB in size, making me to think about incorporating Arch Linux's "Core" and "Extra" package repositories to fill up the remaining 4GB on the DVD. If the "Core" package repository is already included in the Arch Linux CD image, please forgive my lack of information as this is the first time I have ever entered to the world of Arch Linux.
    My question is as follows: Is it possible to incorporate Arch Linux and a package repository onto one DVD while retaining the ability to install Arch Linux from that DVD? If positive, how should I go on to do it?
    Thank you in advance!
    Last edited by Amplify.EXE (2007-11-09 20:53:44)

    No niin, tervetuloa arch-mailmaan.
    Ok, I better stop at one sentence before someone gets mad at me :roll:.
    To answer your question, yes. It is quite possible to put something like that together, heck I think someone suggested we should distribute those some time, but we decided not to (don't quote me, I'm too lazy to read the archives right now) since in most cases pacman will get the job done will job done with less bandwidth waste, and distributing huge snapshots isn't really too conducive to the whole rolling-release thing.
    You might want to check out archiso [1], the install scripts [2], and one of my sample archiso configurations [3] that effectively creates an install CD. Now, keep in mind that archiso isn't the *current* way installers are created, but I think it's much more straightforward to work with than what we're using right now. That said, we currently use archboot to create the CDs, so that may be worth taking a look at as well. There is also a really old installer remastering wiki article [4], though not terribly relevant, you could still use a similar technique to pull apart one of our recent install iso's and remaster it with whatever packages you want. Anyhow, if you'd like help with this, I'd be more than happy to give you a hand (I need some more test-cases for archiso...), or if you look at it and go "gee, this is dumb", don't be afraid to send patches. Just get in touch with me through email, jabber, irc, or whatever.
    Good luck
    [1] http://projects.archlinux.org/git/?p=ar … a=summary)
    [2] http://projects.archlinux.org/git/?p=in … ;a=summary
    [3] http://code.neotuli.net/gitweb/?p=archi … stall-conf
    [4] http://wiki.archlinux.org/index.php/Rem … nstall_ISO

  • Tutorial - How to triple boot OSX, Linux and Windows 8.1 with a shared Data Partition without any third party Win / OSX softwares

    This is not a question, but rather a personal guide that has proved to be running successfully.
    I would like to thank numerous sources, including Christopher Murphy's suggestions at:
    Re: Repairing Boot Camp after creating new partition
    Before proceeding, there are certain concepts needs to know:
    Why Boot Camp does NOT allow further partitioning of drives after Windows has installed?
    Answer: Because the way Apple configures the Mac to be recognized as non UEFI capable system on Windows.
    Quote from Christopher Murphy based on the above line:
    However, Windows on Macs right now use CSM-BIOS mode in Mac firmware that presents BIOS to Windows rather than EFI. Windows thinks it's on a BIOS computer, and therefore mandates the use of MBR for boot disks, rather than GPT. So that's why we have this hybrid MBR+GPT approach on Mac with Windows on it. You inherit the limitations of MBR, which is four primary partitions.
    So what does it means?
    It means that OSX + EFI + Recovery HD + Boot Camp partition = 4 primary partitions and thus any attempt to modify the disk will render booting issues of either system.
    For more info on GPT (GUID Partition Table disks VS Master Boot Record or MBR in short, you may visit: http://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.a spx)
    So, how to overcome it?
    The general guideline is to install ALL GPT ready OS first then create a Data partition, before installing Windows (Which is again, NOT supported GPT due to EFI configuration by Apple where end-users are not able to modify it).
    Interestingly, since Mac Pro 2013 Late supports only Windows 8 and above, thus it is not known if this CSM-BIOS applies to it or not.
    Do take note that GPT disks in Windows can only be booted when the system meets the 2 requirements:
    http://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.a spx#gpt_faq_win7_boot
    1) Windows x64 version (Which is a must for newer Macs. If you cannot go to Boot Camp 5, then you need Windows 7 x86 or 32bit version)
    2) UEFI system. However, Windows sees all Macs (With the possibility of Mac Pro 2013 Late is an exception. To be determined) as BIOS, or rather NON-UEFI system.
    In short, booting on GPT disks is not possible for Mac in Windows.
    Summary,
    It is tested that a combination of the following will not work:
    - OSX + Windows + Linux
    - Windows + OSX + Linux
    - Windows + Linux + OSX
    Usually it can create the system un-bootable or OSX refused to install due to the system does not recognize such partitions and / or Disk Utility refused to format a free space. An example screen-shot is provided below:
    The error message is shown as
    Title: "Failed to erase volume" Message: "Failed to wipe volume, as an error occurred: MediaKit has reported that the device does not have enough free space to execute the requested operations."
    The second thing is about the preparations we need.
    1) 1X Windows 7 or 8 DVD or USB thumbdrive
    1A) If you uses a DVD to install, you will need another thumbdrive to load the BootCamp drivers for Windows as well as may requires an external DVD drive for newer Macs
    2) 1X Linux DVD of your choice. Personally I choose Fedora 20.
    So ready? Let's go.
    1. Using Disk Utility, shrink the OSX's partition size to what is needed. For me, I give OSX 150GB. Do NOT create any new partition.
    Disk Utility should see something like below whereby only OSX partition is left with desired disk space. The remaining space are to be unused disk space for the moment.
    Note: Click on the top most item that should start with the size of your HDD / SSD. Then clicked on "Partition" and specify the desired OSX size. Hit "Apply" after that.
    2: Download Boot Camp drivers only via Boot Camp Assistant. The USB thumbdrive shall be used later after Linux's installation.
    Boot Camp Assistant should see this:
    I have only selected "Download latest Windows Support Files from Apple"
    3. Insert Linux DVD, reboot Mac into EFI mode (The left most first "EFI mode").
    Note 1: Before rebooting, please plugged in an Ethernet adapter because Wi-Fi drivers is not installed.
    Note 2: For Thunderbolt adapters, it must be plugged in before reboot as hot-swapping is not supported under Linux. More on the tips at the end of this article.
    Note 3: Press and hold "Option" after the screen turns black. Release Option key after you see the image as below:

    For the unfortunate part that did not make it on time to edit the images:
    9. Install the Windows Support software from your CD/USB drive to gain full functionality of your computer. Reboot and go to Windows again.
    Note 1: You may choose to eject disc at this point of time. For Apple SuperDrive users, you will need to wait until the drivers (i.e. Boot Camp support files) is installed and rebooted before ejecting is reasonably possible (As I failed to figured out how to right click without the drivers)
    Note 2: Unlike Windows 7 on KBase article TS4599 Keyboard/trackpad inoperative, black screen, or alert messages when installing Windows 7, USB stick can be plugged in after the Windows installation is done. This is because Windows 7 (And probably Windows 7 with SP1 DVD) does not have a built in USB 3 drivers when it was released back in 2009 where USB3 has not arrived then.
    Note 3: Due to TPM, Bitlocker is not supported without the use of thumbdrives.
    10. Using Disk Management to determine the given drive letter for the DATA partition (DO NOT DELETE and RECREATE partition or else you can goodbye to booting Linux and OSX). Disk Management will not allow you to format it as exFAT / FAT32 in graphical way.
    Note: You may remove or modify some of the disk letters in Disk Management. However, do NOT remove / modfify the drive letter for the partition with 200MB size in HFS. This is because it will disallow booting of Linux and neither could Windows nor OSX can do anything EXCEPT to reinstall Linux only.
    11. Open Command Prompt in Administrator Mode (Important!!), and key in the following command:
    format F: /FS:exFAT
    Give this volume a label after it has successfully formatted before hitting "Enter" again.
    Note: Mine Data partition was assigned as F drive. Please make necessary adjustment to "F:" should your Data partition is assigned to other letters.
    12. After that, Setup your Data partition structure as you like.
    Tip: Minimally create the important folders such as:
    - Music
    - Documents
    - Movie (Videos)
    - Downloads
    - Pictures
    All these folders are commonly used by the 3 OSes. I do NOT recommend changing of /home (OSX and / or Linux) and / or user home directory (Windows) either partially or as a whole.
    This is because of compatibility issue.
    On a side note, iTunes Media Library used in OSX and Windows are NOT able to be use interchangably due to hard-coded path used.
    13. Useful troubleshooting in Fedora / Linux:
    With references to these:
    http://chaidarun.com/fedora-mbp
    http://anderson.the-silvas.com/2014/02/14/fedora-20-on-a-macbook-pro-13-late-201 3-retina-display/
    http://unencumberedbyfacts.com/2013/08/16/linux-on-a-macbook-pro-101/
    I would like to highlight a few important points:
    1) Wi-Fi driver:
    http://rpmfusion.org/Configuration
    Note 1: The sound driver should be installed at Out of Box Experience. However, the Wi-Fi is not.
    Note 2: Install both free and non-free repository. By the way, some other software like VLC can only be found after the Free Repository is installed.
    Search for "akmod-wl" in Gnome-Package-Installer in order to install Wi-Fi drivers
    Note 3: For those who do not have Ethernet adapters and their Mac does NOT have a built-in Ethernet port, it is recommended to get one. This is because Fedora 20 does not have a good support for iPhone USB tethering. Unsure for Andriod / Blackberry / Windows Phone users.
    2) Grub Menu:
    It will show several options to boot into OSX, even of the capability to boot into x86 or x64 mode. However, neither of them is bootable except Linux and the rescue.
    Hence, it is recommended to remove the items by hand in this file:
    /boot/efi/EFI/fedora/grub.cfg
    Command to be used:
    "sudo gedit /boot/efi/EFI/fedora/grub.cfg"
    Parts to be removed:
    - For any extra kernels, delete the target entry by locating the line "menuentry" under "/etc/grub.d/10_linux" sector to one line above the next "menuentry".
    It is recommended to keep one main kernel, and one recovery at the minimal.
    - For other OS, delete all the entry (Since neither it can works) under "/etc/grub.d/30_os-prober" sector without removing the lines starts with ###.
    Auto Mount exFAT partition:
    - After installing extra packages for exFAT support (Since it is not supported by Fedora 20 from a default installation), you may wish to edit "/etc/fstab" in order to mount the exFAT partition during boot time.
    Command to be used:
    "sudo gedit /etc/fstab"
    Add the following line in gedit:
    UUID=702D-912D /run/media/Samuel/DATA                   exfat    defaults        1 2
    Note 1: For DATA partition, OSX & Boot Camp partition, Fedora defaults mounts under: "/run/medua/<Username with case sensitive>/<Partition Label Name>"
    Note 2: UUID is unique ID. You can find out the UUID by:
    Step 1: First determine the DATA partition number:
    "sudo gdisk /dev/sda"
    Step 2: Determine the UUID of this partition number:
    "sudo blkid /dev/sda8"
    Reference 1: http://manpages.courier-mta.org/htmlman5/fstab.5.html
    Reference 2: http://liquidat.wordpress.com/2007/10/15/short-tip-get-uuid-of-hard-disks/
    3) Overheating CPU
    Solution is to issue the following command in Linux terminal: su -c "echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"
    4) System resumes immediately after suspend
    Solution is to issue the following command in Linux terminal: su -c "echo XHC1 > /proc/acpi/wakeup"
    5) What does not works well out of box:
    - Both GNOME and KDE's fonts are too small to be readable for out of box experience. Additional configuration is a need. (Some of the info can be found on "More Tips" later)
    - Thunderbolt hotplugging is NOT supported under Windows and Linux so far. Neither FaceTime HD camera works as well.
    - The red light in Headphone jack is always on. I do not have luck in switching off the light without losing the sound.
    Note 1: It is determined that the module "snd_hda_intel" is used by both cards (HDMI and normal output)
    Note 2: It is also known that blacklisting it can switch off the redlight at the price of muting the system.
    Note: Based on this article, http://support.apple.com/kb/TS1574
    A Mac (Except Mac Pro) needs servicing when there is a red light while the system fails to detect internal speakers. However, this article does NOT applies to this issue.
    5A) More Tips:
    Install gnome-tweak-tool for more customization
    Search for: "gnome-package" to install:
    Install Gnome Package Installer for advanced package repository
    Install Gnome Package Updater for advanced updates to be install (Whereby Fedora's App Store alike might not show the relevant updates)
    14. Verify if disk is still GPT:
    Use Gdisk to determine if the disk is pure GPT:
    http://ubuntuforums.org/showthread.php?t=1742682
    Command: sudo gdisk -l /dev/sda (The entire hard drive)
    You should see the MBR is "Protective" instead of anything else.
    15. Congrats, the system is ready for triple boot. (I forgot to eject my Windows DVD when the photo was taken)
    Note 1: You cannot set the default startup disk in Linux due to the lack of Boot Camp Control Panel in Linux.
    Neither is changing startup disk recommended in Windows due to the inability to display correctly.
    For me, I click "Cancel" whenever I am on this tab (Feel free to make other Boot Camp adjustments in other tabs).
    Only OSX I know that can show the startup disk options correctly.
    Note 2: For some reason, OSX likes to auto mount the EFI partition everytime it boots up. It is not known to have any issue for ejecting other disks or mounting disks via Disk Utility.
    Note 3: It is not determined if any Firmware or System upgrades will cause issues. It is only known that all 3 OS's regular updates should not be an issue.
    System Updates excludes Mac OSX 10.9.3 updates to OSX 10.9.4 type as I had done it on a OSX 10.9.4 Mac or Windows 8.1 to Windows 8.1 Update 1 since my Windows DVD comes with Update 1.
    System Upgrades refers to OSX Mavericks to Yosemite, Fedora 20 to Fedora 21, Windows 8.1 Update 1 to Windows 8.2 / Windows 9 for that matter.
    Note 4: Reset SMC and / or PRAM will NOT affect your ability to boot any of the OS (OSX, Recovery HD, Fedora & Windows 8)
    Yup, that is it!

  • [SOLVED-partly] Linux and no internet connection

    Well, since mid November I have nothing but problems with my Arch Linux machine. I can't get any internet connection on that machine. I have a network at home with 2 windows machines (XP & Vista), a Windows 2003 server running as an Exchange server and DNS server and Domain controller and ps3, xbox 360 and Wii. The two windows machines run on a static IP, the ps3, xbox 360 and Wii run on dhcp. All machines run on LAN through a switch except the Wii it runs on wireless. Now my Arch Linux machine also runs on static IP set up as described in the installation guide via rc.conf, hosts and resolv.conf. As mentioned earlier since mid November I haven't been able to get any internet connection on that machine. I haven't changed anythnig in my setup on the machine or the network. when i start the machine for the first time during a day I actually do the get internet connection and network connection but if I restart then I lose it. I am not able to ping the gateway or the DNS server. I can get interrnet back again I turn off the machine and turn off the motherboard and let the machine cool off for 20 minutes. Then if I turn it on again I have internet again but if i'll have to restart then the problem reappears.
    After two weeks with this issue I decided to get network card but that didn't help either I still had the problem. Then I simply bought a new machine (DELL Studio) and did a fresh installation of Arch and STILL the problem exists and it is driving me FREAKING CRAZY NOW!!! I tried to my machine on dhcp but still the same issue. internet on first boot, reboot no internet or network, shutdown machine and motherboard (unplug machine) --> internet again after waiting 20 minutes. None of my other machines running windows or the consoles have problems getting internet. I've tried to run distros on the machines (Ubuntu Live CD) but I have the same problem. I am very close to going back to windows and I REALLY don't want to (been using Linux since 2003) but this problem here is a show stopper/EPIC FAIL. I am very very happy with Arch Linux and really don't want to change distro either. I need suggestions now on what I can look for in order to find the problem. I've already changed network cards, bought a new machine and even bought new switch because we thought it might be the switch causing the problems (8 port switch) because turning off the switch would give me my internet back. Again it is only my Linux machine that is having the connection problems none of the other machines have those.
    PLEASE HELP!!!
    Kind Regards
    André
    Last edited by fettouhi (2008-12-19 07:27:01)

    Well, I celebrated a bit to fast after 30 minutes or so I lost internet connection but not by restarting. I didn't use the computer for like 30 minutes and when I did tried to open a browser nothing happended. I tried then to ping the gateway and the server but couldn't reach them. So I turned off the computer completely for 20 minutes and then I started again and chenged the DNS address from my server to the DNS addresses I get directly from my ISP. So I'm going around the server now and seems to work for now. This morning I could start the machine and restart it 2 times and every time I had internet. Hope this solves it for now, still don't understand what the problem is though.
    Regards
    André

  • Source different O/S and hardware from destination

    What are the limitations on using Streams to move data between Oracle instances, when those instances differ by O/S and hardware platform?
    We're working with a vendor to replicate from an Oracle instance 10gR2 running on an IBM server running AIX, and we're hoping to perform one-way replication into another 10gR2 instance running on an HP server with a Linux Red Hat O/S (both are 64-bit).
    I came across this document yesterday, which mentions that it's a bad idea, although I haven't seen the same restrictions in the documentation:
    http://www.eecs.berkeley.edu/~nimar/papers/vldb05.pdf
    Namely, it mentions that in the 3rd & 4th point
    Operational Requirements for Downstream Capture
    -The source database must be running at least Oracle Database 10g and the downstream capture database must be running the same release of Oracle as the source database or later.
    -The downstream database must be running Oracle Database 10g Release 2 to configure real-time downstream capture. In this case, the source database must be running Oracle Database 10g Release 1 or later.
    -The operating system on the source and downstream capture sites must be the same, but the operating system release does not need to be the same. In addition, the downstream sites can use a different directory structure from the source site.
    -The hardware architecture on the source and downstream capture sites must be the same. For example, a downstream capture configuration with a source database on a 32-bit Sun system must have a downstream database that is configured on a 32-bit Sun system. Other hardware elements, such as the number of CPUs, memory size, and storage configuration, can be different between the source and downstream sites.
    The reason why I'm concerned is that Oracle came to us about 8 months ago and sold us on Streams over DataGuard for a read-only direct copy of data. DataGuard was sold as being tied to having the recovery instance be as identical as possible to the source. They led use to believe that there were no such restrictions for Streams. So, we didn't add any provisions for purchasing a Replication tool. Now I'm thinking we might need to spring for ODI or something ...
    Has anyone found differences in hardware and O/S to be a problem when using Streams?
    Thanks
    --=Chuck
    Edited by: chuckers on Nov 13, 2009 2:06 PM
    Sorry, wrong link initially.

    I have no experience with downstream capture, which ships archives from one platform to another.
    If you are not using downstreams, then heterognenous platform work fine over SQL*NET (dblink).
    I have already operated in production Windows to Solaris multimaster Streams and would have gladly
    exchanged the win box for your AIX.

  • Complete newbie: Linux, and writing drivers...

    I have spent a bit of time searching this forum, and reading over a
    good deal of older posts to get an idea of things.  I am
    completely new to LabView --- I have not even used it yet --- but am
    looking to get to know it better in the near future.
    My first questions relate to LabView on Linux.  I have read a few
    posts about the differences between the Linux and Windows versions, but
    these were fairly old.  Is the Linux version still lacking
    compared to the Windows one, or are the differences fairly small
    now?  In addition, there are a few pages which state that Debian
    is a supported distrobution, but the FAQ does not list it: is that a
    simple oversight?  My work system runs Ubuntu (a Debian-based
    distro), and I would like to stick with that if possible, but if I
    would be better off using the Windows version I can access a Windows
    system.
    I have also been looking into writing LabView drivers for accessing
    dedicated hardware.  Most of what I have seen and read so far
    relates to drivers written in LabView, however, I have read a little
    about then being written in several other languages.  Is there
    anywhere I would be able to get the source for any drivers written in
    C, so I can see what exactly is involved in writing one.  I find
    it a lot easier to understand these kinds of things by looking
    at examples, rather than explanations (with is the bulk of what I have
    found so far).  If I can see examples written for both Windows and
    Linux, that would be even better --- that way I could understand the
    differences between drivers for these two operating systems.

    A couple of things to clear up (or muddy up!). LabVIEW "compiles" its code the first time you run it after loading or changing code. It doesn't, at this point, create a file that can be executed on another computer without the development package. To do that you need to purchase the Professional Development package, or one of the lower versions and the Application builder toolkit. This toolkit creates an installation package that includes a ".exe" file. To run it you will need to install the LabVIEW runtime engine on the target machine. This can be done by the installation package created by the application builder, if so configured. The runtime engine is a fairly big package in version 7.1, and this causes a lot of comments by the VB and VC++/.NET folks, but the truth is they also have a runtime engine requirement, theirs is just automatically installed as part of Windows.
    Instrument drivers, for standalone instruments (GPIB, serial, etc.), usually do include the source. In the current (this does not apply to IVI drivers, they are a whole different category) method of writing these types of drivers, calls are made to some LabVIEW resources that use what are called VISA functions. VISA is a technology that provides a level of abstraction between us and the actual hardware port (GPIB, serial, etc.) Most of these standalone instruments are setup, programmed, read, using commands that consist of ascii strings. So drivers in this case are functions that convert settings for instance into the appropriate string of commands, i.e. "RB 3000000HZ;VB 1000000HZ;VAVG OFF;VBR 0.300000;" sets the resolution bandwidth, video bandwith, video averaging and video bandwidth resolution on a HP859x series spectrum analyzer.
    For the National Instruments cards LabVIEW comes with a bunch of tools to make talking to them easier, it still being at a relatively high level of abstraction, where a settings, etc. are passed to and from some built in function. The problem comes with boards from other vendors. There you are at the mercy of drivers they supply, as obviously National Instruments is not going to devote their development resources to drivers for hardware from competitors. The drivers from the other vendors range in quality from pretty good to what looks like it was written by the new hire engineer that had a copy of LabVIEW dropped on their desk and were told "we need some LabVIEW drivers for the biphase framistat by next Friday!".
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Arch, Windows 7 and PC-BSD Triple Boot

    Hi Folks,
    Thinking about setting up a triple boot system like the one described above. I have had numerous ideas for a partitioning scheme, but nothing seems neat because of the requirement that both Window and BSD need to be on a primary partition.
    My basic requirements are:
    Arch Linux
    separate /boot (as I want to use BTRFS for root)
    /root (BTRFS)
    /swap (not essential for Arch, as I have 4 GB RAM)
    (Is a home required, or can I have a tiny /home for .(config) files?)
    PC-BSD
    separate /boot (as I want to use ZFS)
    /, /var, /usr (ZFS pool)
    /swap (essential for ZFS as I have heard it is RAM hungry)
    (Is a home required at all. First time with BSD, so not sure how it works)
    Windows
    1 large C: drive (Easy)
    Shared storage drive
    (recommendations for the most mutually compatible file system? It pains me to say, but FAT32?)
    So, should I go with the GUID partition table so I can just make all of these, or is there some clever trickery? I was considering LVM to make my Arch root and small home, but that does not really solve the four primary partition limit on the MBR.
    I should add, I have a working Windows 7 and Arch setup and my main reason for wanting a BSD is so that I have the full gamut of OSes for learning and experimentation. I like the idea of Windows 7, an Arch/BTRFS/Gnome and a BSD/ZFS/KDE...
    Any advice would be greatly appreciated!
    Scott
    Last edited by well.heeled.man (2011-07-31 00:14:11)

    @well.heeled.man
    from my own experience i would recommend you pure FreeBSD instead of PC-BSD (even tho they are the same in nature), the main problem is that pc-bsd is somehow not complete .. too many preinstalled stuff, ports witch is 1st thing to learn in FBSD is way too complicated with those jails.. and never the less fbsd + kde is not a good start - better use xfce at most
    as for partitions well ...
    I think FreeBSD/PC-BSD uses a single physical partition, logically sub-divided to allow for snapshots
    yes that is true
    as for zfs start learning by use files instead of partitions or harddrives unless you are ready to loose your data O.o
    example
    cybertorture@ego ~
    > sudo zpool status
    pool: tank
    state: ONLINE
    scan: resilvered 32,5K in 0h0m with 0 errors on Tue Aug 2 01:45:54 2011
    config:
    NAME STATE READ WRITE CKSUM
    tank ONLINE 0 0 0
    /home/zfs ONLINE 0 0 0
    /home/zfs1 ONLINE 0 0 0
    /home/zfs2 ONLINE 0 0 0
    /home/zfs3 ONLINE 0 0 0
    /home/zfs-spare ONLINE 0 0 0
    spares
    /mnt/data/zfs-test AVAIL
    errors: No known data errors
    cybertorture@ego ~
    > ll /home/zfs*
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs1
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs2
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs3
    -rw-r--r-- 1 root root 512M 2 авг 1,53 /home/zfs-spare
    about GPT, any reason not to use msdos ? maybe you have 2.2+ GB harddive  ?
    edit: about partitions
    sda1 ntfs - windowze
    sda2 ext2 - boot (safe bet)
    sda3 ufs - fbsd
    sda4 - extended
    sda5 btrfs - arch
    sda6 ntfs - shared storage
    Last edited by cybertorture (2011-08-02 00:39:51)

  • Lib32-util-linux and lib32-util-linux-ng are in conflict

    hi
    i'm running a 64bit arch linux (with some 32bit apps)
    today i got a strange conflict - and the "solution" seems pretty dangerous to me, or am i wrong?
    [root:~]# pacman -S multilib/dwarffortress
    resolving dependencies...
    looking for inter-conflicts...
    :: lib32-util-linux and lib32-util-linux-ng are in conflict. Remove lib32-util-linux-ng? [y/N] Y
    Remove (1): lib32-util-linux-ng-2.18-3
    Total Removed Size: 0.58 MB
    Targets (41): lib32-libxfixes-4.0.5-3 lib32-libxdamage-1.1.3-3 lib32-pcre-8.10-3 lib32-dbus-core-1.4.0-2 lib32-glib2-2.26.1-2
    lib32-atk-1.32.0-1 lib32-pixman-0.20.2-1 lib32-cairo-1.10.0-3 lib32-pango-1.28.3-1 lib32-util-linux-2.19-1
    lib32-e2fsprogs-1.41.14-2 lib32-openssl-1.0.0.d-1 lib32-db-5.1.19-1 lib32-sqlite3-3.7.4-1 lib32-heimdal-1.3.3-3
    lib32-ncurses-5.7-6 lib32-readline-6.1.002-3 lib32-libgpg-error-1.9-4 lib32-libgcrypt-1.4.6-3 lib32-gnutls-2.10.4-1
    lib32-libtiff-3.9.4-3 lib32-gdk-pixbuf2-2.22.1-1 lib32-libcups-1.4.5-1 lib32-libxcursor-1.1.11-1
    lib32-libxrandr-1.3.1-1 lib32-libxi-1.4.1-1 lib32-libxcomposite-0.4.3-1 lib32-gtk2-2.22.1-2 lib32-libdrm-2.4.23-1
    lib32-libxxf86vm-1.1.1-1 lib32-libgl-7.10.1-1 lib32-mesa-7.10.1-1 lib32-sdl-1.2.14-8 lib32-sdl_image-1.2.10-3
    lib32-flac-1.2.1-7 lib32-libsndfile-1.0.23-2 openal-1.12.854-2 lib32-openal-1.12.854-4 sdl_ttf-2.0.10-1
    lib32-sdl_ttf-2.0.10-3 dwarffortress-0.31.21-1
    Total Download Size: 9.07 MB
    Total Installed Size: 79.96 MB

    ulukay wrote:
    ngoonee wrote:Firstly, searches are not cached, so noone would be able to view your link properly. However yes somehow I've seen that the other threads on this are not turning up, so I suggest instead searching for 'util-linux', not 'lib32-util-linux', you will find the solution then.
    1. thanks for not simply posting a link
    2. that search would return threads regarding this problem on 32bit hosts - i run a 64bit host. my main concern is that this would install incompatible 32bit binaries.
    1. You're welcome. Self-help is the best kind.
    2. If you'd done the search I recommended you would have seen that the problem is not related to arch at all, but is due to upstream renaming.

  • Should I update BIOS and hardware firmware when installing XP?

    I will soon be receiving a ThinkPad R61 and I plan to downgrade the OS to Windows XP by following this guide to the letter.  However, one part of the guide is unclear to me.
    It states that updating the BIOS and hardware firmware are optional.  How do I decide whether I should do this?  What are the consequences of not doing it?  How badly can I damage my computer by doing it incorrectly -- can I destroy it?
    Thanks! 

    As it says in the guide many times.
    "THE BIOS AND THE HARD DRIVE FIRMWARE UPDATE ARE
    NOT NECESSARY. IF YOU ARE WARY OF BIOS UPDATES, THEN I SUGGEST YOU SKIP
    THOSE TWO UPDATES AND CARRY ON WITH THE GUIDE."
    The BIOS updates sometimes fix errors that may or may not affect you. You would have to read the txt file associated with it to determine if you want to do it or not.  Some folks have to have the latest and greatest and some people have issues that are fixed in the BIOS update.
    A BIOS update gone wrong will render your Thinkpad completely useless.
    I think that if it is not broken, don't fix it.
    Be sure to make the recovery disc set before doing anything else.
    T60 2623-D7U, 3 GB Ram. Dual boot XP and Linux Mint.
    T400 2765-T7U Windows 7
    Registered Linux User #160145
    FYI: I am not employed by Lenovo

Maybe you are looking for