Partitions I don't use being automounted - Udisks ?

Several partitions on my disks are formatted but are (were) not in /etc/fstab since for the
moment I an not using them (they used to have a 32 bit ARCH version, I am using 64 bit now).
But I started noticing that some programs started showing them (thunar, adeskbar icon changer),
and if I willingly or unwilling clicked on them, they would be mounted under /media with their
labels as device name (/media/free_1, /media/free_2, ...).
This in itself doesn't break anything but it makes no sense to mount dormant partitions.
I suspected udisks, that I know little about, executed "udisks --inhibit-all-polling" to stop
it meddling with my fixed disks, to no avail.
After trial and error I now have the empty partitions in /etc/fstab, noauto, being mounted in
fake directories outside /media:  /free_1, ....
Perhaps someone more knowledgeable can explain to me what this is all about.
I have ARCH 64, fully updated, don't use any desktop manager (only WM, icewm or pekwm), but do
use some programs from the Gnome suite.
My DAEMONS line in /etc/rc.conf is:
DAEMONS=(syslog-ng !dbus hal !network @net-profiles netfs @sensors @ntpd @sshd @crond)
Mektub

By design, Thunar will not show any partition that is in /etc/fstab (except /), but will show the other ones... I don't think udisks has anything to do with this (I don't know what udisks is, though.) So your solution looks ok to me.

Similar Messages

  • How do I change my storage plan? I'm currently being charged 79p a month for a storage plan I don't use and would like to cancel it!

    How do I change my storage plan? I'm currently being charged 79p a month for a storage plan I don't use and would like to cancel this and obtain a refund!
    Please help!

    Following has information about how to cancel (downgrade to the free 5GB plan): iCloud storage upgrades and downgrades - Apple Support

  • I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't

    I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't use.  This month my daughter comes home from College and she accidentally uses 24G.....14 over get blind sided with $140.00 in overages.  I called Verizon today......stopped in to the store today......My neighbor told me they waved charges for her one time.  Lots of charges.....But I'm am getting no help.  Not even an offer of a payment plan to help me out.  I went back just 6 months and I have over paid for 19G.....Seems like they would like to help out their loyal customers!!!!     Does anybody have any suggestions on how to deal with them?   We are not wealthy....or I would just pay this and walk away......

    There is a big misconception in what customers believe a cell carrier is obligated to do.
    You pay a set price to use up to that amount of xx data. It makes no difference if you use it to the paid limit or way under. Its like peace of mind when you don't have to worry about a data counter.
    Your daughter used the data, your plan is quite clear of what overage charges are. Why should or would Verizon wireless just forgive the charges because you are a customer? Your daughter used the data, get the money from her. That is the responsible thing to do.
    There is no "I have been a loyal customer so please remove the $120, or $250, or $2,000.00 since I did not mean to use it"
    Your electric company, or gas company or any other company does not remove valid charges. Why should Verizon wireless?
    Just pay the invoice and don't think you are being mistreated because Verizon is a business and not a charity.
    Good Luck

  • How to have two partitions in windows 7 using bootcamp?

    Hello everybody,
    I've just recently bought a new MacBook Pro, I'm not very familirar with Macintosh. I installed windows 7 using bootcamp but the problem is that I just can see one partition in which I've installed windows.
    actually, I want to partition my 500GB disk to three different partitions as following:
    1) 70GB for Mac
    2) 80GB for Windows
    3) 350GB for Data
    so that I can have third partition both in Mac and Win.
    I searched internet and I found a few documents about it and I followed the instructions but I had no luck of success. one of the instructions I tried is: http://davidseah.com/index-ee.php/wikilab/Creating-2-Windows-Partitions-with-Boo t-Camp/
    Any suggestion would be appreciated.

    1: Those instructions at the link are severely outdated. Don't use them.
    2: Apple expects users to have one Bootcamp partition, one OS X Lion partition and that's it and that's all they are going to hold your hand on.
    (note: there is also a hidden EFI and a Lion Recovery Partition also on the drive.)
    Anything beyond that is getting into major geek terror-tory.
    Of course it's possible, I had my 15" with 7 partitions and booting 4 other operating systems from Lion, Snow, Windows, Linux (with a Linux Swap and a exFAT data). But I had to wipe the entire drive, set up the partitions install a alternate EFI boot program (a program that resides in firrmware) and then install each OS in each partition.
    Since your new to Mac, you should really hold onto Apple's hand and use either a external drive formatted either FAT32(MSDOS) for under 4 GB files sizes (preferred) or exFAT for over 4GB files (not preferred but necessary) in Apple's Disk Utility.
    Windows is as you know, formatted NTFS and OS X is formatted HFS+ Journaled as their partition data formats.
    There is software for Windows called MacDrive which will read and write HFS format, and there is software from Tuxera that will allow OS X to read NTFS format.
    There is a security issue allowing Windows to read HFS, but that should do transferring the small amount of files your going to be using in both operating systems.
    OS X, like Windows, is going to expect files to be in each respective User folders of Music, Pictures and so forth when you open save dialog boxes, open finder windows, open certain programs and so forth. So ideally it's not best to share a partition or really have the user data on another partition at all.
    I know it's a practice on Windows machines to partition data away from boot/programs to reduce defragmentation, on OS X it's not as necessary (except in special cases) as all 2GB sized files and below are written to one space on the drive (if there is room of course)
    Windows 7 still needs to be defragged, however it can be schedualed and you can watch the progress. If you install WIndows, perform all the updates, then install programs, then finally any files you do keep there, it should stay optimized for a quite awhile. Ditton on the OS X side.
    If your going to sharing a grreat quantity of files between the two OS's, use a external drive.
    Apple installs a hybrid MBR in the Bootcamp partition for Windows to use to interact with the GUID partition table (GPT) it uses.

  • How to know  Whether Partition is done for Cube or not

    Hi All,
    I need information regarding Partition of a cube.
    a)How do i know the Partition is done or not for Cube
    b)On what basis we should make parttion of Cube.
    Thanks and Regards,
    C.V.

    There are several threads on partitioning, so it would be a good start for this question (as with any question) to search the BI forums on "Partitioning" and review thsoe first.
    Some basic considerations on partitioning -
    - Your DB must support Range partitioning to permit partitioning your InfoCube. The option will be greyed out if it is not available.
    - InfoCube must be empty to be partitioned.
    - InfoCube can only be partitioned on 0FISCPER or 0CALMONTH.  You can define it so that you have a partition for each month/fiscper, or so that each partition will hold a few or several months of data.
    - Generally, you would not partition small cubes.
    - Thru BW 3.5 Aggregates automatically get partitioned the sme way the InfoCube is partitioned as long as the partitioning characteristic is in the aggregate.  In 2004s, I believe you have options as to whether an aggregate gets partitioned or not.
    - Partitioning may be done for query performance reasons and data administration.  If the queries on the InfoCube regularly run with restrictions/filters on the partitioning characteristic (FISCPER or CALMONTH), the database will "prune" any partitions that do not contain the FISCPER/CALMONTH value(s), so that it does not need to consider them , e.g. most of your users only run a sales query for the current and previous month, but your cube contains 3 years of data.  By partitioning on CALMONTH (we'll assume 1 partition / month), the database will exclude all but the two partitions from consideration.  This could help query performance a lot. or maybe only a little, depending on a variety of other factors.
    Again - it is important that the queries restrict onthe partitioning characteristic to be of any value on query performance.  So don't partition on FISCPER if all the queries use CALMONTH for restrictions.
    The data adminsitration reason you might partition is to improve selective deletion or archiving time.  These processes are capable of using a DB function to Drop the partition, which quickly removes the data from the cube, rather than having to run a resource intensive Delete query.  This only happens if you deletion/archiving criteria is set to remove an entire partition of data.
    Again - review the other threads on the BI forums on Partitioning.  Most questions you have will already have been asked and answered before, and post again on SDN if there is something you still have a question about.

  • My pointer arrow is jumping around.  my windows flip.  i can't close windows--there are no 3 colored dots.i don't use a mouse.  i just downloaded Lion and my mac has been acting weird since.

    ALL OF A SUDDEN , MY POINTER ARROW IS OUT OF CONTROL OR WON'T MOVE.  I DON'T USE A MOUSE.  THE WINDOWS SHAKE LIKE WHEN I'M TOLD I HAVE THE WRONG PASSWORD AND THEN THE WINDOWS FADE, SWITCH AND/OR  FLIP AROUND.  THERE ARE NOT THE 3 DOTS IN THE LEFT-HAND CORNER SO I CAN'T CLOSE WINDOWS WHEN I FINISH WORKING WITH SITES.  MY MAC HAS STARTED ACTED WEIRD SINCE I STARTED USING LION.  HELP!!!!!!!!!!!!!!!

    Hi,
    I work for Dr Pod, an iPod repair company. This sounds to be that the hard drive is dying in the iPod. As it is an older iPod it is out of its one year warranty, the iPod won't be repaired for free by Apple, and you'd need to consider wether it'd be better to have the iPod repaired by an iPod repair company such as my own, or to purchase a new one from Apple.
    If you did choose to purchase a new iPod from Apple, then they do provide 10% off the cost of a new iPod if you exchange in your old one. I'm not sure if this applies to faulty ones though (I have heard of some people being turned away for having a faulty device).
    Hope this helps,
    Mark Sweeney
    Dr Pod Founder

  • What will happen if I don't use apple's hdd?

    My HDD is passed away.
    I'm using Macbook Unibody(A1342) and I will replace the HDD.
    I heard that Apple's HDD has a temperature sensor.
    So that If I don't use that, it will be a problem, as I heard.
    What will happen if I don't use the Apple's HDD?

    The tempeture sensor is on the logic board not the hard drive. Apple doesn't make any hard drives they buy them from other manufacturers.
    For a new hard drive try Newegg.com  
    Regular SATA drives http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380&name=Laptop-Hard-Dr ives&Order=PRICE  Use the list at the left for larger and faster drives.
    SSD drives
    http://www.newegg.com/Internal-SSD/SubCategory/ID-636?Order=PRICE  Use the list at the left for larger and faster drives.
    Or OWC for regular hard drives and SSDs  http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    Here are video instructions on replacing the hard drive on the White Unibody http://eshop.macsales.com/installvideos/macbook_13_09_unibody_hd/
    To transfer your current hard drive I like the applications Carbon Copy Cloner or SuperDuper. They make a bootable copy of everything on your hard drive. http://www.bombich.com/index.html or http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html 
    You'll need a cheap SATA external hard drive case. Put the new drive in the case then format and partition the new drive and clone your old drive to the new one. Check that it's set up right by booting up from the external drive. Then replace your old hard drive with the new one and put your old one in the external case.
    Here's a cheap SATA external hard drive case on Amazon http://www.amazon.com/Vantec-NexStar-2-5-Inch-External-Enclosure/dp/B002JQNXZC/r ef=pd_cp_pc_0
    If you don’t have the tools to open up the MacBook OWC has a set for $5
    http://eshop.macsales.com/item/OWC/TOOLKITMHD/

  • Is TC useful if I don't use Time Machine?

    Long story short, I don't use Time Machine. But I do want storage on my (gigabit, wired) network to which my Macs can backup their internal drives.
    So if I purchase a TC, how does its drive appear in Finder to my Macs? Is it simply a "drive" I can access as easily as the internal HD? Will utilities like Carbon Copy Cloner or Deja Vu treat this like, for example, a locally attached FW external drive? I know TC isn't a NAS, which I see as a benefit, because backups to a 3rd-party NAS are a PITA in OS X (rant for another thread).
    Also, can I setup TC as a WAP off my existing wired network? I assume TC's "bridge mode" suit this purpose?
    Thanks for the help. I've never had multiple Macs before, so network storage is a whole new area for me.

    I don't know how those programs will treat the HDD (new Mac user and haven't used them), but I do know that your Time Capsule drive can be mounted to your desktop through Finder. And from what I've read, I think Carbon Copy can use it just fine. My MBP connects to the Time Capsule when I join my network, but I have to physically mount it either by a script run on startup or by going into Finder and navigating to the TC HDD.
    As for TC being a WAP, you're absolutely right. Run TC in bridge mode, connect it to your current router through one of it's LAN ports (not WAN port) and it will broadcast it's own SSID extending the current network. The wired router will provide DHCP and everything else, and any computers connected to the wired router will be able to access TC's HDD and printer.

  • I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it for copying files on it on mac? I don wanna use it on windows again.

    I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it on my mac for copying files on my passport? I don wanna use it on windows again.

    If you're not going to use the drive on a Windows machine, you should use Disk Utility (Applications>Utilities folder) to erase the drive and format it as "Mac OS Extended (Journaled)" with a single GUID partition (default):
    Good luck,
    Clinton

  • Which partition scheme should i use?

    Hello guys (and maybe ladies), i am new to Linux and i have decided to set sail on an epic quest: Setting up a Linux desktop with Arch.
    I have installed Arch few times on the main victim machine and on another laptop too, so i'm pretty much confident with most of the commands i run (through the forum captcha got me puzzled for a while, lol).
    So, into the topic, i would like to gather suggestions on what partition scheme should i use, i have an 120GB Intel X25-M SSD i intend to install Arch on, RAM amount is 6 gigs.
    From the wiki and forum reading i done so far, i came up with the following SSD torture plan:
    /dev/sdb1 -- root -- 25GB
    /dev/sdb2 -- /var -- 15GB
    /dev/sdb3 -- /home -- rest of the space, somewhere around 80GB
    All are btrfs.
    I intend to install swap later on a rotating storage, or not.
    Arch wiki @ Btrfs :
    "Do not use this filesystem yet unless you know what you are doing and are prepared for potential data loss."
    I may not know what i'm doing, but as long as using a misconfigured system wont render my SSD a piece of salvageable material, i'm ready to test experimental/unstable/new features (except systemd) for the pursuit of performance, the precious bits of data are backed up and i'm ready to hold the wrench
    Sorry for the long reading, any suggestions on the partition scheme? should i not use btrfs after all?
    Bizzare, awkward or just special suggestions will be appreciated too, thanks in advance.
    And here's a third smile
    Last edited by EmigratePenguin (2012-08-07 09:28:41)

    I want to add my (different) setup here, too, to help you decide. My setup is:
    / 15G
    /boot 100M
    /var 10G
    /home rest(91G)
    I also have two systems with seperate /usr, as I like it that way now, but that's a little advanced (though not hard, so if you want to learn, try it). Also, if you want to encrypt your system, make boot seperate as suggested by silentsnake.
    But my most important suggestion if you like to experiment: use LVM. Allocate only limited space to your partitions. I suggest: 10G each, except 100M boot, if you keep /usr seperate, use 3G for root. LVM is really cool and very easy and highly flexible. And it gives you the possibility to add, remove and shift sizes around as you please - I love it! Just leave the free space you have hanging in the volume group and add it where it is needed. If you are feeling lucky or highly flexible, make /boot an LVM partition, but I don't recommend it: I do not see any benefit, only some possible issues.
    As for swap: 6G is enough RAM - if you need swap later (e.g. hibernation) use a swap file (I don't, but I hear it's possible).
    On your file systems: If you are into experimenting, you can choose whatever you like, but I doubt you will be unhappy in any way if you just choose ext3 (though Reiser seems like a nice idea for var).
    Regards,
    javex

  • Time Machine formatted itself on my external drive despite pressing "Don't Use"

    I have an external hard drive that has been in use on/off for years. I even had backups on it (not using Time Machine). I mounted this hard drive, it was taking a while to mount. A prompt came up to ask if I wanted to use this drive as a time machine backup. I said "Don't Use". It hanged. Meanwhile, I opened disk utility twice. Both I had to force quit. After a while I relaunched finder.
    Assuming it would cancel the time machine prompt. Only when did the finder eventually relaunch that the drive mounted to see that all my files where gone and looking in Thermal under ls -a to see their we're spotlight and time machine files along with some oddly named thing. About 1GB Is in use on the drive(I had much more that a gig on it). It is a TB drive
    Here is the output from the ls -a on the volume
    ._.com.apple.timemachine.donotpresent
    .com.apple.timemachine.donotpresent
    .Spotlight-V100
    .fseventsd
    .Trashes
    USBCˆö?␀.␀€␀
    ._.Trashes
    Anyway would a tool like this (http://www.cgsecurity.org/wiki/TestDisk) help get back my files and format back to what I had previously? Or I am going in the wrong direction? What should I do?
    Thanks. If you have any questions please reply below

    Thank you Thomas,
    I should have mentioned that the drive is formated as FAT32 and I  ran verify disk on the drive and this error keep coming up until I stop the process :
    "2013-02-16 12:06:23 +0000: / has entries after end of directory
    2013-02-16 12:06:23 +0000: Truncate? no
    2013-02-16 12:06:23 +0000: Extend? no"
    Will the tools mentioned in you post work with FAT 32? I am looking at Data Rescue 3 becuase of the FileIQ functionality since I know I have obsure file formats on there
    Does this help or it is irrelevant?

  • 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

  • How do I remove the "Web" bar in F4 - I don't use any of the social sites

    A black toolbar with "Web" on the LHS has appeared in my latest version of FF. It is near the top of the page. How do I get rid of it - it is annoying and I don't use any of the sites it has (like Facebook or Twitter etc)

    That didn't come with Firefox4, something else installed that into Firefox.
    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • HT3986 I've had MS Office:mac 2011 on my imac for around 18 months now.  Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it.  I've just done this using the installation dis

    I've had MS Office:mac 2011 on my imac for around 18 months now.  Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it.  I've just done this using the installation disc which, then said the installation had been successful.
    Outlook is still not working.  Can anyone please advise me on what to do next.

    Remove MS Office 2011 completely (here are instructions) and reinstall it.
    It's not a simple or fast process but it is important to follow all of the steps in order to get all the files that Office scatters around. This will not affect your data files, only MS Office and its preferences.

  • Attention!!-don't use OLE object in Reports

    If you are planning to use or is currently using OLE objects in Reports-please don't use it as the object maynot reload in future and your report may not even open in Report Builder.I got this message when opening the report containing OLE object:
    REP-4004: Error occurred while restoring OLE object
    and it refused to open up crashing my days of work.
    The pity is I can't open my report even to remove the OLE object.

    I know that is weird.I placed the object in the same directory-but in vain.Afterall, what's the logic of putting it in the same directory after embedding it?

Maybe you are looking for