PREEMPT_RT patch and Arch

Hello All,
I'm wondering if anyone has toyed around with the PREEMPT_RT patch using the Arch concept to simplify the processes to accommodate non-critical motion control across wireless or local area networks as a server for applications such as security cameras, thresholds, landscape automation, environmental controls, etc. There are also several commercial applications that might be reasonably run through the hybrid RT capabilities of a adapted timer and a preempted Linux kernel with an ultra-lean Arch config.
I'm a newbie and interested in finding out what I don't know before I throw a bunch of time at a flawed concept. I've been linux lurking for quite a while hoping to find a really lean operating system and overhead that retains the dual characteristics of general motion control and networking. These could be used in any number of closed loop commutation and synchronization schemes to afford relatively accurate positioning at long distances and communicate the result.
Obviously this could be accomplished with enough money to buy gear and canned (black box) applications but the cost of repetitive installation pales even the bravest entrepreneur. So, the search continues.
Is there any inherent reason that Arch and the RT patched kernel won't work together? Most of the pengutronic stuff I've been reading is a little dated. Admittedly, I may have just outed my lengthy lurk in a spasm of sheer excitement that this may be the one. But I thought I might just simply ask before I work my way to another dead end.
Anyone?

Let me say up front...    personally I have no idea. You could always simply try it and see if it works!
That said, my reason for posting is to say, you might get better traffic on this question in another part of the forum, since this has very little to do with differing architectures. Your best bet might actually be the Networking, Server, and Protection area since your basically talking about setting up a server designed to control security cameras, or the Kernel & Hardware Issues area, since you are asking specifically about a kernel patch.
I got curious and googled the patch you're talking about...   I am fairly sure it should work for Arch, since it seems to be very distro agnostic.
I am curious about why you feel the rt patch would help with motion control over a network...   it is aimed at working with microsecond timings, than longer term workloads. RT is only really useful (right now) for really short units of work in response to real time events. Basically, if you want to hit a bug's wing that was spotted on a camera with a high powered, very narrow focused laser, then an RT kernel might help you. An RT kernel is aimed at starting up responses really fast. Unless you are responding to something captured by the cameras, and less than a tenth of a millisecond is necessary to that response, a normal "real-fast" kernel might be a better idea.
http://www.rdrop.com/users/paulmck/real … 06.22a.pdf
There is a link to a white paper about the RT-Kernel and the Preempt_RT patch set. It's 9 PDF pages, but if you want to just skim it, the summery has a nice decision tree to help make the choice between real-time patch and the vanilla "real fast" kernel.
The RT-patchset might actually be more work than strictly needed for the concept you're working on.
It seems to me, and I am far from a Guru or an expert, that what you are hunting for is a motion capture application that can easily be network controlled and is open-source. You need a low overhead OS to give all of the system resources to the motion capturing program. Arch is good for low overhead, and there is the package zoneminder in the AUR (Also with the zmviewer-svn that adds a client capacity to the suite, meaning you can look at/control them from another computer).
You may want to look at Linux-From-Scratch to make an absolutely basic system on the hardware you wish to use for this enterprise. You can strip out all of the unneeded drivers from the kernel, locales, manpages, build tools, and all of the other cruft that is needed by the average install of any Linux OS meant to run on diverse groups of hardware.
By the way, the Linux-From-Scratch would allow you to custom compile and thoroughly test each update before sending them out as binaries to your customers, as well as allowing you to do complete upgrades rather than piecemeal updates to each program on the system as they come available. (Business like the set time table for releases because of the lower amount of downtime for the critical systems.)
Last edited by LeoSolaris (2009-05-11 14:49:41)

Similar Messages

  • Openmosix and arch linux

    I am trying to build myself a simple load balancing cluster, and a friend of mine recommended openmosix to me.  Unfortunately, I don't know much about compliling kernels or anything like that, and have always used the arch kernels.  So I had a brainstorm, that I could download the kernel source, patch it with the openmosix patch, and then use the archlinux PKGBUILD to make the kernel using the patched source, which would then create an arch kernel that had openmosix in it.  Anybody have any ideas or recommendations or do you think this would work?

    It would probably be much more simple to just compile your own kernel than try to customize the arch kernel. Configuring is just a matter of figuring out which drivers to use. You can just download the kernel source from kernel.org, put it in /usr/src/, configure, and compile. There are various instruction on how to do this online. Gentoo has some good documentation on this.
    After you have compiled you own kernel, you will also need to compile any kernel modules that you want to use with it. Also, you dont need to use hotplug if you have compiled a custom kernel.
    You might also try dynabolic or cluster knoppix if you just want to play around it.
    good luck and have fun.

  • SELinux and Arch

    Hi there,
    I'm trying to install and setup SELinux on my Arch box. (Because SELinux is topic of my bachelor research and Arch is my favourit distro)
    So after reading Arch and Gentoo SELinux wikis I installed SELinux enabled kernel and other SELinux stuff, compiled and loaded Reference Policy and relabeled FS.
    Now I can load SELinux and set it to enforcing mode, which seems to be working, though it needs some finetuning at next stage. Though to finish current research stage I need to load SELinux at boot. From what I read it is done by sysvinit patched for use with SELinux, which is also available in [comunity]. Problem is that patched sysvinit fails to load the policy and kernel panics. Acording to Gentoo wiki sysvinit needs to be linked to libselinux, mine from package community/selinux-sysvinit 2.86-1 seems not to be. :-/
    Sooo, the question is, does it work for anybody? I guess if not, then there is something wrong with the package and some finetuning might solve that. Or maybe I'm doing something wrong, please help me to determine what.

    karlo wrote:Hi, SELinux is also a topic of my research. I'm writing refpolicy editor and everything was fine till I wanted to compile refpolicy ( refpolicy-2.20091117 ) and set this policy as a default in Fedora12 (by the way, sources of default policy in Fedora are not public, are they? ). After following steps published on http://oss.tresys.com/projects/refpolic … eRefpolicy my system is not booting. Some daemons failed to run (eg. HAL). selinux=0 in grub helps but is not the solution. Selinux is set to run in permissive mode. Has someone any ideas what's wrong and how to fix it?
    Hello,
    this may be a little late, but have you tried to follow Arch Linux SELinux guide, here on wiki? Last time I tried it, it worked -- if you are doing your research at Arch Linux.
    Fedora source can be found, they have src.rmp. The sources itself are normal refpolicy, but there are some huge patches. I wasn't able to compile that even on Fedora though.
    As for SELinux at Arch I have gathered some requests and will be trying to make it better in the summer.

  • Mythtv and Arch - a few problems

    Hi fellow Arch users
    I have a few dilemmas I wish to share about Arch and Mythtv and hopefully receive some feedback/answers for.
    Some background info:
    After trying Fedora, K/Ubuntu, and Zenwalk I settled on ArchLinux for both my main distro and my HTPC (mainly because of the start up speed and the lightweight feeling). I have been using Linux for a month or so now, so my knowledge is not all that great but I have managed to get most programs working with a bit of research. Its just I have a few problems with Mythtv that I am unable to solve.
    HTPC Specs
    Asrock mATX board (cant remember the model No.)
    AMD 1800+ Socket A
    512MB RAM
    80MB WD 7200RPM
    12x DVD ROM
    Geforce MX400
    DVICO Fusion HDTV Dual PCI
    Software
    Arch 2.6.16-20(latest available kernel)
    KDE (wish to switch to fluxbox when everything is working)
    Mythtv + plugins
    Questions & Problems:
    I've managed to get a functional Mythbox going. The small problems I am having include
    1.    No working remote/lirc
    2.    I can start mtd but when I press 0 to rip a DVD it does nothing.
    3.    when I quit out of mythtv-setup I get an error about ~/recordings/.test is not writable
    4.    cant get the 2nd tuner working – I managed to download the dvb-usb-bluebird firmware but I'm unsure where it goes (in Arch)
    5.    if I try to make the latest v4l-dvb it say I am missing lsmod or lnmod cant remember which
    6.    I get all channels at 10-15% but quality is very good, no hiccups, freezes etc. I cant get one channel though (SBS - I'm in Sydney, Australia)
    1.    I haven't really tried yet but any advice would be great
    2.    I imagine this might be a permission issue ie I have to run mythbackend under root
    3.    doesn't seem to be a problem (yet!)
    4.    running dmesg tells me it cant find the firmware for the usb-dvb but the pci part of the card works okay
    5.    I managed to compile an older v4l-dvb source (about a month old, the source that is). I didn't need it as everything is built into the 2.6.16 kernel (I was looking for get_usb_firmware but didn't realise I didn't need to compile it to use it)
    6.    I know its not my aerial because with a set-top-box I can get all channels including SBS with a signal strength of 80-100%
    If anyone can help I will be very grateful and if you require more info and I'll get it to you once I'm near the computer.
    Regards
    Jarrod

    Hi. I have the same card and I managed to get the USB part working following the instructions here
    http://www.linuxtv.org/pipermail/linux- … 09869.html
    I got the quincy tree and applied the patch attached to the post.
    But confusingly/fustratingly, I havent been able to get the pci part working. Can you tell me how you actually got the pci part to work?
    Check this post for the Dual remote
    http://www.linuxtv.org/pipermail/linux- … 08469.html
    I have a remote that came with a Dvico Plus board for which I have a custom patched and packged version of lirc that works if you need it.

  • Dual boot Windows 7 (64) and Arch Linux (64) problems

    Hello:
    I am new to Arch Linux and just finished installing the 64bit on my laptop. It had a prebuilt Windows 7 (64) installed which I kept but split the hdd from 160Gb to 80Gb and 80Gb. I installed Arch there and set 4 partitions, all of them as Logical - a 64 MB ext2 /boot partition; a 512 MB swap partition; a 15 GB root partition; and the rest as my /home partition. My partitions look like this:
    Disk Drive: /dev/sda
    Size: 160041885696 bytes, 160.0 GB
    Heads: 255 Sectors per Track: 63 Cylinders: 19457
    Name Flags Part Type FS Type [Label] Size (MB)
    sda1 Primary Unknown (27) 12889.02
    sda2 Boot Primary NTFS 106.93
    sda3 Primary NTFS [] 73915.11*
    sda5 Logical Linux ext2 65.81*
    sda6 Logical Linux 509.97*
    sda7 Logical Linux ext2 15002.92*
    sda8 Logical Linux ext2 57549.55*
    The install was succesful(this was running from the core install cd) and I installed GRUB to my /boot but when I restarted it loaded Windows 7. I have used Knoppix USB disc to boot and see my Arch Linux install files and edited the /boot/gur/menu.lst file.
    In Windows I installed EasyBCD 1.7.2 and tried to get NeoGrub bootloader working as a dual boot. I tried getting rid of the boot flag for Windows with cfdisk and setting it to my (Logical) sda5. That did not work. So far the only way I have booted into my Arch Linux install has been by going to the Live CD, choosing "Boot from Existing Linux Install" and editing the command files there.
    root (hd0,4)
    kernel /vmlinuz26 root=/dev/sda3 ro
    initrd /kernel26.img
    My goal is to get a dual boot working for Windows 7 and Arch Linux 64 and continue installing the Xorg and KDE to Arch. I just don't know what the problem is here. I don't mind reinstalling Arch if something went wrong, but I would like to keep my Windows running in order and add Arch on.
    Any help would be greatly appreciated.

    I ran the LiveCD and chose "Install to MBR hd0". I ended up with this:
    setup hd(0,1)
    Checking if "/boot/grub/stage1" exists.....yes
    Checking if "/boot/grub/iso9660_stage1_5" exists.....yes
    Running "embed /boot/grub/iso9660_stage1_5 (hd0,1)".....failed(this is not fatal)
    Running "embed /boot/grub/iso9660_stage1_5 (hd16)".....failed(this is not fatal)
    Running "install /boot/grub/stage1 d (hd0,1) /boot/grub/stage2 p (hd0,1) boot/grub/menu.lst".....failed
    Error 31: File is not sector aligned
    My entry for Windows into the menu.lst looks like this:
    # (0) Arch Linux x64
    title Arch Linux x64
    root (hd0,4)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/3841273c-d91e-41d6-9dbf-716a15d03a01 ro
    initrd /kernel26.img
    # (1) Arch Linux x64
    title Arch Linux x64 Fallback
    root (hd0,4)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/3841273c-d91e-41d6-9dbf-716a15d03a01 ro
    initrd /kernel26-fallback.img
    # (2) Windows 7
    title Windows 7
    rootnoverify (hd0,0)
    makeactive
    chainloader +1

  • UK Public sector : Teachers Pension Patch and Functional Setup

    Hi
    I have a query regarding the functional setup for the above. (I am assuming / expecting answer from those who have done this setup already and they know/gone thorugh the patch readme file )
    I am trying to use the code provided in the patch readme file to findout correct tier for pension contribution..In order to do that I need the Annual FTE Salary inside fast formula.
    The patch readme says ,
    Once the Formula has retrieved the pension contribution Rate, it needs to be
    applied to the actual earnings in the period.
    l_tps_emp_contr_sal = FULL_TIME_ANNUAL_SALARY_TPS_ASG_TRANSFER_PTD
    However I am getting zero value for FULL_TIME_ANNUAL_SALARY_TPS_ASG_TRANSFER_PTD.
    i.e. l_tps_emp_contr_sal is zero which is being passed to
    l_EE_Contribution_Percent = to_number(GET_TABLE_VALUE
    ('PQP_TPA_PENSIONABLE_PAY_RANGE',
                                       'Employee Contribution Rate',
                                       to_char(l_tps_emp_contr_sal)))
    and nothing is coming up.....
    How do I get the correct value of FULL_TIME_ANNUAL_SALARY_TPS_ASG_TRANSFER_PTD ?
    The readme says following
    FTE Salary/Amount
    The Annual salary is the Gross Full Time Equivalent salary based on which the
    band should be decided. There can be multiple elements per assignment that
    could be populating this value and each element may have different
    configurations for example:
    a. Element may have annual value from which a period value is calculated
    b. Period value to be paid
    The above this can be further classified based on
    a. usage of working pattern or working hours
    b. Full time salary
    c. Part time salary.
    a. One time payment on which Annualisation may not be applied but FTE should
    be applied.
    b. One time payment on which Annualisation may be applied but FTE should
    not be applied.
    c. Annual Value on which FTE should be applied.
    d. Annual Value on which FTE should not be applied
    There are many more variants to the scenarios described above.
    To achieve the calculation of the Gross Annual Full Time Equivalent salary
    for all possible scenarios the seeded element FTE Annualised Pay should be
    used by the customer.
    In order for the Pension contribution rate to be determined, the FTE annual
    salary effective at the period in question, must be available.
    It is presumed that the FTE value will be available for the current elements
    that customer uses for paying the teachers as it would be needed to determine
    the actual payment value for the period.
    This value will be fed to the new seeded element (FTE Annualised Pay) by the
    individual element formula.
    Suggested changes for determining Annual Full Time value:
    Suggested changes in elements formula for determining Annual Full Time value:
    The following statements should be added to the existing earnings element
    formula. These are suggested changes to the existing formulae to derive the
    Annual FTE salary.
    Case 1: If the Element Formula has access to Annual FTE Value.
    return_Annual_inf = ANNUAL_VALUE
    /*Assign Annual FTE Value for this element to variable return_Annual_inf*/
    Case 2: If the Element formula has access to only to Period value and
    Annual FTE Value is not stored anywhere.
    return_Annual_inf = (PERIOD_VALUE * PAY_STATUTORY_ANNUAL_PERIODS)
    /* Assign Period Full time Value for this element multiplied by standard
    DBI for annual periods to local variable return_Annual_inf */
    Case 3: If the Element formula has access to only to Annual Part time value
    and Annual FTE Value is not stored anywhere.
    return_Annual_inf = ANNUAL_VALUE / ASG_FTE_VALUE
    /* Assign Period Full time Value for this element multiplied by standard
    DBI for annual periods to local variable return_Annual_inf */
    Case 4: If the Element formula has access to only to Period Part time value
    and Annual FTE Value is not stored anywhere.
    return_Annual_inf=(PERIOD_VALUE*PAY_STATUTORY_ANNUAL_PERIODS)/ASG_FTE_VALUE
    /* Assign Period Full time Value for this element multiplied by standard
    DBI for annual periods then divided by standard DBI for FTE to local
    variable return_Annual_inf */
    Note:
    The new local variable return_annual_inf should be returned from formula to
    the new seeded information element FTE Annualized Pay.

    Hi
    I recently did an evaluation of this patch, and I did get it to work; however, in order to do so I needed to amend some other formulas for e.g. calculation of salary, so that the annualised FTE figure was returned from the formula. This was then referenced in the formula result rules for the annual salary element, to feed that new result to the seeded element provided in the patch ('FTE Annualised Pay'). That then fed the balance.
    It's a major headache as you will have to similarly amend all formulas/result rules pertaining to elements that could form part of the reckonable pay for this calculation.
    Where I am, we won't be using it as we had to come up with our own solution to stand any chance of being 'legal' in time for April.
    Hope this is of use
    Clive

  • I have been updating my PSE since 10. Recently I purchased PSE13 as I didn't see an update for my 12. I was changing to a new laptop as my old laptop had been patched and worked and was showing signs of giving out. It was a Window's 7OS. My new one is a W

    I have been updating my PSE since 10. Recently I purchased PSE13 as I didn't see an update for my 12. I was changing to a new laptop as my old laptop had been patched and worked and was showing signs of giving out. It was a Window's 7OS. My new one is a Windows 8 OS so I bought the 13 and downloaded it on the new laptop. Our desktop had died so I downloaded the 13 on the new  desk computer also. Not thinking I downloaded 13 on my old laptop as I hope to get it patched up enough to be a backup for my photography. When I tried to activate it I realized that I had downloaded it too often. I didn't know you could only use it on two computers. Learn something new every day.. Any way I removed it and now my PSE 12 does not seem to be working. Now it could be something that I did or something that is an issue with the laptop. this laptop has all the previous editions on board as I always tried to update, except for the year I got a really good deal on Black Friday. I also notice that the new laptop has a copy of PSE 12 in the program list. To my knowledge I have never deactivated any of my PSE's except the extra 13 downloaded. Bottom line, do I need to go in and deactivate previous PSE versions and removed them from my computer? I could certainly use the space and secondly, can I deactivate the PSE 12 and then go back and reacitivate it and install it again on the old laptop or the desktop, whichever I deside would be the most appropriate place for the newer program. For the PSE 12 since it is an updater for 11, does the 11   still need to be on the laptop? thanks for anyone who can understand what I am trying to say and can advise me as to my next move. Thank you very much.

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • SSRS 2008 R2 is extremely slow. The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes. I have read this is a bug in SSRS 2008 R2. We installed the most recent patches and service packs.

    SSRS 2008 R2 is extremely slow.  The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes.  I have read this is a bug in SSRS 2008 R2.  We installed the most recent patches and
    service packs.  Nothing we've done so far has fixed it and I see that I'm not the only person with this problem.  However I don't see any answers either.

    Hi Kim Sharp,
    According to your description that when you view the report it is extremely slow in SSRS 2008 R2 but it is very fast when execute the query in dataset designer, right?
    I have tested on my local environment and can‘t reproduce the issue. Obviously, it is the performance issue, rendering performance can be affected by a combination of factors that include hardware, number of concurrent users accessing reports, the amount
    of data in a report, design of the report, and output format. If you have parameters in your report which contains many values in the list, the bad performance as you mentioned is an known issue on 2008 R2 and already have the hotfix:
    http://support.microsoft.com/kb/2276203
    Any issue after applying the update, I recommend you that submit a feedback at https://connect.microsoft.com/SQLServer/ 
    If you don’t have, you can do some action to improve the performance when designing the report. Because how you create and update reports affects how fast the report renders.
    Actually, the Report Server ExecutionLog2  view contains reports performance data. You could make use of below query to see where the report processing time is being spent:
    After you determine whether the delay time is in data retrieval, report processing, or report rendering:
    use ReportServer
    SELECT TOP 10 ReportPath,parameters,
    TimeDataRetrieval + TimeProcessing + TimeRendering as [total time],
    TimeDataRetrieval, TimeProcessing, TimeRendering,
    ByteCount, [RowCount],Source, AdditionalInfo
    FROM ExecutionLog2
    ORDER BY Timestart DESC
    Use below methods to help troubleshoot issues according to the above query result :
    Troubleshooting Reports: Report Performance
    Besides this, you could also follow these articles for more information about this issue:
    Report Server Catalog Best Practices
    Performance, Snapshots, Caching (Reporting Services)
    Similar thread for your reference:
    SSRS slow
    Any problem, please feel free to ask
    Regards
    Vicky Liu

  • [SOLVED] Dual boot windows 7 and arch Linux with seperate hard drives

    Ok so I'm stuck trying to get my computer to dual boot windows 7 and arch. They are installed on different hard drives and I have grub 2 as the boot loader. I can't find any tutorials on how to do it with seperate hard drives I know how to do it if they are on the same hard drive. Also I want windows on the "first" hard drive how do I check to see which one it considers the first?
    Last edited by bdawg (2012-09-21 23:15:37)

    DSpider wrote:
    drobole wrote:If you want to change it so that sda becomes sdb and sdb becomes sda, you should be able to do that in BIOS.
    Not from the BIOS. He would need to physically open up the computer and switch the cables between them (or add another drive).
    There's no actual performance increase in changing this order. Performance increase is when you have the partitions as close to the beginning of a HDD as possible, where the platters spin faster (basic mechanics, not to be confused with CD/DVD, which are being written from the inside-out to prevent errors after extended usage), and it especially doesn't apply to SSDs whatsoever.
    You may be right about that. I remember I had to do this a while back but I probably switched the cables. It also messed up the drive mapping in Windows 98 if I remember correctly.

  • Dual booting Windows 8 and Arch Linux with UEFI

    Hi all!
    I'm trying to install Arch Linux on my computer where I already have Windows 8, and I'm getting a little stuck when it comes to the partitioning.
    Following the beginner's guide and the method here: https://wiki.archlinux.org/index.php/Un … n_in_Linux for setting up the partitions properly, regarding UEFI. My problem is that when using cgdisk to set up a new EFI system partition (ef00), I get an error message when trying to write the partition table (just saying that something went wrong). I figure the problem is that I already have a partition like this (correct me if I'm wrong), but it really looks like it succeded (see info below). So my question is: How do I preceed to keep my Windows 8 installation happy, but installing Arch? Do I remove the old EFI system partition and create a new one, or is there some method that allows me to edit the already existing one, to allow me to dual boot Windows 8 and Arch?
    My partition table now looks like this:
    Part. # Size Partition Type Partition Name
    1007KB free space
    1 500MB Windows RE Basic data partition
    2 300MB EFI System EFI system partition (this one was already present on my system)
    3 128MB Microsoft reserved Microsoft reserved partition
    4 63.5GB Microsoft basic data Basic data partition
    8 512MB EFI System EFI System partition (this is the one I tried to create when I got the error message)
    5 29.5GB Linux filesystem Arch (this is where I was going to put my Arch installation)
    6 22GB Windows RE Basic data partition
    7 1024MB Windows RE Basic data partition
    615KB free space
    Just for the record; I only created partition #8 and #5.
    Any help is appreciated! And sorry for beeing a total noob, but I really suck at this.

    sudo make sandwich wrote:If it is possible to share ESP between OSes, how do I do this (would it be sufficent to follow this section: https://wiki.archlinux.org/index.php/Beginners'_Guide#For_UEFI_motherboards)?
    There's really very little to do to share an ESP between OSes. Most OS installers will auto-detect the ESP and use it. Problem solved. For Arch it may be a bit more effort just because Arch uses a more hands-on installation process, but I've only done a couple of Arch installations, and the last one was several months ago, so I don't recall the details clearly enough to comment.
    And how big will the partition need to be? The beginner's guide says 512MB or higher.
    I don't know what was in the mind of the author, but my guess is that's because that's roughly the cutoff point where mkdosfs starts creating FAT32 by default rather than FAT16. The ESP is officially supposed to be FAT32, not FAT16, although FAT16 usually works OK. It's also possible to create FAT32 on smaller partitions by using an explicit option to mkdosfs ("-F 32").
    The optimal size of the ESP depends on the files stored on it. If you don't store your Linux kernels, something as small as 100MiB is usually adequate; but a few Linux kernels and their initrd files can consume twice that amount. My own recommendation is for the ESP to be 200-500MiB.
    The only error message I got from cgdisk is "Problem saving data! Your partition table may be damaged!", however booting Windows again works fine. Parted did not complain about antything.
    Use the "verify" function in cgdisk. That will reveal any problems with the data structures. If a verify turns up OK, then that means that cgdisk ran into some sort of disk problem. Running gdisk rather than cgdisk and using the gdisk "w" option (without making any changes) may produce a more helpful error message.

  • Dual boot Windows 7 and Arch from 2 seperate drives (UEFI)

    Hello everyone, I've been working on installing Arch to a secondary hard drive for the past few hours, but I am trying to make sure I won't mess up my Windows 7 install.  I have found several topics talking about dual booting Windows 7 and Arch, but not a whole lot on booting them from separate drives.  My drives are currently setup as follows.
    sda (120GB SSD for Windows 7)
        sda1 (100MB System Reserved NTFS partition)
        sda2 (Windows 7 install)
    sdb (1TB HDD for Windows programs, files, etc)
        sdb1 (1TB NTFS partition)
    sdc (1TB HDD)
        sdc1 (boot 512MB FAT32)
        sdc2 (root 500MB ext4)
        sdc3 (home 300GB ext4)
        sdc4 (swap 10GB)
        rest unallocated "free space"
    I used Gparted to create the partitions.  I ended up getting hung up on the "Create Filesystems" sections, specifically this line"
    # mkfs.fat -F32 /dev/sdXY
    Now that I am looking at it, I'm thinking the "Create Filesystems" section maybe isn't necessary because I've used Gparted?
    If it isn't necessary, when I get to the "mount the EFI System Partition to /boot" section, would I simply use
    # mount /dev/sdc1 /mnt/boot
    instead of
    # mount /dev/sdXY /mnt/boot ?
    The way I had this setup with Ubuntu was 3 partitions on sdc (/, home, swap) and I set my PC to boot to the sdc drive on startup.  The boot loader would then give me the option to boot into Ubuntu or Windows 7, and I never had to alter the sda or sdb drives at all.  Is this possible through Arch?  My thinking is that even if it isn't, I should still be able to enter the BIOS boot menu and select which drive to boot manually correct?  That wouldn't be too big of a deal for me because I spend 90% of my time in Linux, and only use Windows for Photoshop and gaming occasionally.
    Thanks for taking the time to read this.  I would have just tested this out, but I am afraid of messing up my Windows install.

    After several sleepless hours I had to give up and go to bed about 5 hours ago.  The installation process went smoothly (or so I thought).  I followed the tutorial closely and upon rebooting I was met with a blinking cursor.  After some googling I found others who said I should press TAB, but nothing seemed to work.
    I rebooted to the iso disk and found the "boot installed OS" option and noticed it said "Press TAB to edit".  I then found the boot parameters and tried everything from hd0 0 to hd4 4.  I believe I have Grub setup correctly because every option besides hd0 0 either says "Booting..." and then gets stuck, or says "That disk and partition combination does not exist".  So yea, I think hd0 0 is the correct boot path, it just gets stuck with the blinking cursor.
    silverhammermba wrote:
    You have the right idea. You want to install a bootloader on sdc1 which will be able to boot both Arch and Windows.
    Your best bet would be to use something like rEFInd. It has a "scanfor" option that should automatically detect your BIOS-configured Windows installation and add a boot option for it. Note that depending on your motherboard, you may have to switch to UEFI-only mode and Windows will be unbootable without the assistance of a UEFI program which is backwards compatible with BIOS (like rEFInd).
    Thank you for the link.  Considering I can't get into my install and the actual install only took about 30 minutes,  I think I am going to just start from the beginning again with REFIndr.  It seems much simpler.  I only used Grub because I've used it before with Ubuntu, but my very limited knowledge is telling me Grub is probably the problem.
    MoonSwan wrote:Just an idea:  My bios has a "Boot-up Prompt" which I can invoke when it's POSTing by hitting F11.  This brings me to a menu that allows me to choose which drive I want to boot up that day.  I use it when Syslinux isn't working properly (Which is right now as a matter of fact ...) in order to boot Windows so I can do some SCII, for example.  I, too, dual-boot but I have both OSes on different SSDs.  So my 120GB Crucial SSD has Arch on it and the 240GB Kingston has Windows, SCII, Portable Apps, etc and nary the two shall meet.  It makes dual-booting easier in the case of a corrupt OS or MBR or what-have-you.  You may want to give your Bios a better look to see if you can do the F11 trick.  It probably can and will usually tell you so at POST by printing that information on-screen along with your drives-detected and other messages (I hit Pause sometimes to read all the POST messages).
    This is exactly what I was talking about doing when I mentioned:
    My thinking is that even if it isn't, I should still be able to enter the BIOS boot menu and select which drive to boot manually correct?
    That's good to know, because even if this next install doesn't work I think if I pull the other drives I should be able to get it working fairly easily.
    Thanks again everyone.

  • Dual Boot Windows 7 and Arch with Shared NTFS partition.

    Hi everyone,
    I want to dual boot windows 7 and Arch Linux.
    Here's the problem... my hard drive isn't the biggest.  I want to store all my music, movies, pictures, and documents on partition that both linux and windows can access seamlessly.
    I want the partition to be NTFS.   -- (the programs that map an ext4 drive to Windows are trash).
    Here's what I think I need.
    30GB NTFS to Windows.
    30GB ext4 to Arch Linux
    The remainder (190ish GB) to Shared Data.
    I don't want the swap partition because I have a SSD and 4GB of RAM.
    What is the best way to setup my partitions?  And is this even possible?
    Thanks!

    Not a problem.  I would create:
    First of four primary partitions for windows.
    Second of four primary partitions for /boot
    Third of four partitions is an extended partition encompassing all the space not used by the first two partitions.
    Put everything else inside the extended partition.
    Mine is a bit more complicated, but this should give you an idea:
    ewaller@odin:~ 1005 %sudo fdisk -l /dev/sda
    Password:
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x87b33479
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 121778159 60888056 7 HPFS/NTFS/exFAT
    /dev/sda2 597366784 625135615 13884416 83 Linux
    /dev/sda3 121778160 597366783 237794312 5 Extended
    /dev/sda5 * 121778223 123770219 995998+ 83 Linux
    /dev/sda6 123770283 131770589 4000153+ 82 Linux swap / Solaris
    /dev/sda7 193213818 597360959 202073571 83 Linux
    /dev/sda8 131781258 193213754 30716248+ 83 Linux
    /dev/sda9 131770591 131781194 5302 1 FAT12
    Partition table entries are not in disk order
    ewaller@odin:~ 1006 %
    Partitions 1 and 2 are Primary partitions.  Partition 3 is an extended partition.  All the others live in partition 3

  • Dual booting win 7 and arch: cannot install grub to partition

    I have read the arch wiki page on dual booting and several other sources on line, but I am still struggling to get this to work.
    I am trying to dual boot arch and windows 7 on my lenovo ideapad s205. the machine comes with windows 7 pre-installed.
    I shrank the win 7 partition and added an extended partition with 3 logical partions for /boot, swap, and /.
    I am able to install and run arch by installing grub to the mbr. when I do this, though, I cannot boot windows. (the windows section of grub menu.lst is uncommented and points toward hda0,0. I have tried hda 0,1 as well).
    I have also tried to use the windows boot loader to load arch, as described in the arch wiki page on dual booting. The problem here is that, taking this approach, I should install grub to my /boot partition, but when I try to do this, the installer only allows me to install grub to sda or sdb (the usb stick).
    I have read that grub should be able to boot linux from a logical partition. Is this so?
    Is there something wrong with the arch installer that it is not giving me the option of installing to a partition rather than the mbr, or is this  a problem with my partition scheme, or something else?
    I am tempted to remove lenovo's recovery system, but on the other hand, I have already needed to use it several times while monkeying around with installing arch.
    Thanks for any help.
    UPDATE:
    I now have the laptop dual-booting win 7 and arch. My solution ( adapted from here: http://helms-deep.cable.nu/~rwh/blog/?p=177) was to:
    1. installed arch on the partitions I had created for it, but skipped the "install bootloader" stage.
    2. in win 7, I downloaded and installed EasyBCD and made an entry for arch in it. I checked the option to "Use EasyBCD's copy of GRUB"
    3. When I restarted, I got a grub error because the entry in grub's menu.lst was pointing at the wrong partitions for the kernel and root.
    4. So I went back into the arch live disk, mounted the boot partition and edited menu.lst.
    Now when I start the laptop, the windows boot loader starts and I can choose between win  7 and arch. when I select arch, grub4dos starts and gives me the option to start arch. this is not particularly elegant (nor is it fast), so I think this solution is less than ideal, but it does work.
    I'd be interestd in any thoughts about what went wrong and what a better solution would be.
    thanks.
    Last edited by ratchet (2011-10-10 19:09:16)

    ratchet wrote:II am able to install and run arch by installing grub to the mbr. when I do this, though, I cannot boot windows. (the windows section of grub menu.lst is uncommented and points toward hda0,0. I have tried hda 0,1 as well).
    Is this a typo in your post or how it was in menu.lst? Surely it should be hd0,0 and not hda0,0? The entry I have in my menu.lst is as follows:
    # (2) Windows
    title Windows
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    What was yours?
    Last edited by JHeaton (2011-10-10 20:18:22)

  • [Solved] Windows 7 and Arch Dual boot- unable to boot into Windows7

    Had to reformat computer and reinstall windows and Arch on two separate hard drives (Dual boot) .
    Windows 7 was the first install on SDA: (/dev/sda1 - system reserved 100mb, /dev/sda2 - 20gb)
    Arch on SDB: (/dev/sdb1- boot 94mb, /dev/sdb2- swap, /dev/sdb3 - root, /dev/sdb4 - /home)
    Installed grub2 on /dev/sda. now grub bootloader loads Arch fine. Also shows Windows 7 (on /dev/sda1).
    But when chosen Windows 7, it does not load and loops back again to boot loader screen.
    In BIOS i have set disk drive SDB as first boot option.
    If i choose SDA as first boot option in BIOS, same scenario is repeated.
    I have gone through mostly all the pages related to the topic but i can not co-relate the solution
    to my exact situation due to limited knowledge.
    Can somebody pls help me as to how to edit grub.cfg so as to point it to load windows 7?
    the entry related to windows 7 reads as follows:-
    quote
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menue$
            insmod part_msdos
            insmod ntfs
            set root='hd0,msdos1'
            if [ x$feature_platform_search_hint = xy ]; then
              search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint$
            else
              search --no-floppy --fs-uuid --set=root F010D97410D941F0
            fi
            chainloader +1
    unquote
    for Arch set root value is hd1,msdos1 and working fine.
    Thanks and regards.
    Last edited by commsanjay (2012-10-14 08:08:54)

    This is exactly why I have chosen to use windows MBR and syslinux
    https://wiki.archlinux.org/index.php/Wi … oot-loader
    Last edited by ackt1c (2012-10-14 02:32:55)

  • Dual Booting Windows and Arch (SOLVED!)

    Hello all, I'm having trouble getting a windows partition activated again. (Windows was on here for many years, then I installed arch on a separate partition.)
    Here is the layout of fdisk -l:
    Disk /dev/sda: 100.0 GB, 100030242816 bytes
    255 heads, 63 sectors/track, 12161 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        7833    62918541    7  HPFS/NTFS
    /dev/sda2            7834       12039    33784695   83  Linux
    /dev/sda3           12040       12161      979965   82  Linux swap / Solaris
    sda1 is the windows partition, and sda2 is the arch partition. The linux partition SHOULD be primary bootable (have the * next to it),but all my attempts to do this have failed. (I've used "testdisk" to change the flags, but for some reason it keeps reverting back to setting sda 1 as primary bootable after a reboot or 2).
    This is the pertinent section of /boot/grub/menu.lst:
    title  Arch Linux
    root   (hd0,1)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/f3be3baa-3b62-460c-8801-64b0b1cca$
    initrd /boot/kernel26.img
    # (1) Arch Linux
    title  Arch Linux Fallback
    root   (hd0,1)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/f3be3baa-3b62-460c-8801-64b0b1cca$
    initrd /boot/kernel26-fallback.img
    # (1) Windows
    title Windows XP
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    I have a . . . modified . . . copy of XP Professional, which comes with a recovery console to reinstall the MBR if it's necessary.
    From what I've researched, I somehow need to reinstall grub to the second partition, make the second partition primary bootable, then rewrite the MBR on the first partition, and correct any command errors in menu.lst, but I haven't really figure out a way to do it.
    Thanks in advance for your help!
    Last edited by mongoose088 (2008-12-20 21:48:18)

    I read up on some documentation of installing GRUB to the MBR.
    So far, I went into ArchLive (from the cd) and did the following
    grub> root (hd0,1)
    grub> setup (hd0)
    The installation reports success with no errors, but the problem persists. Arch linux will boot fine, but when I select XP it flashes my configuration, like so:
    title Windows XP
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    then kicks me back to the OS select GRUB screen. Did I install it to the wrong place?
    EDIT:
    I decided to issue this command:
    grub> setup(hd0,1)
    It reported some errors, then arch couldn't mount the ntfs partition because of possible MFT cluster errors.
    Using testdisk, I repaired the boot sector and MFT clusters, then using ArchLive reinstalled grub with grub>(hd0)
    Arch and Arch Fallback will boot correctly, but now the windows side shows an error:
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    Loading stage2Read Error (or something to this extent)
    I wonder if this error brings me closer or farther to a solution?
    Thanks for the replies so far!
    Last edited by mongoose088 (2008-12-20 05:41:43)

Maybe you are looking for

  • Unwanted iOS notifications on a Mac Mini

    My dad took my spare Mac Mini with him when he moved out of state. I recently found out that he has been getting notifications on the Mini every time someone messages me on my iPhone. I'm assuming this has something to do with my having set up the Mi

  • Lightroom 1.4 now available

    Details here: http://blogs.adobe.com/lightroomjournal/2008/03/lightroom_14_and_camera_raw_44.html Regards, Tom

  • I can't get an extension to work on my E Mail since down loading Lion on my Mac

    every time I try to get an extension to work it disapears since I down loaded Lion

  • Oracle Migration Tool giving Access denied error for Read operation

    Hi; Oracle Migration tool is giving access denied error when we are trying to Read a record for Access Profiles. We are getting (SBL-ODS-50085) error.This is happening only for few records(Access Profiles). Although the user role is administrator hav

  • Middleware issue

    Hi all, Pls guide me on below mention issue.............. Issue Details In our scenario we have SAP CRM 5.0 and ECC 6.0 (IS-U), basically it is an utliity implementation project. Where there is SAP CRM front end and ISU backend. We have done all the