USB driver.msi

I am unable to overcome this problem. 
I had this working at one point with 4.7, but then allowed an update and something got messed up.  How can I get around this so I can use Desktop manager and Verizon software to tether?
I have uninstalled the update and tried to go back to 4.7, but isn't working either.
Thank You!

PIII-E
550mhz
386ram
Nvidia TNT 2 model 64
Running Windows xp proffesional sp1 (computer wont run sp2 as it seems does not have the graphics drivers)
Running normal usb ports.
this is what happens:
http://img515.imageshack.us/my.php?image=untitled5nh.jpg
http://img515.imageshack.us/my.php?image=untitled14fi.jpg
http://img515.imageshack.us/my.php?image=untitled20fn.jpg
http://img515.imageshack.us/my.php?image=untitled37rk.jpg
http://img470.imageshack.us/my.php?image=untitled48bn.jpg
The device can work on a normal usb 1.1 port.

Similar Messages

  • Install Windows XP on external USB drive - MSI 915P

    I have a MSI 915P motherboard and i am trying to install Windows XP on my external USB hard drive. Everything is fine installing Windows XP but when it says to reboot the USB drive does not boot. Any help please?

    BIOS is set to boot from USB device. It shows Windows XP Home Edition on my internal drive and XP Professional on my USB drive. Internal boots but USB hangs with a dark screen...  ??? ??? ???

  • MSI P67A-GD65 killed my USB drives

    I recently bought MSI P67A-GD65 and I am having a weird problem: I plugged my seagate usb drive and corsair voyager gt usb flash memory stick into usb 3 port on the motherboard and the stopped working (memory stick is dead and smells burned) and the drive is not recognized as proper usb device anymore - result both of them dead. As I recently used these usb devices only with my computer and a old laptop it looks pretty bad for msi motherboard.
    I have a power adapter with shortcut safety and a descent PSU chieftech GPS 650GB, I do not overclock, when I upgraded my PC I replaced motherboard, cpu, memory and graphic card the other components are the same (PSU etc) and I never had the same problem before
    No the questions:
    1. Did anyone else have the same problem?
    2. How can I diagnose it, I am going to replace my usb drives, but how can I be sure I can use them with my PC?
    3. If it is a msi's fault how can I get reimbursted for my damaged property?

     Why don't you provide the information asked for? So far all you have provided is model of motherboard and other information is so vague it's just about useless.
     Again read the >> Posting Guide << and provide required information.

  • Apple mobile device USB driver is missing and cannot be installed

    Hi,
    My iPod nano (6th gen) is not recognised by iTunes but is recognised by Windows sometimes (once in 2-3 attempts).
    Every time I connect my iPod to my laptop, a window pops up saying "an iPod is detected but could not be identified properly...".
    I looked through apple support page and narrowed down the cause to the driver.
    Apple mobile device USB driver does not show up in Device Manager.
    However iPod does show up under Portable Devices as a camera when iPod is recognised by Windows.
    I tried reinstalling Apple Mobile Device USB Driver as it was shown in the support page (right click on iPod in Device Manager>update driver software>...).
    This did not work (gave me an error saying "the folder you specified doesn't contain a compatible software driver for your device...".
    So I tried another method I found online; extract iTunes installer (itunes6464setup.exe), extract AppleMobileDeviceSupport6464.msi in it, and use the files in it to update driver.
    This gave me the same error.
    It seems that a Windows driver is installed for my iPod (WPD FileSystem Volume Driver); when I opt for "search automatically" in Uptade driver software, this driver shows up with the message "the best driver for your device is already installed".
    Also, my iPod is shown in Devices and Printers with an exclamation mark (when I connect my iPod to my laptop, the exclamation mark shows up only after I click OK on the message window "an iPod is detected but could not be identified properly...")
    Troubleshoot showed "Windows is uninstalling this device (Code 21)".
    I'd appreciate it if someone could help with the situation.
    I'm using Windows 8.1, iTunes 12.1 for Windows 64bit, and iPod nano 6th gen.
    I haven't connected my iPod to my laptop for a long while, but I recall connecting an iPhone to my laptop a while ago and it was recognised just fine.
    After that I updated my Windows from 8 to 8.1, but I don't think it has anything to do with the problem as my iPod wasn't recognised by iTunes before and after the update.
    Thank you in advance!

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases. Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

  • How to install Windows 7 from a USB drive!

    This is even easier than installing Windows XP from a USB drive, and will also reduce the time taken to install Windows 7, it took me about 15 minutes!
    The advice in the guide is also applicable to installing Vista.
    You need basically:
    a USB flash drive at least 4GB in size
    a Windows 7 DVD
    To sum up:
    Format your USB drive, with the NTFS filesystem
    Open Command Prompt as an administrator, and run the Bootsect.exe program off the Windows 7 CD to make the USB drive bootable
    Copy the contents of the Windows 7 DVD to the USB drive
    Restart your PC, press F11 (or whichever key it is) to access the Boot menu, and select your USB drive to boot from
    Full guide here:
    http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/

    Quote from: bnborg on 16-February-11, 10:28:04
    I have done this and it is simple.
    I cleaned and (re)formated an 8GB flash drive under Windows7 using diskpart.  I chose quick format and a fat filesystem.  It doesn't need to be ntfs.  I had diskpart mark the partition active.  I copied the DVD contents to the flash drive.  I also made a folder on it for motherboard drivers.
    After that, I booted the drive on a new machine.  Windows7 setup came up, and didn't find any hard drives, other than the USB flash drive.  I clicked the button to load drivers, and pointed it to the folder I had copied them to on the flash.  Windows installed without problems.
    Hi bnborg..Do u mind sharing with me your motherboard driver folder? I have the MSI U135DX Netbook and each time I hit the button to install Windows 7 it asks me for some mobo driver...Think i might need it to get tru with a successful install..

  • How to install USB driver for Windows?

    I'm trying to connect my LG VS980 phone to a Windows XP computer. I'm having difficulty installing the USB driver.
    After following several false trails, I found what I think is the right file: on a "Product Support" page which says it's for a "G2 Verizon VS980," there's a button labeled, "Install the USB DRIVER / USB DRIVER for Windows / DOWNLOAD." I clicked the button and downloaded a file 8 MB file. Its name is LG. Not LG.exe or LG.msi or LG.zip. Just LG.
    When I double click the file, Windows quite reasonably asks me what program to use to run it. I don't know what program to use any more than Windows does.
    There's a link labeled "Instructions... LG G2 VS980 SOFTWARE UPDATE below the download button. When I click it, it loads instructions for installing software on the phone.
    Can anyone make sense of this for me?

    Orthoducks wrote:
    I'll so my best to answer the questions.
    >...what you're looking to do a transfer with...?
    Initially I want to download pictures taken with the phone's camera. I've considered other uses for a USB connection that I can explore once it's working. I'm puzzled by the question, though. Why should the type of data I want to transfer affect the fact that I can't find an installable driver? I wonder whether my question means the same thing to you as it does to me.
    Because photos and music are the basic media people want to transfer between their phones and computers. (Computers in this sense are laptops, desktops, note books etc.) So the question to you was valid.
    >Also, have you tried any other computers?
    No. Again, I'm puzzled. What difference would another computer make? Would I be able to find a download from one computer that I can't find from another? (Only by blind chance.) Might another computer be able to execute or load a file with no filetype? (Only if it has magical powers.)
    Different computers may work where the computer you own evidently does not work. It is good to check the connection of the device to another computer to rule that out. I will answer the obvious of different operating systems and how they function.
    >And which software version if your phone currently running?
    That question makes sense. Unfortunately I can't answer it. I've looked up how to find the version number, and the instructions tell me to select an "About phone" item in the Settings menu, which doesn't exist.
    Doesn't exist? open the Settings Menu go all the way to the bottom (scroll down) the last entry is "ABOUT PHONE" click it. It will give hardware and software versions operating system number etc. Its there trust me. My wife just bought this phone and loves it.
    >Often times, the device drivers you're prompted to install are supported solely by the computer's software.
    I'm not sure what you're saying here. Taken at face value, it's a trivial and obvious: any driver that one installs on any computing device is supported solely by (i.e., depends on) the device's software. But how does that relate to the question about the version of Android? Android runs on the phone; the driver has to run on the computer.
    You stated you are using an older Windows XP computer, I can tell you I hooked my wife's phone to our Windows 8.1 computer and no drivers were necessary. It came up with an option on the phone screen and I chose USB Mass Storage for the connection. This option is also in the phones settings. Read the manual it has loads of information form you to use.
    The device had a drive letter assigned and it was labeled LG-Network and once you double click it the folders for music, photos, etc. are all there. Via using windows manager you can simply do a copy and paste to and from the different folders and drives with ease.
    Good Luck

  • IPhone 5 iOS 6.1.4 and Windows 7 x64 USB Driver Issues

    Been pulling my hair out with this one for the last week or so and haven't had any luck finding anything on the forums or the web regarding a solution short of a full reinstall of Windows 7 which I am not prepared to do at this time; so hoping someone here can shine some light on this for me
    I have a iPhone 5 that is updated to iOS 6.1.4 and a recently built Windows 7 64-bit machine. All of my other USB devices function fine (keyboard, mouse, Xbox 360 wireless receiver for Windows, and a Seagate 2TB external USB drive). I've downloaded the most recent version of iTunes, installed successfully and then attempt to plug in my phone to sync. I get the standard Windows *ding* that I've attached a device and 1 of 2 things happens (I haven't been able to determine what causes one reaction to happen versus the other): Windows will successfully install the 'Apple USB Mobile Device Driver' successfully and it will appear under my USB devices in Device Manager. However - iTunes will not recognize the phone and I cannot see it in Windows either. In the 'Devices and Printers' snap-in my iPhone will appear under 'Unspecified Devices' as the 'Apple USB Mobile Device'. The iTunes diagnostics fail to find a connected device so the tests fail. As soon as I unplug the device, the strangest thing happens: Windows will start trying to install a device driver and after a few seconds it will fail stating that the "MTP Device Driver" installation failed because the device was unplugged. iTunes also thrown an error "iTunes cannot connect to this iPhone" throwing error code 0XE8000065 (I've also seen error code 0XE8000085 as well)
    After some finagling, I've managed to get Windows to recognize the device under 'Portable Devices' in Device Manager as an "MTP USB Device" using the generic driver. At this point, I've tried updating the driver and manually specifying the Apple USB driver located in the C:\Program Files(x86)\Common Files\Apple\Mobile Device Drivers which updates successfully but then changes the device to "Apple USB Mobile Device" and moves it under the USB Devices in Device Manager; and Windows nor iTunes can see it even still.
    I've tried removing iTunes several times and ensuring that all remnants of the installation are gone (registry and folders on the installation drive) and have disconnected all my USB devices short of the keyboard and mouse and still I get the same results. At this point, I'm afraid that a re-install of Windows is going to be the solution; but it's a drastic one (I have a SSD drive where Windows is installed along with all of my games for faster load times/better performance and do not want to have to redownload\reinstall all of them) and I'm not prepared to undertake it at this time, which is why I'm posting here
    I've used a utility called USBDeview that sees my phone is connected - so I know from a functional standpoint that my USB ports are good and working. I also know the cable is good too - my daughter's PC (Windows 7 32-bit with NO iTunes) immediately sees the device when I plug it in, installs the drivers, recognizes it as an iPhone and I can then see/browse it in Windows Explorer like I would normally expect. My work PC (Windows 7 64bit, NO iTunes) sees the device just fine as well. I would immensely appreciate anyone that has seen this issue or has any additional solutions I can try.
    It's also worth mentioning that I've never used Kapersky antivirus so the UPPERFILTERS value in the registry that I've seen as a solution on some forums is not present on my machine. I'm using Microsoft Security Essentials as my antivirus (no flaming please lol - it meets my needs and is extremely lightweight, which is why I'm using it on a gaming rig) and it's not indicating any issues. I've also tried running iTunes as an administrator (even though my account is a local admin on the machine) and that does not have any effect either.
    If there is anything I left out, please let me know; and I thank you in advance!

    AphexTwin wrote:
    - no Apple input?
    Of course not.  Didn't you bother to read the TOU of this forum?  This is a USER TO USER technical support forum.  Apple doesn't post here.

  • The USB drive on my computer is no longer working. How can I transfer my iPod libarary to another computer

    The USB drive on my computer is no longer working. How can I transfer my iPod library to another computer.

    Try:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • Connected usb driver is not detected in window 8.1

    hey .....
     HP 250 G3 notebook
    connected usb driver is not detected in window 8.1 after update BIOS software ....my current BIOS software version  F.22 .... so plsss...fix this problem......

    @jeet2113 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • New Firewire 800 External Hard Drive and how to use old External USB Drive

    Hi All,
    I have a new LaCie d2 Quadra Hard Disk hard drive 500 GB - FireWire / FireWire 800 / Hi-Speed USB / eSATA-300 on the way, when it arrives I plan to use it as my Time Machine Backup drive with the FireWire 800 connection. I am currently using a Seagate Free Agent USB 2.0 320 GB external drive as my Time Machine disk. The reason for upgrading is the USB drive is slow slow slow! I am not concerned about the data on my old drive and will just wipe it clean using Disk Utility. What I would like to do is use the old drive to archive iTunes 7.7.1 and Aperture 2.0 music and photographs. Can someone give me an idea how to go about doing this?
    Thanks!

    Hi, yes that will copy the whole iTunes..including everything in iTunes..BUT, as you add to your iTunes on the Main HD, with the ext HD I think you will have to manually update anything added. Or dragNdrop the whole thing again.. You could also locate you iTunes music Library & just copy that across..With images once again find your iPhoto library & just copy that across..L

  • How do  I Install Windows 7 on Mac Book Pro via a Bootable USB Drive

    Hi Guys,
    I have a Mac Book Pro 13 inch, Early 2011 Processor  2.3 GHz Intel Core i5 (I initially had OS 10.5.8 which I upgraded to OSX 10.9.4 a few months ago).
    When purchased it, I installed Windows via Super Drive (that being the only time i ever used the super drive). My Windows got corrupted for some reason 2 months ago. Hence, I removed the windows via Bootcamp to perform a fresh install. I discovered my Super Drive was no longer working.
    Thereon I have been trying to install Windows via a bootable USB Drive but am failing to do so. After going through several forums, I have reached the following stage.
    1. Created Bootable Windows USB Drive using Windows USB (http://www.wikihow.com/Create-a-Bootable-Windows-7-or-Vista-USB-Drive). Have used this USB drive to install windows on a DELL Computer
    2. Bootcamp wasnt creating a partition for windows since no Windows Installation disc was being detected in super drive. (Solved it by downloading Toast Titanium and loading the .iso file on a virtual drive).
    3. Boot menu was initially not detecting external drive, so installed rEFIt - An EFI Boot Menu and Toolkit. Now it is detecting the USB Drive.
    Now when I boot from this device, it get a black screen with the message "No bootable device - Insert Boot Disk"
    Request someone to please help me install windows as some softwares which I work with are windows based.

    smartestidiot wrote:
    So my understanding is that my Boot Camp Assistant (BCA), since it does not allow USB installer, it sets NVRAM to boot from Optical Drive. Right?
    Yes.
    So can I change it or update it to another BCA version which supports the same??
    All BCA versions drive the logic based on the Mac Model Identifier. Unfortunately there is no real workaround. .
    Please see https://www.ifixit.com/Guide/MacBook+Pro+13-Inch+Unibody+Early+2011+Optical+Driv e+Replacement/5122
    and https://www.ifixit.com/Store/Mac/Unibody-8x-SATA-SuperDrive-Post-Early-2009/IF16 1-073-2.

  • Global reset of file / folder permissions on a USB Drive

    I just migrated to a new MB Pro. I now have an issue with file permissions on my USB drive that I use for Time Machine and some other external data. I understand (sort of) why the permissions are messed up, because you're forced to come up with a new user name when you migrate your data and applications. That being said, I just want to globally reset / update the permissions on my USB drive and it's data so that I'm the owner; and I can read and write. And I want to save all my data.
    I've started this process going from the "get information" screen, so I think I know how. But it's been running forever. Isn't there some type of universal setting for a drive or does it just need to crunch thru every single file and directory?

    Whatever you've done already it's the wrong thing to do. You cannot arbitrarily change permissions on every file on your backup using the Get Info window. The result will be a complete screwup of all the file permissions on your backup. You will manage to make a simple problem into an unsolvable one.
    Next time you should ask first before you act rather than after when you cannot go back. Since you did this to your TM backup drive about all you can do at this point is erase the drive and start your TM backups from scratch. Of course this doesn't resolve anything for whatever you tried to migrate to your new computer.
    If you migrated your old Home folder to the new computer then first be sure the account has admin status, then log into the account. You should then have full access to all your restored files. You can then delete the other user account.

  • How to stop importing from usb drive going into root ITMS directory

    First time I imported, everything was fine. I was trying to get rid of some duplicates and got rid of one of the main subdirectories (I had "Itunes Music" folder with two main subdirectories, let's call them "Laptop" and "Desktop." I noticed I had many duplicate artists from these, so I deleted the "Laptop" directory. Naturally, all these showed up with asterisks on iTunes. With no easy way to delete them all (can't sort based on asterisk, apparently), I removed EVERYTHING from my Library and attempted to copy over from the USB drive again. This time, the contents of "Laptop" went into the root "iTunes Music" folder (so there were now ~50+ folders including the "Desktop."
    This isn't working for me, since my objective is to get rid of the duplicate work (duplicate tracks I can somewhat stomach, but I also have some duplicate "Artists" which is driving me crazy). I removed everything from the library, deleting it all (~30+GB) and deleted all of the subdirectories from the iTunes Music folder.
    When I went to reimport it all again. I dragged the "Laptop" folder from Finder on the USB drive into the iTunes Music directory again (as I did the first time), recreated the and everything continues to populate the top iTunes music folder. Is there any way to stop this? I want the "Laptop" folder to stay in it's subdirectory structure distinct and separate from the "Desktop" folder so I can ensure I am not unnecessarily increasing my structure.
    One easy (though extremely tedious) alternative could be to import the folders one at a time... but I'd really like to avoid that. But for my first mistake, this wouldn't have been an issue. I haven't changed any settings on iTunes, so please advise!

    I have duplicate (different) stuff on the laptop versus desktop but some unique to each (and all kinda scrambled up). I first started importing on my old G3 ibook. It was slower and chugged harder and some are at really low bitrate, for example, and also lack album art. My XP desktop was made for gaming and is much more powerful, so I always did high bitrate and was much more careful to do all the album art, etc.
    Now I'm trying to consolidate it all on my new MBP... Mostly, though, it's a mess and I've been putting this off for years and it's mostly my fault. My biggest gripe is the large number of duplicate tracks. I can live with these when they're from different albums (compilations mostly), but not when one is a lower bit. I imagine I'm gonna be doing it the hard way, one album/artist at a time...

  • Not able to create More than 1 Partition in USB Drive using kernel32 and DeviceIoControl

    I have successfully created 2 or more partitions in USB drive using DeviceIoControl in C++. Now I am trying to convert this code into C# using kernel32 and DeviceIoControl. But I am not getting more than 1 partition. Can anybody tell me what is wrong
    with this code?
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Diagnostics;
    using System.Runtime.InteropServices;
    namespace PartitionWrapper
    public class IOWrapper
    public static bool CreatePartitions(string selectedDrive)
    bool RetCode = false;
    try
    bool bSuccess = false;
    uint dwBytesReturned = 0;
    IntPtr hDisk = OpenVolume(selectedDrive);
    if (hDisk == null || hDisk == FSConstants.INVALID_HANDLE_VALUE)
    RetCode = false;
    goto FINAL;
    bSuccess = FSStructures.DeviceIoControl(hDisk, FSConstants.IOCTL_DISK_DELETE_DRIVE_LAYOUT, IntPtr.Zero, 0, default(IntPtr), default(uint), ref dwBytesReturned);
    // Get the partition information
    uint PartitionInfomations = (uint)(Marshal.SizeOf(typeof(FSStructures.DRIVE_LAYOUT_INFORMATION_EX)) + 3 * Marshal.SizeOf(typeof(FSStructures.PARTITION_INFORMATION_EX)));
    byte[] DBuffer = new byte[PartitionInfomations];
    GCHandle handle = GCHandle.Alloc(DBuffer, GCHandleType.Pinned);
    FSStructures.DRIVE_LAYOUT_INFORMATION_EX pDriveLayout = (FSStructures.DRIVE_LAYOUT_INFORMATION_EX)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(FSStructures.DRIVE_LAYOUT_INFORMATION_EX));
    IntPtr pDriveLayoutPtr = Marshal.AllocHGlobal(Marshal.SizeOf(pDriveLayout));
    Marshal.StructureToPtr(pDriveLayout, pDriveLayoutPtr, false);
    // bSuccess = FSStructures.DeviceIoControl(hDisk, FSConstants.IOCTL_DISK_GET_DRIVE_LAYOUT_EX, default(IntPtr), default(uint), pDriveLayoutPtr, PartitionInfomations, ref dwBytesReturned);
    pDriveLayout = (FSStructures.DRIVE_LAYOUT_INFORMATION_EX)Marshal.PtrToStructure(pDriveLayoutPtr, typeof(FSStructures.DRIVE_LAYOUT_INFORMATION_EX));
    if (bSuccess || dwBytesReturned != PartitionInfomations)
    RetCode = true;
    else { RetCode = false; goto FINAL; }
    pDriveLayout.PartitionEntry = new FSStructures.PARTITION_INFORMATION_EX[0x16];
    pDriveLayout.PartitionStyle = FSStructures.PARTITION_STYLE.MasterBootRecord;
    pDriveLayout.PartitionCount = 4;
    pDriveLayout.DriveLayoutInformatiton.Mbr.Signature = 0xA4B57300;
    pDriveLayout.PartitionEntry[0] = new FSStructures.PARTITION_INFORMATION_EX();
    pDriveLayout.PartitionEntry[0].PartitionStyle = FSStructures.PARTITION_STYLE.MasterBootRecord;
    pDriveLayout.PartitionEntry[0].Mbr.BootIndicator = true;
    pDriveLayout.PartitionEntry[0].Mbr.RecognizedPartition = true;
    pDriveLayout.PartitionEntry[0].Mbr.PartitionType = 0x0B;
    pDriveLayout.PartitionEntry[0].PartitionNumber = 1;
    pDriveLayout.PartitionEntry[0].StartingOffset = 32256;
    pDriveLayout.PartitionEntry[0].PartitionLength = 3221225472;
    pDriveLayout.PartitionEntry[0].RewritePartition = true;
    pDriveLayout.PartitionEntry[0].Mbr.HiddenSectors = 32256 / 512;
    pDriveLayout.PartitionEntry[1] = new FSStructures.PARTITION_INFORMATION_EX();
    pDriveLayout.PartitionEntry[1].PartitionStyle = FSStructures.PARTITION_STYLE.MasterBootRecord;
    pDriveLayout.PartitionEntry[1].Mbr.BootIndicator = false;
    pDriveLayout.PartitionEntry[1].Mbr.RecognizedPartition = true;
    pDriveLayout.PartitionEntry[1].Mbr.PartitionType = 0x0B;
    pDriveLayout.PartitionEntry[1].PartitionNumber = 2;
    pDriveLayout.PartitionEntry[1].StartingOffset = 32256 + 3221225472;
    pDriveLayout.PartitionEntry[1].PartitionLength = 2147483648; //2147483648;//3221225472;
    pDriveLayout.PartitionEntry[1].RewritePartition = true;
    pDriveLayout.PartitionEntry[1].Mbr.HiddenSectors = 32256 / 512;
    for (int i = 0; i < pDriveLayout.PartitionEntry.Length; i++)
    pDriveLayout.PartitionEntry[i].RewritePartition = true;
    try
    bSuccess = FSStructures.DeviceIoControl(hDisk, FSConstants.IOCTL_DISK_SET_DRIVE_LAYOUT_EX, ref pDriveLayout, PartitionInfomations, default(IntPtr), default(uint), ref dwBytesReturned);
    catch (Exception ex)
    if (bSuccess)
    RetCode = true;
    else { RetCode = false; }
    bSuccess = FSStructures.DeviceIoControl(hDisk, FSConstants.IOCTL_DISK_UPDATE_PROPERTIES, IntPtr.Zero, 0, default(IntPtr), default(uint), ref dwBytesReturned);
    if (bSuccess)
    RetCode = true;
    else { RetCode = false; }
    FINAL:
    // Close the disk handle.
    if (hDisk != null && hDisk != FSConstants.INVALID_HANDLE_VALUE)
    FSStructures.CloseHandle(hDisk);
    catch { return false; }
    return RetCode;
    private static IntPtr OpenVolume(string DeviceName)
    try
    IntPtr hDevice;
    hDevice = FSStructures.CreateFile(
    @"\\.\" + DeviceName,
    FSConstants.GENERIC_EXECUTE | FSConstants.GENERIC_READ | FSConstants.GENERIC_WRITE | FSConstants.FILE_SHARE_READ | FSConstants.FILE_SHARE_WRITE,
    FSConstants.FILE_SHARE_WRITE,
    IntPtr.Zero,
    FSConstants.OPEN_EXISTING,
    0,
    IntPtr.Zero);
    if ((int)hDevice == -1)
    throw new Exception(Marshal.GetLastWin32Error().ToString());
    return hDevice;
    catch { return FSConstants.INVALID_HANDLE_VALUE; }
    internal static class FSConstants
    public const uint FILE_SHARE_READ = 0x00000001;
    public const uint FILE_SHARE_WRITE = 0x00000002;
    public const uint OPEN_EXISTING = 3;
    public const int GENERIC_EXECUTE = 0x10000000;
    public const uint GENERIC_READ = (0x80000000);
    public const uint GENERIC_WRITE = (0x40000000);
    public static IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1);
    public const uint IOCTL_DISK_GET_DRIVE_LAYOUT_EX = 0x00070050;
    public const uint IOCTL_DISK_SET_DRIVE_LAYOUT_EX = 0x7C054;
    public const int IOCTL_DISK_UPDATE_PROPERTIES = 0x70140;
    public const int IOCTL_DISK_DELETE_DRIVE_LAYOUT = 0x0007c010;
    public const int IOCTL_DISK_CREATE_DISK = 0x7C058;
    internal static class FSStructures
    [DllImport("kernel32.dll", EntryPoint = "CreateFile", SetLastError = true)]
    public static extern IntPtr CreateFile(
    string lpFileName,
    uint dwDesiredAccess,
    uint dwShareMode,
    IntPtr lpSecurityAttributes,
    uint dwCreationDisposition,
    uint dwFlagsAndAttributes,
    IntPtr hTemplateFile);
    [DllImport("kernel32.dll", SetLastError = true)]
    public static extern int CloseHandle(IntPtr hObject);
    [DllImport("kernel32.dll", SetLastError = true)]
    public static extern bool DeviceIoControl(
    IntPtr hDevice,
    uint dwIoControlCode,
    [Optional]ref DRIVE_LAYOUT_INFORMATION_EX lpInBuffer,
    uint nInBufferSize,
    [Optional] [Out] IntPtr lpOutBuffer,
    uint nOutBufferSize,
    [Optional] ref uint lpBytesReturned,
    [Optional] IntPtr lpOverlapped);
    [DllImport("kernel32.dll", SetLastError = true)]
    public static extern bool DeviceIoControl(
    IntPtr hDevice,
    uint dwIoControlCode,
    IntPtr lpInBuffer,
    uint nInBufferSize,
    [Optional] [Out] IntPtr lpOutBuffer,
    uint nOutBufferSize,
    [Optional] ref uint lpBytesReturned,
    [Optional] IntPtr lpOverlapped);
    [StructLayout(LayoutKind.Sequential)]
    public struct DRIVE_LAYOUT_INFORMATION_EX
    public PARTITION_STYLE PartitionStyle;
    public int PartitionCount;
    public DRIVE_LAYOUT_INFORMATION_UNION DriveLayoutInformatiton;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 0x16)]
    public PARTITION_INFORMATION_EX[] PartitionEntry;
    [StructLayout(LayoutKind.Sequential)]
    public struct PARTITION_INFORMATION_EX
    [MarshalAs(UnmanagedType.U4)]
    public PARTITION_STYLE PartitionStyle;
    public long StartingOffset;
    public long PartitionLength;
    public int PartitionNumber;
    public bool RewritePartition;
    public PARTITION_INFORMATION_MBR Mbr;
    public PARTITION_INFORMATION_GPT Gpt;
    [StructLayout(LayoutKind.Sequential)]
    public struct PARTITION_INFORMATION_MBR
    public byte PartitionType;
    [MarshalAs(UnmanagedType.U1)]
    public bool BootIndicator;
    [MarshalAs(UnmanagedType.U1)]
    public bool RecognizedPartition;
    public uint HiddenSectors;
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    public struct PARTITION_INFORMATION_GPT
    public Guid PartitionType;
    public Guid PartitionId;
    [MarshalAs(UnmanagedType.U8)]
    public EFIPartitionAttributes Attributes;
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 36)]
    public string Name;
    [Flags]
    public enum EFIPartitionAttributes : ulong
    GPT_ATTRIBUTE_PLATFORM_REQUIRED = 0x0000000000000001,
    LegacyBIOSBootable = 0x0000000000000004,
    GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER = 0x8000000000000000,
    GPT_BASIC_DATA_ATTRIBUTE_HIDDEN = 0x4000000000000000,
    GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY = 0x2000000000000000,
    GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY = 0x1000000000000000
    [StructLayout(LayoutKind.Explicit)]
    public struct DRIVE_LAYOUT_INFORMATION_UNION
    [FieldOffset(0)]
    public DRIVE_LAYOUT_INFORMATION_MBR Mbr;
    [FieldOffset(0)]
    public DRIVE_LAYOUT_INFORMATION_GPT Gpt;
    [StructLayout(LayoutKind.Sequential)]
    public struct DRIVE_LAYOUT_INFORMATION_GPT
    public Guid DiskId;
    public long StartingUsableOffset;
    public long UsableLength;
    public int MaxPartitionCount;
    [StructLayout(LayoutKind.Sequential)]
    public struct DRIVE_LAYOUT_INFORMATION_MBR
    public uint Signature;
    public enum PARTITION_STYLE : int
    MasterBootRecord = 0,
    GuidPartitionTable = 1,
    Raw = 2

    Hello,
    in the links below you can found many informations to help you:
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa365730(v=vs.85).aspx
    http://www.codeproject.com/Articles/696388/Recover-Data-From-Corrupted-Drives-File-Systems-FA
    http://www.functionx.com/vcsharp/fileprocessing/drives.htm
    http://forums.codeguru.com/showthread.php?548305-partitioning-USB-Falsh-drive
    http://forums.codeguru.com/showthread.php?548169-USB-Flash-drive-Partitioning

  • [SOLVED]Mounting usb drives "not authorized" with thunar-volman (XFCE)

    Hi,
    I'm new to Arch (even though I must be approximately at my 15th try at installing it properly) and I have a problem with thunar-volman.
    Whenever I log in as user, and try to mount a usb drive with thunar, let's say I want to plug a drive labeled Ext3_8Go, I get the same message in a pop-up window : "Failed to mount Ext3_8Go (or anything close, not in English in the text), not authorized (that part is in English)"
    My install is :
    - net install
    - partitions : 9Go for /, no swap, no separate /home
    - packages : base and base-devel. The only modifications in the package list is that I remove ppp, pcmciautils, and xfsprogs.
    - config : at the install stage I only modify rc.conf to change LOCALE and HOSTNAME, and pacman's mirrorlist to allow all French mirrors in addition to the one at the top.
    When the usb installation is over, I run this script :
    "installation_xfce.sh"  (there may be some errors left, I modify this script as I learn) :
    #!/bin/bash
    # expected environment : freshly installed archlinux, login : root.
    echo "Are you connected to internet ? If not, please Ctrl+C and reload this script when connected"
    echo "Otherwise, press ENTER to continue installation"
    read var_dummy
    echo "Creation of the user : please type in your user name :"
    read var_username
    useradd -u 1000 -g users -G audio,lp,storage,optical,video,wheel,games,power,network -d /home/$var_username/ -s /bin/bash -m $var_username
    echo "You will now be asked to create the password for this user:"
    passwd $var_username
    # Add servers for pacman to find packages
    cat >> /etc/pacman.conf << EOF
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    [archlinuxfr]
    Server = http://repo.archlinux.fr/\$arch
    [catalyst]
    Server = http://catalyst.apocalypsus.net/repo/catalyst/\$arch
    EOF
    # Install packages
    pacman -Syyu
    pacman -S acpi acpid alsa-oss alsa-plugins alsa-utils catalyst catalyst-utils cpufrequtils cups dbus gstreamer0.10-base-plugins iptables laptop-mode-tools mesa net-tools netcfg ntp pm-utils rfkill rsync sudo ttf-dejavu vim wireless_tools xf86-input-evdev xorg-server xorg-utils xorg-xinit xorg-xinput yaourt conky gamin gnome-icon-theme gnome-keyring gvfs-afc network-manager-applet networkmanager slim slim-themes archlinux-themes-slim hicolor-icon-theme xfce4 xfce4-goodies
    # If pacman failed, better stop the script here, and wait for a network connection
    if [[ $?!=0 ]]
    then
    echo : failed to install packages - check your network connection, or review script
    exit 1
    fi
    # Fix sound issue
    cat > /home/$var_username/.asoundrc << EOF
    pcm.!default{
    type hw
    card 1
    device 0
    ctl.!default{
    type hw
    card 1
    device 0
    EOF
    chown $var_username:users /home/$var_username/.asoundrc
    # Configure video settings for X to use Catalyst
    if [[ ! -e /etc/X11/xorg.conf.d ]]
    then
    mkdir /etc/X11/xorg.conf.d
    fi
    cat > /etc/X11/xorg.conf.d/20-fglrx.conf << EOF
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    EndSection
    EOF
    sed -e 's/top_left/bottom_right/' -e '/alignment/i\double_buffer yes' -e '/CPU Usage/a\${color lightgrey}Temperatures:' -e '/CPU Usage/a\ CPU:$color ${hwmon 0 temp 1}°C' </etc/conky/conky.conf >/home/$var_username/.conkyrc
    chown $var_username:users /home/$var_username/.conkyrc
    # Install clickpad support
    yaourt -S xf86-input-synaptics-clickpad
    # Add french keyboard to X
    sed '/MatchIsKeyboard/a\\tOption "XkbLayout" "fr"' </etc/X11/xorg.conf.d/10-evdev.conf >/etc/X11/xorg.conf.d/10-evdev.conf.new
    mv -f /etc/X11/xorg.conf.d/10-evdev.conf.new /etc/X11/xorg.conf.d/10-evdev.conf
    # Add new daemons, remove old ones, disable hwclock and remove netfs since I don't use it. add it if you need it
    sed '/DAEMONS=/c\DAEMONS=(!hwclock dbus syslog-ng networkmanager laptop-mode acpid @alsa @cupsd @cpufrequtils ntpd crond)' </etc/rc.conf >/etc/rc.conf.new
    mv -f /etc/rc.conf.new /etc/rc.conf
    # Slim login manager ; change theme
    mv /usr/share/slim/themes/archlinux-darch-grey /tmp/
    mv /usr/share/slim/themes/default /tmp/
    rm -r /usr/share/slim/themes/*
    mv /tmp/archlinux-darch-grey /usr/share/slim/themes
    mv /tmp/default /usr/share/slim/themes
    sed '/^current_theme/c\current_theme archlinux-darch-grey' </etc/slim.conf >/etc/slim.conf
    # XFCE login, and thunar launched as a daemon
    sed '/^# exec/c\' </etc/skel/.xinitrc >/tmp/.xinitrc
    sed '/^# .../c\' </tmp/.xinitrc >/home/$var_username/.xinitrc
    cat >> /home/$var_username/.xinitrc << EOF
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc
    # Boot to runlevel 5 now, and run slim then
    sed -e 's/id:3/#id:3/' -e 's/#id:5/id:5/' -e 's|x:5:respawn:/usr/bin/xdm|#x:5:respawn:/usr/bin/xdm|' -e 's|#x:5:respawn:/usr/bin/slim|x:5:respawn:/usr/bin/slim|' </etc/inittab >/etc/inittab.new
    mv -f /etc/inittab.new /etc/inittab
    # Add colored prompt to user and root
    sed '/^PS1/c\' </etc/skel/.bashrc >/root/.bashrc
    cat >> /root/.bashrc << EOF
    PS1='\[\e[0;32m\]\u@\h\[\e[m\] \[\e[0;35m\]\w\[\e[m\] \[\e[m\] \[\e[0;32m\]\t -\[\e[m\] \[\e[1;31m\]\$ \[\e[m\] '
    EOF
    cp /root/.bashrc /home/$var_username/.bashrc
    chown $var_username:users /home/$var_username/.bashrc
    # How does one do that automatically ?
    # Manually add user to sudoers
    EDITOR="vim" visudo
    # Reboot, because it's quick and I'm too lazy to learn how to start all the daemons and others.
    reboot
    I can mount as a user, no password asked, with :
    udisks --mount /dev/sdb2
    but the GUI method tells me "not authorized".
    "groups user" outputs :
    lp wheel games network video audio optical storage power users
    the command "ck-list-sessions" outputs :
    Session2:
    unix-user = '1000'
    realname = ''
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ':0.0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-08-15T08:56:03.716103Z'
    login-session-id = '1'
    Session1:
    unix-user = '1000'
    realname = ''
    seat = 'Seat2'
    session-type = ''
    active = FALSE
    x11-display = ':0.0'
    x11-display-device = ''
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-08-15T08:56:03.573029Z'
    login-session-id = '1'
    For those who don't have time to read the installation script, DBUS is in the DAEMONS list of rc.conf, and .xinitrc launches : exec ck-launch-session startxfce4
    Any idea ?
    Last edited by choubbi (2011-08-15 15:05:04)

    Thanks a lot !
    That worked !
    I stumbled across this part of the wiki several times before, but didn't really understand so I had not tried.
    If anyone's interested in the script, here's the corrected version :
    #!/bin/bash
    # expected environment : freshly installed archlinux, login : root.
    echo "Are you connected to internet ? If not, please Ctrl+C and reload this script when connected"
    echo "Otherwise, press ENTER to continue installation"
    read var_dummy
    echo "Creation of the user : please type in your user name :"
    read var_username
    useradd -u 1000 -g users -G audio,lp,storage,optical,video,wheel,games,power,network -d /home/$var_username/ -s /bin/bash -m $var_username
    echo "You will now be asked to create the password for this user:"
    passwd $var_username
    # Add servers for pacman to find packages
    cat >> /etc/pacman.conf << EOF
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    [archlinuxfr]
    Server = http://repo.archlinux.fr/\$arch
    [catalyst]
    Server = http://catalyst.apocalypsus.net/repo/catalyst/\$arch
    EOF
    # Install packages
    pacman -Syyu
    pacman -S acpi acpid alsa-oss alsa-plugins alsa-utils catalyst catalyst-utils cpufrequtils cups dbus gstreamer0.10-base-plugins iptables laptop-mode-tools mesa net-tools netcfg ntp pm-utils rfkill rsync sudo ttf-dejavu vim wireless_tools xf86-input-evdev xorg-server xorg-utils xorg-xinit xorg-xinput yaourt conky gamin gnome-icon-theme gnome-keyring gvfs-afc network-manager-applet networkmanager slim slim-themes archlinux-themes-slim hicolor-icon-theme xfce4 xfce4-goodies
    # If pacman failed, better stop the script here, and wait for a network connection
    if [[ $?!=0 ]]
    then
    echo : failed to install packages - check your network connection, or review script
    exit 1
    fi
    # Fix sound issue
    cat > /home/$var_username/.asoundrc << EOF
    pcm.!default{
    type hw
    card 1
    device 0
    ctl.!default{
    type hw
    card 1
    device 0
    EOF
    chown $var_username:users /home/$var_username/.asoundrc
    # Configure video settings for X to use Catalyst
    if [[ ! -e /etc/X11/xorg.conf.d ]]
    then
    mkdir /etc/X11/xorg.conf.d
    fi
    cat > /etc/X11/xorg.conf.d/20-fglrx.conf << EOF
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    EndSection
    EOF
    sed -e 's/top_left/bottom_right/' -e '/alignment/i\double_buffer yes' -e '/CPU Usage/a\${color lightgrey}Temperatures:' -e '/CPU Usage/a\ CPU:$color ${hwmon 0 temp 1}°C' </etc/conky/conky.conf >/home/$var_username/.conkyrc
    chown $var_username:users /home/$var_username/.conkyrc
    # Install clickpad support
    yaourt -S xf86-input-synaptics-clickpad
    # Add french keyboard to X
    sed '/MatchIsKeyboard/a\\tOption "XkbLayout" "fr"' </etc/X11/xorg.conf.d/10-evdev.conf >/etc/X11/xorg.conf.d/10-evdev.conf.new
    mv -f /etc/X11/xorg.conf.d/10-evdev.conf.new /etc/X11/xorg.conf.d/10-evdev.conf
    # Add new daemons, remove old ones, disable hwclock and remove netfs since I don't use it. add it if you need it
    sed '/DAEMONS=/c\DAEMONS=(!hwclock dbus syslog-ng networkmanager laptop-mode acpid @alsa @cupsd @cpufrequtils ntpd crond)' </etc/rc.conf >/etc/rc.conf.new
    mv -f /etc/rc.conf.new /etc/rc.conf
    # Slim login manager ; change theme
    mv /usr/share/slim/themes/archlinux-darch-grey /tmp/
    mv /usr/share/slim/themes/default /tmp/
    rm -r /usr/share/slim/themes/*
    mv /tmp/archlinux-darch-grey /usr/share/slim/themes
    mv /tmp/default /usr/share/slim/themes
    sed '/^current_theme/c\current_theme archlinux-darch-grey' </etc/slim.conf >/etc/slim.conf
    # XFCE login, and thunar launched as a daemon (note that the part with 'if [ -d /etc/X11/xinit/xinitrc.d ]" is not present, to avoid mounting problems when logged as regular user)
    cat > /home/$var_username/.xinitrc << EOF
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc
    # Boot to runlevel 5 now, and run slim then
    sed -e 's/id:3/#id:3/' -e 's/#id:5/id:5/' -e 's|x:5:respawn:/usr/bin/xdm|#x:5:respawn:/usr/bin/xdm|' -e 's|#x:5:respawn:/usr/bin/slim|x:5:respawn:/usr/bin/slim|' </etc/inittab >/etc/inittab.new
    mv -f /etc/inittab.new /etc/inittab
    # Add colored prompt to user and root
    sed '/^PS1/c\' </etc/skel/.bashrc >/root/.bashrc
    cat >> /root/.bashrc << EOF
    PS1='\[\e[0;32m\]\u@\h\[\e[m\] \[\e[0;35m\]\w\[\e[m\] \[\e[m\] \[\e[0;32m\]\t -\[\e[m\] \[\e[1;31m\]\$ \[\e[m\] '
    EOF
    cp /root/.bashrc /home/$var_username/.bashrc
    chown $var_username:users /home/$var_username/.bashrc
    # How does one do that automatically ?
    # Manually add user to sudoers
    EDITOR="vim" visudo
    # Reboot, because it's quick and I'm too lazy to learn how to start all the daemons and others.
    reboot
    The important part of the script to solve the problem is :
    cat > /home/$var_username/.xinitrc << EOF
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc

Maybe you are looking for