Programming windows programs in arch linux

Language used is C/C++ so I would need to include <windows.h>, what tools do I install to program and test such programs?
Any help appreciated.

MinGW is what you want.  Works great, and then you can test with Wine
I've done this (added mingw builds and wine tests to my development process for a cross-plattform app) and you should be aware of limitations. Your app might run fine on wine, but crash horribly when running on a real windows. (Or just not work as intended.)
My recommendation: Get yourself a vm and install a evaluation copy of server 2008 (/7/vista) on it (free Windows for ~ half a year! ;-) ), install VS express and make sure it runs on windows and builds on VS without warnings regularly. In my experience the best way to make sure your code actually works on Windows.
I usually test it on Solaris and OpenBSD, too, but hopefully you won't have to entertain such a diverse ecosystem. (IRIX will do things again a bit different, but then almost nobody uses it anymore. I fortunately never encountered HP-UX and similar.)

Similar Messages

  • Windows XP and Arch Linux

    How do I install both Windows XP and Arch Linux on my system? I want to be able to boot either of the two from a menu that loads after the bios. I have created 4 partitions (NTFS, linux root, linux swap, linux home) and installed Windows XP on the NTFS system, as well as Linux on the other partitions. How do I go about the booting process? Are there any better ways of doing this than as above?
    Kirk
    PS How do I make a user supervisor in Arch Linux? When I try and reboot under my made user, I do not have sufficient rights.

    kirkl_uk wrote:How do I install both Windows XP and Arch Linux on my system? I want to be able to boot either of the two from a menu that loads after the bios. I have created 4 partitions (NTFS, linux root, linux swap, linux home) and installed Windows XP on the NTFS system, as well as Linux on the other partitions. How do I go about the booting process? Are there any better ways of doing this than as above?
    Just add the following in your /boot/grub/menu.lst
    # (1) Windoze XP
    title Windows XP Professional
    root (hd0,0)
    makeactive
    chainloader +1
    I assume from your description that you installed XP on the 1st partition of your 1st disc. If not, replace hd0,0 according to your setup.
    kirkl_uk wrote:PS How do I make a user supervisor in Arch Linux? When I try and reboot under my made user, I do not have sufficient rights.
    Just add that user in the root group in /etc/group. Or you can install sudo & 'man sudo' for details.
    However, believe me, you don't want to do something like that. In windoze if you try to delete, ie the windows folder through explorer it'll stop you, pointing that this is evil. In linux you can easily call a 'rm -rf /' (as root) and wipe your disc out .
    So better stick to a non-root user for everyday usage and su (or sudo) when you need root-access for a task.

  • [SOLVED] Installing Windows XP after Arch Linux

    I'm not sure at all where to post this, so I've decided to do it here since I have the problem on a laptop... Please move if it should be somewhere else.
    I installed Arch Linux on my new laptop a month ago or so, and am very pleased to have found the very kind of distro I've been looking for. However, I'm having trouble with my graphics (either wine doesn't support it, or the drivers don't have 2D/3D acceleration), and now I want to install Windows XP next to Arch Linux.
    Using a GParted LiveCD, I've repartitioned the harddrive as such: Unpartitioned Space (27GB), Linux (197GB), SWAP (5GB).
    I've also removed the bootable flag from the Linux partition, just to be sure. However, when I try to install Windows XP, it gets stuck after unpacking a bunch of drivers, giving me a bluescreen that tells me to make sure the hardware isn't broken, check my harddrive with CHKDSK /F, or look for viruses. Ofcourse I know none of these are true, since I'm running Arch Linux just fine.
    A friend suggested that maybe my hardware isn't supported by Windows XP, which sounds like the most reasonable explanation so far, but I can't find a list of supported hardware. The M$ homepage basicly says
    "Pentium 233-megahertz (MHz) processor or faster (300 MHz is recommended)"
    for CPU, which doesn't help me at all.
    My hardware is:
    Processor: Intel Celeron 2.2 Ghz
    Memory: 2GB DDR2
    Graphics: Intel 4500MHD
    And the laptop is called an "eMachines E525", though that doesn't say much since there are very, very many called this.
    Can anyone give me any hints as to what I might be doing wrong?
    Last edited by Noxic (2010-05-29 18:44:32)

    Sounds like something I'll want to do. Where did you download the drivers? Do I have to follow some guide? Thanks for the tip
    EDIT:
    Indeed I will want to install AHCI drivers, otherwise Arch Linux fails to boot quite badly. There is also a problem preventing me from booting when I'm using AHCI though;
    At boot, Arch Linux checks /dev/sda1 (NTFS) for errors, and expects to check an ext2 filesystem. Obviously, however, /dev/sda1 is an NTFS filesystem.
    Since it tries to read the NTFS partition as an ext2 filesystem, it panics. Arch Linux then prompts me for the root password (or Ctrl+D to reboot), but I've disabled root login and can therefore do nothing at this point.
    I have a GParted livecd and the Arch Linux livecd, so editing files on any of the filesystem isn't a problem at all, but I don't know what to do at this point. Help?
    Last edited by Noxic (2010-05-29 12:40:33)

  • [Solved]dual boot windows 7 and arch linux

    I have successfully installed arch linux dual boot with the original win7 on my PC. If I only use linux, then the system works well. The problem is that once I boot into Win7 then after reboot, the linux boot manager will stop working and the system always boots into windows automatically. My guess is Win7 automatically repair the boot loader.
    My current solution is whenever I have finished using Windows, I'll boot with my linux USB installation, and run "gummiboot --path=/boot install". Afterwards, linux will work fine. But I believe there must be a better solution. Any help will be appreciated.
    I have UEFI board by the way.
    Last edited by jl2014 (2015-04-19 17:35:57)

    Thanks for all your help first! I have tried Head_on_a_Stick's suggestions as the first step. Here is what I did. I have created :
    $ cat /boot/loader/entries/windows.conf
    title Windows
    efi /EFI/hidden/Boot/bootmgfw.efi
    The window boot path was :
    /boot/EFI/Microsoft/Boot/bootmgfw.efi
    and I changed
    /boot/EFI/Microsoft
    to
    /boot/EFI/hidden
    After reboot, I clicked 'Windows' option on the linux boot manager. Below are the error messages:
    Windows failed to start.
    File: \EFI\Microsoft/Boot/BCD
    Info: An error occurred while attempting to read the boot configuration data.
    Any idea what goes wrong?
    I'll try other suggestions soon. Thanks all of you again.
    Last edited by jl2014 (2015-04-19 00:03:33)

  • 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.

  • Installing Windows XP after Arch Linux already been installed [SOLVED]

    Here is my dilema:
    I have a Fujitsu Lifebook T4010 Laptop with a Wacom Tablet built into the screen. About a month ago I installed Arch Linux on it. It took me a while to get everything working (tablet screen/function buttons/on rotate flip reso) but eventually I got it all working.
    The thing is I feel like I'm not fully taking advantage of its tablet abilities. I want to be able to use it with Photoshop and Flash. I decided I should dual boot it with Windows XP / Arch.
    So I cut down on my /home partition and freed up ~25 gigs of the total 80 gigs for Windows. When I went to install it told me the maximum number of partitions had been met.  I looked it up online and apparently you can only have 4 primary partitions and with the 4 that Arch currently occupies (boot/swap/root/home) it looks like I'm out of luck.
    I'm thinking my only option is to combine my home partition with my root partition to free up a primary partition. People tell me it's easier when you have Windows installed first but to be honest it took me quite some time to get this laptop/tablet up and running and all of it's features working for me how I wanted and I don't want to have to go through it again.
    If anyone has any advice, work arounds,  or could tell me how I would go about safely combining my home and root partition it would be greatly appreciated.
    Thanks a ton,
    Last edited by bladdo (2009-06-13 17:12:09)

    lzs wrote:
    After a second thought, you'd have to move the home partition as well, as the extended partition counts too. I'd start with an arch live cd, cfdisk, delete swap, make extended, 2 logical drives, format the partition, backup, move home's content. then delete home, create new primary, install windows, write grub again, put the new partitions into fstab and tell grub where to find windows.
    EDIT: After a third thought, combining home and root might be easier: Just copy home's content to your root partition (if ther is enough room ...), unmount home, copy the stuff to /home and delete the home partition from fstab. Then delete the old home partition.
    Copying the home's contents to the root partition was what I had in mind. I'm trying to figure out how I would go about doing that though.  If I copy the /home to the root partition from the old home partition - will it automatically pick it up if I delete the fstab entry. Also will it be possible to expand my /root partition after that to take up the space the home partion use to own?

  • Install Windows 7 after Arch Linux?

    Hi guys.
    My fingers urge to play some Windows games, so I thought I might as well give dualbooting a shot.
    I know it's usually easiest to install Linux after Windows, but I don't feel like reformatting my current setup.
    This is how my current partitioning works:
    ***@archlinux ~]$ fdisk -l
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x42414240
    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 208844 104391 83 Linux
    /dev/sda2 208845 738989 265072+ 82 Linux swap / Solaris
    /dev/sda3 738990 32483429 15872220 83 Linux
    /dev/sda4 32483430 976768064 472142317+ 83 Linux
    I've never quite understood the whole partion-part-stuff, so that is why I'm posting this in the newbie corner.
    What am I supposed to do from here, preferably step-by-step, to install Windows 7 on my desktop PC running ArchLinux as the only OS atm?

    you dont need that stupid 100 mb partition for windows. The way i did it was /boot as my first partition just because i wanted a boot partition.
    My second partition was my ntfs/windows then i had
    swap then
    /root then
    /home
    Install arch linux first, then go back and boot to the dvd install windows on that ntfs partition. It will make a master boot record and overwrite your grub stuff. Stupid windows. You can then boot back into the arch linux cd and there is a command to fix the grub. This might do the trick, https://wiki.archlinux.org/index.php/Grub or http://ubuntuforums.org/showthread.php?t=24113 or  you can reinstall the arch linux to fix the grub stuff and add windows in the menu.lst. The place holder is already there just un comment it and i think you leave out makeactive. At least mine has that commented out so its not using it.
    I guess whats important here is that you diaper in your ntfs windows partition. Then windows cant make that 100mb sys partition. My windows works just fine...I think its used for saving system restore points.....not sure.
    good luck.

  • [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.

  • Windows 7 and Arch linux dual boot problem

    hey guys I had an issue with windows 7 dual booted with arch and i was just wondering my windows 7 crashed. I had Reinstalled windows OS and all my partitions are set up but now when I try to boot up arch I cant at all cause windows Boot took over and i have no way of getting into arch is there anyway i can fix this or maybe reinstall arch without loseing my home folder with all my data, or is there just and easyer way to fix this issue im stuck.  thank you all for your support as i am a noob

    You need to re-install grub. When you reinstalled Windows it will overwrite grub preventing you booting Arch. You'll need to boot from a liveCD and chroot into your Arch installation. details for recovering grub are in the wiki - https://wiki.archlinux.org/index.php/GR … stallation

  • 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

  • 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

  • [SOLVED] (U)EFI dualboot Win7 Arch Linux - partitions gone - recovery?

    Hi everybody,
    I have a slight problem with my (U)EFI dualboot system (Windows 7 and Arch Linux) which used to be configured using rEFInd like it is described in my previous post:
    https://bbs.archlinux.org/viewtopic.php … 6#p1300356
    <EFI PARTITION> is /dev/sda1 and I used to boot via <EFI PARTITION>\EFI\Boot\Bootx64.efi which then successfully either loaded Windows or Linux kernel.
    Thanks to my own stupidity and a recent update of refind I decided to copy the new driver, font and icon folders to the <EFI PARTITION> in order to be up-to-date.
    After doing so, the rEFInd boot menu had a third icon which said "Boot via \EFI\Boot\Bootx64.efi" and if I clicked on it a second rEFInd boot menu appeared with only the two icons for Windows 7 and Arch.
    So I figured I could delete Bootx64.efi and ultimately did so, unfortunately. Afterwards I couldn't boot neither Windows nor Linux anymore.
    Following this I went through my noumerous USB boot sticks in order to be able to recover the Bootx64.efi. Unfortunately the first USB stick was a Windows XP one which has the plop bootloader alongside:
    http://www.plop.at/en/bootmanager/thebootmanager.html
    Out of couriousity I entered this bootloader and found HDA and HDB (I assume resembling my SSD and my USB stick).
    To my knowledge I didn't change anything but after entering the bootloader again I just found HDA left, HDB seemed to be gone. But I didn't think of anything bad happening yet.
    Then I found a working Archiso which I booted and using blkid I couldn't find the partitions of my earlier system anymore, only its device and the USB stick:
    /dev/sda: PTUUID="..." PTTYPE="gpt"
    /dev/sdb1: UUID="..." LABEL="ARCH_201312" TYPE="..." and so on
    /dev/sdb2: SEC_TYPE="msdos" and so on
    Even within the EFI shell I could not detect any internal drive anymore (only fs0: which is the USB stick)
    Using Archiso onboard tool testdisk I could find the old partitions. The correct result of the GPT from testdisk is:
    Fri Jul 4 08:45:25 2014
    Command line: TestDisk
    TestDisk 6.14, Data Recovery Utility, July 2013
    Christophe GRENIER <[email protected]>
    http://www.cgsecurity.org
    OS: Linux, kernel 3.12.1-3-ARCH (#1 SMP PREEMPT Tue Nov 26 11:17:02 CET 2013) x86_64
    Compiler: GCC 4.8
    Compilation date: 2013-08-06T08:42:31
    ext2fs lib: 1.42.8, ntfs lib: libntfs-3g, reiserfs lib: 0.3.0.5, ewf lib: none
    /dev/sda: LBA, HPA, LBA48, DCO support
    /dev/sda: size 500118192 sectors
    /dev/sda: user_max 500118192 sectors
    /dev/sda: native_max 500118192 sectors
    /dev/sda: dco 500118192 sectors
    Warning: can't get size for Disk /dev/mapper/control - 0 B - 1 sectors, sector size=512
    Hard disk list
    Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512 - Samsung SSD 840 PRO Series, S/N:S12RNEAD322171L, FW:DXM04B0Q
    Disk /dev/sdb - 2013 MB / 1920 MiB - CHS 1022 62 62, sector size=512 - SMI USB DISK, FW:1100
    Disk /dev/sdc - 4210 MB / 4015 MiB - CHS 1020 130 62, sector size=512 - Generic Flash Disk, FW:8.07
    Disk /dev/mapper/arch_root-image - 1478 MB / 1410 MiB - 2887680 sectors, sector size=512
    Disk /dev/dm-0 - 1478 MB / 1410 MiB - 2887680 sectors, sector size=512
    Partition table type (auto): Intel
    Disk /dev/sda - 256 GB / 238 GiB - Samsung SSD 840 PRO Series
    Partition table type: EFI GPT
    New options :
    Dump : No
    Align partition: Yes
    Expert mode : Yes
    Analyse Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63
    hdr_size=92
    hdr_lba_self=1
    hdr_lba_alt=500118191 (expected 500118191)
    hdr_lba_start=34
    hdr_lba_end=500118158
    hdr_lba_table=2
    hdr_entries=128
    hdr_entsz=128
    hdr_size=92
    hdr_lba_self=500118191
    hdr_lba_alt=1 (expected 1)
    hdr_lba_start=34
    hdr_lba_end=500118158
    hdr_lba_table=500118159
    hdr_entries=128
    hdr_entsz=128
    Trying alternate GPT
    Current partition structure:
    Trying alternate GPT
    search_part()
    Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63
    FAT32 at 0/32/33
    FAT1 : 4110-6150
    FAT2 : 6151-8191
    start_rootdir : 8192 root cluster : 2
    Data : 8192-2097151
    sectors : 2097152
    cluster_size : 8
    no_of_cluster : 261120 (2 - 261121)
    fat_length 2041 calculated 2041
    set_FAT_info: name from BS used
    FAT32 at 0/32/33
    MS Data 2048 2099199 2097152 [NO NAME]
    FAT32, blocksize=4096, 1073 MB / 1024 MiB
    NTFS at 146/251/42
    filesystem size 249593856
    sectors_per_cluster 8
    mft_lcn 786432
    mftmirr_lcn 2
    clusters_per_mft_record -10
    clusters_per_index_record 1
    NTFS part_offset=1209008128, part_size=127792054272, sector_size=512
    NTFS partition cannot be added (part_offset<part_size).
    NTFS at 146/251/42
    filesystem size 249593856
    sectors_per_cluster 8
    mft_lcn 786432
    mftmirr_lcn 2
    clusters_per_mft_record -10
    clusters_per_index_record 1
    MS Data 2361344 251955199 249593856
    NTFS, blocksize=4096, 127 GB / 119 GiB
    recover_EXT2: s_block_group_nr=0/160, s_mnt_count=1318/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
    recover_EXT2: s_blocksize=4096
    recover_EXT2: s_blocks_count 5242880
    recover_EXT2: part_size 41943040
    MS Data 251955200 293898239 41943040
    ext4 blocksize=4096 Large file Sparse superblock, 21 GB / 20 GiB
    recover_EXT2: s_block_group_nr=0/80, s_mnt_count=1317/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
    recover_EXT2: s_blocksize=4096
    recover_EXT2: s_blocks_count 2621440
    recover_EXT2: part_size 20971520
    MS Data 293898240 314869759 20971520
    ext4 blocksize=4096 Large file Sparse superblock, 10 GB / 10 GiB
    recover_EXT2: s_block_group_nr=0/706, s_mnt_count=1317/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
    recover_EXT2: s_blocksize=4096
    recover_EXT2: s_blocks_count 23156049
    recover_EXT2: part_size 185248392
    MS Data 314869760 500118151 185248392
    ext4 blocksize=4096 Large file Sparse superblock, 94 GB / 88 GiB
    Results
    P MS Data 2048 2099199 2097152 [NO NAME]
    FAT32, blocksize=4096, 1073 MB / 1024 MiB
    P MS Data 2361344 251955199 249593856
    NTFS, blocksize=4096, 127 GB / 119 GiB
    P MS Data 251955200 293898239 41943040
    ext4 blocksize=4096 Large file Sparse superblock, 21 GB / 20 GiB
    P MS Data 293898240 314869759 20971520
    ext4 blocksize=4096 Large file Sparse superblock, 10 GB / 10 GiB
    P MS Data 314869760 500118151 185248392
    ext4 blocksize=4096 Large file Sparse superblock, 94 GB / 88 GiB
    interface_write()
    1 P MS Data 2048 2099199 2097152 [NO NAME]
    2 P MS Data 2361344 251955199 249593856
    3 P MS Data 251955200 293898239 41943040
    4 P MS Data 293898240 314869759 20971520
    5 P MS Data 314869760 500118151 185248392
    simulate write!
    TestDisk exited normally.
    ext4 blocksize=4096 Large file Sparse superblock, 94 GB / 88 GiB
    Now the question is: Can I - using testdisk or any other tool - recover those partitions successfully so I will be able to boot again afterwards? I tested and I could mark them as:
    P Primary
    Any help will be greately appreciated.
    Best regards
    Last edited by blablubb1234 (2014-07-08 09:20:08)

    Issue resolved If you care to know how, read on:
    Looking at the disk using gdisk was doing no good. Neither of the recovery options in gdisk did the trick.
    I then returned to testdisk and restored the partitions (successfully). However, afterwards I was greeted by shell telling me the root device was not found (seems like UUIDs get changed when one restores them using testdisk). Adjusting the PARTUUID for root in <EFI SYSTEM PARTIITION>/boot/refind_linux.conf did the trick and I could boot up Archlinux again.
    Windows 7 still didn't boot telling me the required device was inaccessible (probably wrong UUID, too). I could however not restore/edit Windows' BCD using bcdedit, see my post Status: 0xc0000225 boot selection failed; required device inaccessible:
    To make a long story short: Removing bcd and running autorecovery from withing Windows RE successfully created a new bcd. Unfortunately, Windows writes its backup bootloader at <EFI SYSTEM PARTITION>/boot/EFI/Boot/bootx64.efi. This file originally was a copy of refind_x64.efi which I need to put at that location to be able to dualboot. After chrooting to my Arch system I could restore bootx64.efi, create a new fstab and everything is running fine now again.
    Best regards and thanks for the help.

  • How do you exit the Arch Linux installer?

    How do you exit the Arch Linux installer? I decided to install windows before installing Arch Linux because I want to dual-boot/with those operating systems.
    What command should I type to exit & eject my Install CD?

    reset button?
    I think it depends on far into the process you are, if you are formatting the drive anew then it shouldn't matter much when, where, or how
    Best of Luck,
    Pat Jr.
    Last edited by PatJr (2009-01-21 14:49:42)

  • Arch Linux Programming Language Logos

    *update*
    I've created a page for the logos on my site: http://xyne.archlinux.ca/img/arch_linux … age_logos/
    *edit*
    This started out with just the Arch Linux Haskell logo (I really liked the new Haskell logo when I saw it and felt inspired). After encouragement from others I've made some more logos. If you request something, please suggest the appropriate logo for the language (and maybe link to it... preferably to an svg file).
    Haskell
    The cutout and grey colors are based on the new Thompson-Wheeler logo.
    svg: http://xyne.archlinux.ca/img/arch_linux … l_logo.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_2.svg
    These colors are from the haskell.org site logo.
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_3.svg
    Python
    svg: http://xyne.archlinux.ca/img/arch_linux … n_logo.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_2.svg
    Java
    svg: http://xyne.archlinux.ca/img/arch_linux … a_logo.svg
    Ruby
    Son of a dirty bitch was this more complicated then I'd expected. When I found the Ruby logo svg I was thinking "nice, this should be straightforward" until I opened it in Inkscape. The vector image was so dirty I ended up recreating the gem shape manually using the old one as a guide. I don't mind though... it showed me how to do point and path snapping and some other things.
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_2.svg
    with thinner lines:
    svg: http://xyne.archlinux.ca/img/arch_linux … y_logo.svg
    Shell
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_3.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_4.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_7.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_8.svg
    other versions:
    svg: http://xyne.archlinux.ca/img/arch_linux … l_logo.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_2.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_5.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_6.svg
    Tcl
    svg: http://xyne.archlinux.ca/img/arch_linux … l_logo.svg
    C and C++
    I'm not really happy with either of these... plain letters lack symbology and the colors are arbitrary. Anyway, I modelled the C on the impact font (but didn't actually use Impact as it's still a commercial font). The color for the C logo comes from the color used on the cover of the K&R book: http://en.wikipedia.org/wiki/File:Kr_c_prog_lang.jpg
    svg: http://xyne.archlinux.ca/img/arch_linux … C_logo.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … P_logo.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … p_logo.svg
    Perl
    This one was a bit complex too but it taught me how to take a very small image with dirty edges and convert it into a smooth vector image using GIMP and Inkscape.
    The color is from The Perl Foundation's onion logo.
    svg: http://xyne.archlinux.ca/img/arch_linux … l_logo.svg
    TeX & LaTeX
    svg: http://xyne.archlinux.ca/img/arch_linux … x_logo.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … x_logo.svg
    Lua
    svg: http://xyne.archlinux.ca/img/arch_linux … a_logo.svg
    Fortran
    svg: http://xyne.archlinux.ca/img/arch_linux … n_logo.svg
    Scala
    This one uses semi-transparency so silhouette/threshold versions (e.g. all black) may not look good.
    svg: http://xyne.archlinux.ca/img/arch_linux … a_logo.svg
    Lisp
    This is another one that I'm not sure about. I created the parentheses and lambda myself because I wasn't happy with any of the (free) fonts. Suggestions for improvement are welcome.
    *edit*
    I've changed the () following andre.ramaciotti's suggestion. I've also changed the colors.
    The colors and alien are based on Conrad Barski's Lisp logo.
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_2.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_4.svg
    Other versions:
    svg: http://xyne.archlinux.ca/img/arch_linux … p_logo.svg (original (λ) that I created)
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_3.svg ((λ) using bitstream vera)
    ASM
    svg: http://xyne.archlinux.ca/img/arch_linux … m_logo.svg
    PHP
    svg: http://xyne.archlinux.ca/img/arch_linux … p_logo.svg
    Clojure
    svg: http://xyne.archlinux.ca/img/arch_linux … e_logo.svg
    punt
    http://bbs.archlinux.org/viewtopic.php?id=73888
    with semi-transparency:
    svg: http://xyne.archlinux.ca/img/arch_linux … t_logo.svg
    without semi-transparency:
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_2.svg
    LOLCODE
    At Dieter@be's request (this is just a joke)
    svg: http://xyne.archlinux.ca/img/arch_linux … e_logo.svg
    kthxbai
    MySQL
    svg: http://xyne.archlinux.ca/img/arch_linux … l_logo.svg
    PostgreSQL
    svg: http://xyne.archlinux.ca/img/arch_linux … l_logo.svg
    Programming-related:
    Vim
    This one took a while because I had to trace the Vim logo by hand first and then I had to manually adjust several paths to get the right outlines. I think the effort was worth it though.
    svg: http://xyne.archlinux.ca/img/arch_linux … m_logo.svg
    Emacs
    Here's another one that uses semi-transparency (for the "shadows").
    svg: http://xyne.archlinux.ca/img/arch_linux … s_logo.svg
    Git
    These use semi-transparency too.
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_2.svg
    svg: http://xyne.archlinux.ca/img/arch_linux … logo_3.svg
    Miscellaneous
    http://bbs.archlinux.org/viewtopic.php? … 06#p570206
    Last edited by Xyne (2010-12-26 01:21:27)

    milomouse wrote:Oooh... Requests? If so, my vote is for a TCL/TK version, albeit not a very popular choice, heh.
    http://www.demailly.com/tcl/about/logos.html
    or maybe
    http://www.tcl.tk/images/tclp.gif
    I've added a Tcl logo. I used the svg image from Wikipedia because it was the neatest way to do it. I used the colors from the second logo.
    MOD MESSAGE
    Please move this to the artwork forum. I'm so used to posting threads in this forum that I didn't check if it was the best place for it.

  • Recovering earlier installed Windows 7 after installing Arch Linux

    I'm trying to boot windows on my ASUS notebook.
    There was windows 7 from the very beginning (disks C:\ and D:\), then I divided disk D:\ on several partitions and installed Arch Linux. I overwrited Windows boot information by boot part of Linux. Now I want to recover windows, that I still have on hard drive. It doesn's matter what there will be: dualboot or only windows (but dualboot is prefered).
    Disk info:
    [jhon@fckrsns ~]$ sudo fdisk -l
    Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: 1AFC9DFF-CD3B-4CE1-8CAF-41C3E5B75772
    Device Start End Size Type
    /dev/sda1 2048 411647 200M EFI System
    /dev/sda2 411648 673791 128M Microsoft reserved
    /dev/sda3 673792 586731519 279.5G Microsoft basic data
    /dev/sda4 586731520 691589119 50G Linux filesystem
    /dev/sda5 1412718592 1465147391 25G Windows recovery environment
    /dev/sda6 691589120 901304319 100G Linux filesystem
    /dev/sda7 901304320 1412718591 243.9G Microsoft basic data
    [jhon@fckrsns ~]$ lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 698.7G 0 disk
    ├─sda1 8:1 0 200M 0 part /boot
    ├─sda2 8:2 0 128M 0 part
    ├─sda3 8:3 0 279.5G 0 part
    ├─sda4 8:4 0 50G 0 part /
    ├─sda5 8:5 0 25G 0 part
    ├─sda6 8:6 0 100G 0 part /home
    └─sda7 8:7 0 243.9G 0 part
    sr0 11:0 1 1024M 0 rom
    [jhon@fckrsns ~]$ lsblk -f
    NAME FSTYPE LABEL UUID MOUNTPOINT
    sda
    ├─sda1 vfat 4DEB-D6D2 /boot
    ├─sda2
    ├─sda3 ntfs OS 62364BE9364BBCB3
    ├─sda4 ext4 c4da4683-871a-49fa-96a3-4da11387d31d /
    ├─sda5 ntfs Recovery 8ECE4F50CE4F2FAF
    ├─sda6 ext4 3eba01c6-e422-4542-8442-16064c74a563 /home
    └─sda7 ntfs 3B29E7794F6CD932
    sr0
    OS partition (/dev/sda3):
    [jhon@fckrsns /]$ ls /run/media/jhon/OS
    altera Boot djvureader DrWeb Quarantine eSupport hiberfil.sys MSOCache N56VM.BIN pagefile.sys Program Files Recovery SecurityScanner.dll VisualCLibs
    AsusVibeData bootmgr Documents and Settings eclipse Games Intel MS.Office.2007.Portable.micro.v.1.16 N56VZ.BIN PerfLogs Program Files (x86) $Recycle.Bin System Volume Information Windows
    AVScanner.ini BOOTSECT.BAK DOSBox_SIM END gcc Keil_v5 mtd NVIDIA ProgramData Qt R.G. Catalyst Users
    I tried to recover MBR with different ways:
    with syslinux:
    [jhon@fckrsns /]$ sudo dd if=/usr/lib/syslinux/bios/mbr.bin of=/dev/sda
    0+1 records in
    0+1 records out
    440 bytes (440 B) copied, 0.0226394 s, 19.4 kB/s
    with ms-sys:
    [jhon@fckrsns /]$ sudo ms-sys --partition /dev/sda1
    Start sector 2048 (nr of hidden sectors) successfully written to /dev/sda1
    Physical disk drive id 0x80 (C:) successfully written to /dev/sda1
    Number of heads (255) successfully written to /dev/sda1
    [jhon@fckrsns /]$ sudo ms-sys --mbr7 /dev/sda
    Windows 7 master boot record successfully written to /dev/sda
    But there is still no way to boot windows.
    I run grub-mkconfig before and after these manipulations with MBR:
    [jhon@fckrsns ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-linux
    Found initrd image: /boot/initramfs-linux.img
    Found fallback initramfs image: /boot/initramfs-linux-fallback.img
    No volume groups found
    done
    [jhon@fckrsns /]$ sudo os-prober
    /dev/cdrom: open failed: No medium found
    No volume groups found
    I installed rEFInd, now I have two choices on boot screen: vmlinuz-linux, which it founded, and my earlier installed grub bootloader.
    Maybe I missed something, but i don't know what exactly.
    Last edited by Jhon (2014-09-28 16:45:38)

    Now I know that I don't need MBR at all (but google told me that recovering windows = recovering MBR..)
    Are there any ways to recover boot information on EFI system partition from Linux without using Windows Live CD and it's bootrec.exe?
    I have bootmgr and bootmgfw.efi files on /dev/sda3 (partition with windows installed), what else I need? Simple copy of bootmgfw.efi to /boot/EFI/Microsoft/Boot/bootmgfw.efi and addition of custom menu item to /etc/grub.d/40_custom does'nt work. There is Windows now in rEFInd and GRUB menus, but there is error on loading.

Maybe you are looking for

  • How to find out who has released the purchase order?

    Hi All, I have a PR number lets say 10231322 and somebody has release it. Could any one please tell me how to find out who has release it? Waiting for your kind replies...... Thanks in advance. Regards, Faisal

  • SOS: Display data in Web DynPro table from database via EJB.

    i build two views : queryView and displayView! displayView: is used to display all query result in the table;these data is bind to a commandBean model(javaBean imported). queryView:   is used to full in different query conditions,then u can pressed a

  • Password settings

    Hello all, I created a pdf form with Adobe LiveCycle Designer ES 8.2  . It works perfectly, but now I need to set a password to prevent users (from my company) to be able to read all the javascript code behind the form, for security matters. I mean,

  • Red flashes created during transcode process

    Hi everyone, Does anyone know why my one frame red flashes are being created during the transcode process of my DVD's? When i watch my files ready to create the DVD there are no red flashes and the file plays fine. When i create the DVD with menus et

  • Oracle sga advisor results

    hello all, When querying this view in regards to the v$sga_shared_pool advisory , i get results but not sure how to interpret the ESTD_LC_TIME_SAVED column ? It's a time in seconds benchmark to what exactly ? EST_SIZE FACTOR ESTD_LC_SIZE ESTD_LC_TIME