USB/mount drive detection issue (using AIR 2)

I'm creating a drive mount listener in Flash Builder.  For the most part, it works well.  Lately, I have had a problem actually getting the event of a drive being mounted.
    var s:StorageVolumeInfo=StorageVolumeInfo.storageVolumeInfo;
     s.addEventListener(StorageVolumeChangeEvent.STORAGE_VOLUME_MOUNT,USBM ounted);
Then the handling method:
    private function USBMounted(e:StorageVolumeChangeEvent):void
        Alert.show("Drive Unmounted");
        printDirectory(e.rootDirectory);
My two questions:
- Has anyone ever used this method to read all drives being mounted (CD, SD card, etc)?
- Is there any way to get this to work using a USB hub?
Thanks

> You can write on "usb" because the right are : drwxrwxrwx
They appear only when I use 'sudo mount -o rw,noauto,async,user,umask=1000' instead of plain 'sudo mount /dev/sdb1 /mnt/usb2'.
I use vfat for that USB stick, so maybe that's why it works for me. The first two listings in your first post show the drives in different order, but of course the mountpoints show that the offending drive is ext2 not vfat, my bad.
Edit: This is how my ext3 USB stick behaves like:
[karol@black test]$ sudo mount /dev/sdb1 /mnt/usb
[karol@black test]$ mount | grep sdb1
/dev/sdb1 on /mnt/usb type ext3 (rw)
[karol@black test]$ ls -l /mnt
total 8
drwxr-xr-x 2 karol users 4096 07-03 01:08 usb
drwxr-xr-x 2 root root 4096 2009-09-14 usb2
This time /mnt/usb is an ext3. As you can see, there's no root, I (karol) an the owner, so I can rw to my heart's content. Maybe you should change the ownership - 'chown' (man chown if you're not familiar w/ that command).
Last edited by karol (2010-07-02 23:05:52)

Similar Messages

  • I tried to export photos from iMac to iPad using a USB flash drive.  The photos are on the drive but when I plug it into the iPad, the iPad says the device requires too much power.  Any ideas of what type of USB flash drive I should use?

    I tried to export photos from iMac to iPad using a USB flash drive.  The photos are on the drive but when I plug it into the iPad, the iPad says the device requires too much power.  Any ideas of what type of USB flash drive I should use?

    You can transfer photos outside of iTunes. I do it all the time. THat said, i have a 50/50 success rate with them. I'd avoid sandisk and kingston, their bundled software triggers the 'too much power' warning.
    I've had mixed luck with lexar, some work, some don't.
    I did have good luck with an older 4 gig geek squad one.
    Look for drives without software on them, without bright LED lights and I haven't gotten any larger than 4 gig to work, but that may just be me.
    For a less troublesome way? h onestly, I use a SD card that I've formatted with the DCIM folder. I've never had one of them trigger the 'too much power' warning. Just make sure they're not SDXC. those don't work.

  • USB Hard drive, permission issue on one partition

    Hi,
    I have an issue with my USB hard drive, when I pluged it the 3 partitions are mounted, and 2 of them grant access to the users group:
    mount
    /dev/sdc6 on /media/usbhd-sdc6 type ext2 (rw,relatime)
    /dev/sdc1 on /media/usbhd-sdc1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    /dev/sdc5 on /media/usbhd-sdc5 type vfat (rw,relatime,utf8,gid=100,umask=002)
    ls -l /media/
    drwxrwxr-x 1 root users 4096 Jun 29 22:21 usbhd-sdc1
    drwxrwxr-x 18 root users 16384 Dec 31 1969 usbhd-sdc5
    drwxr-xr-x 3 root root 4096 Jun 29 22:21 usbhd-sdc6
    I read the wiki page about udev, but I can not solve this issue.
    PS : HAL is removed from my daemons list.

    > You can write on "usb" because the right are : drwxrwxrwx
    They appear only when I use 'sudo mount -o rw,noauto,async,user,umask=1000' instead of plain 'sudo mount /dev/sdb1 /mnt/usb2'.
    I use vfat for that USB stick, so maybe that's why it works for me. The first two listings in your first post show the drives in different order, but of course the mountpoints show that the offending drive is ext2 not vfat, my bad.
    Edit: This is how my ext3 USB stick behaves like:
    [karol@black test]$ sudo mount /dev/sdb1 /mnt/usb
    [karol@black test]$ mount | grep sdb1
    /dev/sdb1 on /mnt/usb type ext3 (rw)
    [karol@black test]$ ls -l /mnt
    total 8
    drwxr-xr-x 2 karol users 4096 07-03 01:08 usb
    drwxr-xr-x 2 root root 4096 2009-09-14 usb2
    This time /mnt/usb is an ext3. As you can see, there's no root, I (karol) an the owner, so I can rw to my heart's content. Maybe you should change the ownership - 'chown' (man chown if you're not familiar w/ that command).
    Last edited by karol (2010-07-02 23:05:52)

  • USB Flash Drive not readable using 10.4.6 but is with 10.3.9

    I noticed that a 32MB USB Flash Drive that used to work on my Powerbook when it was running 10.3.9 became unreadable when I upgraded to 10.4.6. This flash drive still works on my Dell WinXP system and I just tried booting the powerbook off a clone of my 10.3.9 setup (on an external firewire drive) and my flash drive works on that. So it appears to me that 10.4 has introduced a software bug that has disabled support for some flash drives. I will note that I also use a USB compact flash reader for transfering digital pictures and that does work under 10.4.6 so the problem does not affect all USB flash devices.
    Is Apple aware of this? Are they working on it?
    PB 1.5 GHz G4 15   Mac OS X (10.4.5)  

    Have you tried to open it in disk utility? Probably won't, but worth a shot. If not and you don't know who made it, then I'd say your out of luck. Probably time for a new Flash drive.
    A 32meg Flash Drive today is very cheap if you can find one. You can get a 250 meg Flash drive for $20-$30. That's 8 times the storage you have now.

  • USB Hard Drive Permissions Issue

    Hi,
    I just attached a new USB hard drive to my iMac. I would like to make it so only I can have write access to the drive; I want my kids to be able to see the files but not modify or delete.
    I tried by unchecking 'Ignore permissions', and setting permissions where I have read/write, and others have read, but when I switch to one of my kids' accounts, they have full control, and in fact they are shown as owner.
    Thanks for any help you can provide,
    Andy

    Hello Asopos,
    I have difficulty in reading the screenshots, you can post in the corresponding forum or add some comments.
    Set your Country/Region and Language Preferences
    http://technet.microsoft.com/en-us/SelectLocale?fromPage=http%253a%252f%252ftechnet.microsoft.com%252fen-us%252f
    If my understanding is right, in the USB-hard-drive(NTFS), all folders in the USB drive have the unknown account and the root of the drive don’t have the account.
    It is a SID. Possible that this account was removed and permission has not been removed.
    Please take ownership of the folder and check if we can normally deleted the account.
    http://technet.microsoft.com/en-us/library/cc753659.aspx
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • HT1408 How do i transfer  a portion of an iTuunes library from a portable USB hard drive can be used as well. iTunes portion of library from a portable USB hard drive on a PC to a Mac?

    How do i transfer a portion of an iTuunes library from a portable USB hard drive on a PC to a Mac?

    You post in the iTunes forum.
    https://discussions.apple.com/community/itunes

  • Boot drive detection issue [solved]

    Hi,
    I upgraded my Arch install yesterday (pacman -Syu). The last one was four weeks ago. Among the packages updated were the stock kernel 2.6.17 and mkinitcpio, so the update generated another image /boot/kernel26.img.
    Now I am having random errors while booting. One out of two (yes, 50%) boots ends with kernel panic while identifying the root fs type after initramfs and modules have been loaded. Something like "Can't find device dev(0,0)".
    The apparent reason is that sometimes the boot partition is identified as hda2, sometimes as hde2. Because I have the kernel option root=/dev/hda2, boot is successful when boot partition is identified as hda2, and fails with the above message when it is identified as hde2.
    My particular hardware is a Abit Be-6 motherboard (quite old) which has two ide ports and two other ide ports controlled by a Highpoint HPT366 controller (which support DMA 66). My HD is connected to one of those.
    I suspect that the drive detection relies on some kind of information sent by the bios and that this information is sometimes sorted in one order, sometimes in another one, i.e. sometimes the ide ports first, sometimes the hpt366 ports first.
    For information, the install cd-rom would see my drive as hde (always, not 50%) and until yesterday, the boot process would see it as hda (again, always, not 50%).
    So now the questions for you, talented forum participants, are:
    1/ I would like to understand how disk and partition letters/numbers are allocated: why hde2 and not hda2? Can I force the naming to hda2, whatever the Bios says (for example based on a HD ID or a IDE port ID)?
    2/ I read the mkinitcpio wiki. From what I understand, I can configure what modules will be loaded at boot time for detecting my boot drive, either at image generation time, or at boot time with a kernel parameter. Would blacklisting ide modules and leave only hpt366 module help? Conversely, assuming I plug my HD in an IDE port, would blacklisting hpt366 module help?
    Help will be much appreciated.

    Michel F wrote:The only thing is that I guess I have now to include /etc/mkinitcpio.conf in the NoUpgrade list in pacman.conf to avoid surprises when it upgrades.
    The /etc/mkinitcpio.conf file is marked as "backup" in the mkinitcpio package. Therefore, if the default configuration changes, it will be extracted as /etc/mkinitcpio.conf.pacnew and your own configuration won't be touched.

  • USB Drive detection issues

    Hello,
    I have been using a 16 GB Sandisk Cruzer Fit thumbdrive for the past year.  I tried to access it this morning and it has no files on it.  I checked properties and it says 0 out of 0 GB available.  I tried the drive in another computer with success.  I am able to access a 1 GB thumbdrive on this computer...What's the problem?  What other information do I need to supply?

    I also can't perform a system restore. Any suggestions?

  • How can I transfer iTunes backup from my external hard drive to a USB thumb drive via my MacBook Air?

    I sold my MacBook Pro to downsize to a more managable MacBook Air. I backed up iTunes to my external HD before selling my Pro, but don't have room for my whole library to the Air until I upgrade the size of my SSD. I want to see if I can transfer just the iTunes library from my external HD to a thumb drive using my MacBook.
    Also, is there a way to manage and edit my iTunes library on my external HD so I can at least download some of the library to my Air?

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes forums.
    Regards.

  • Airport Extreme Shared USB Hard Drive Performance Issues

    I just picked up a new Air Extreme and attached a new Western Digital Passport via USB powered hub (have printer as well). All is working well, however, I am finding performance (especially copying files from my computer to the network HD) to be quite slow. For example, I was trying to copy a 3GB folder with about 1000 files and the copy dialog indicates that it will take about 30 hours. I was able to copy directly to the HD when plugged into computer's USB in a matter of minutes. When I try to download same folder from the net drive to my laptop, it takes about 1 hour. Note: I have Comcast Cable hi-speed so not sure how much is related to this knowing that they do have different download/upload speeds.
    I would appreciate any feedback, tips and advice on optimizing performance of my USB drive when shared over the network. Thanks.

    How do you have your hard drive formatted? If you are using a Western Digital Passport, you will want to create a separate Mac partition so that you can copy very large files (+4GB). By default, I believe it is FAT32. I had to do this (Mac partition) with my back up drive because I have VMWare Fusion images that easily exceed this.
    The new network drive I attached is also a Western Digital, but I didn't reformat it (yet) as I knew I wasn't going to have large files, but I am wondering if maybe I should do this. Unfortunately, then my Windows machines would not be able to read it easily.

  • HDVsplit scene detect issue using CS4 export

    Okay, I first used HDVsplit to read a HDV tape I made using CS3. It seemed to have some dropped frames at a number of places, so I decided to make a new tape. I had the m2t master files on my hard drive, so I decided to try the cs4 program. I used cs4 to export these files to my sony tape unit. No visible issues. But, when I used HDVsplit to try and read the tape, using scene detect, it looks like it thinks there is a scene detect break like every second. Never saw this issues with CS3. Any ideas?
    Thanks
    Dave

    Well, I just tried with CS3 and it does the same thing.
    Dave

  • HDVsplit scene detect issue using CS3 export

    Okay, I first used HDVsplit to read a HDV tape I made using CS3. It seemed to have some dropped frames at a number of places, so I decided to make a new tape. I had the m2t master files on my hard drive, so I decided to try to make a new tape. I used cs3 to export these files to my sony tape unit. No visible issues. But, when I used HDVsplit to try and read the tape, using scene detect, it looks like it thinks there is a scene detect break like every second. Never saw this issues with CS3 before. Any ideas?
    Thanks
    Dave

    Dont use scene detect? Do you not like to manually capture?
    Scene detect reminds of those old avid systems with the " auto edit" button. If it were only that easy.

  • SATA / PATA Drive Detection Issues

    I have my SATA hard disk on the primary (0) SATA channel and my DVD-RW on the primary PATA channel. This has worked fine since I've had this set up, but I've recently run into some trouble with it.
    I hooked up a PATA hard drive in place of the DVD-RW to pull some data off it. When I tried to boot, it only detected the new drive and couldn't boot from it (Win 2000 blue screen). It didn't even see the original hard drive.
    I messed around with the various modes under "On-chip IDE Configuration" and no matter what I do I cannot get it to detect 2 devices at once. There doesn't seem to be any consistency to the results it produces.
    I have updated to the latest BIOS (2.2).
    Firstly, why can you select SATA / PATA Only, and then keep the other enabled? What is the best setting for my two drives? I originally had it set to PATA Only and keep SATA enabled I think (on advice from people on this board).
    If i'm not using RAID, I can disable "Onboard Promise IDE" right?
    All help greatly appreciated.
    Many thanks in advance.

    The most likely reasons for the SATA to not be detected in the Standard Cmos in the order I would check them:
    1. Data and power cables firmly connected(remove and re-attach to be sure).
    2. Bios>>Integrated Peripherals>>On Chip IDE Config:
        - SATA Keep enabled-Yes
        - Configured as Raid- NO (Yes removes it from the Standard CMOS Features)
    3. Drive no good
    Make sure you have other IDE HDD's removed till you get this working again.
    And yes, if you have nothing attached to Serial3&4, IDE3 you can set the Promise controller to Disabled.
    Edit:
    Oops, I didn't see the last post. Glad you got it!

  • USB Flash Drive Formatting Issue

    Hi,
    I formatted my 16 gig PNY flash drive using OSX to MS-DOS (FAT). So one would think I'd be able to use it with my PC as well. Well, I can't. It's telling me the drive isn't formatted when I plug it into the PC, and when I do format it, I get a measly 200 megabytes. That's it. Am I missing something here? I'm about to snap the flash drive in half. Thanks!
    BB

    Most likely you did not partition the drive properly. Do the following:
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your flash drive (the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to MBR then click on the OK button. Set the format type to MS-DOS. Click on the Partition button and wait until the process has completed.

  • USB Flash Drive Erased after using on MBP?

    I use a Kingston Data Traveler flash drive (256mb) on my Dell PC. I plugged it into my new MBP last night to print out 4 Word Documents. After trying to open them from the flash drive folder (and getting the same error message I get when trying to open a Word file from the desktop), I opened Word and opened the documents from the File menu in Word, printed, ejected my drive, and thought all was well.
    Today, I inserted my Kingston into my Dell and was met with a message saying "This disk is not formatted." After trying to open docs in Word, the message read: "This disk is not formatted or has been formatted for a Macintosh."
    When I tried to access my files on the MBP, the computer tells me "This disk could not be read."
    The folks at AppleCare are blaming Word. I have no idea what to think. All I know is that this drive worked perfectly until I inserted it into the MPB. Has this happened to anyone else? What are my options for salvaging my data?
    Thanks in advance...
    MacBook Pro   Mac OS X (10.4.5)  

    I use a Kingston Data Traveler flash drive (256mb) on
    my Dell PC. I plugged it into my new MBP last night
    to print out 4 Word Documents. After trying to open
    them from the flash drive folder (and getting the
    same error message I get when trying to open a Word
    file from the desktop), I opened Word and opened the
    documents from the File menu in Word, printed,
    ejected my drive, and thought all was well.
    Today, I inserted my Kingston into my Dell and was
    met with a message saying "This disk is not
    formatted." After trying to open docs in Word, the
    message read: "This disk is not formatted or has been
    formatted for a Macintosh."
    When I tried to access my files on the MBP, the
    computer tells me "This disk could not be read."
    The folks at AppleCare are blaming Word. I have no
    idea what to think. All I know is that this drive
    worked perfectly until I inserted it into the MPB.
    Has this happened to anyone else? What are my
    options for salvaging my data?
    Thanks in advance...
    MacBook Pro   Mac OS X (10.4.5)
    Sounds like you accidently reformatted the drive HFS+, so the data may sadly be gone for good. If you didn't backup the files on the flash drive, say onto the Dell's HD, as well, then you should probably do so in future.

Maybe you are looking for

  • Nvidia and libgl-dri conflict

    Hi, I have a problem with pacman, where whenever I try to install the nvidia driver (pacman -Sy nvidia), it says the following: :: nvidia conflicts with libgl-dri. Remove libgl-dri? [Y/n] Remove: libgl-dri Targets: nvidia-1.0.8178-11 Total Package Si

  • Company-wide Desktop Picture on Mavericks Clients

    We're looking at rolling out Mavericks on our systems at work, and I have set up a test machine to make sure everything will work as expected. We have a Lion server that is using Workgroup Manager MCX (instead of Profile Manager, which will change) t

  • Set default value for price unit when creating material master data

    HI: Every could you tell me how to use user-exit or else ways to set default value(such as 1000) for field "Price unit" (MBEW-PEINH) when creating material master data(MM01)? I have try to use Exit:EXIT_SAPLMGMU_001. However, this way cannot respones

  • Get warranty services abroad

    Hi guys I brought a laptop last year in June, now I work in china. Recently, my laptop remind me to change battery. I wonder could I get warranty services in china? and how? and could I replace a free battery from HP? Thanks!

  • Attachment settings

    I have a PDF file which has an embedded ".xls" file in it.  When I try to open it up I get an error message: "Acrobat cannot the file attachment because your PDF file attachment settings do not allow this file type to be opened".  Is there a way to c