AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

How do you mkfs on a USB Mass Storage device?

  • 1.  How do you mkfs on a USB Mass Storage device?

    Posted Wed September 26, 2012 04:10 AM

    Originally posted by: SystemAdmin


    Hi,

    Can anyone help me create a file-system on a USB mass-storage device?

    AIX Version -- 6100-07-02-1150
    USB Drive -- 2TB WD My Book

    I connected the drive via USB and ran:
    
    # cfgmgr
    


    Then I checked the device had been found:
    
    # lsdev | grep usb usb0           Available             USB System Software usbhc0         Available 01-08       USB Host Controller (33103500) usbhc1         Available 01-09       USB Host Controller (33103500) usbhc2         Available 01-0a       USB Enhanced Host Controller (3310e000) usbms0         Available 2.1.2.2     USB Mass Storage
    


    So I tried to create a JFS2 file system, but I get an error:

    
    # mkfs -o log=INLINE,ea=v2 -s 2000G -V jfs2 /dev/usbms0 mkfs: destroy /dev/usbms0 (yes)? yes 0506-260 Warning: -2 (-287340544-
    
    byte) blocks wasted. logform: Format inline log 
    
    for  <y>?y failure in logformat mkfs: 0507-551 Failed to format the log device.
    


    I've google'ing both errors, but there's not much info out there...

    Any help would be appreciated.

    Thanks for reading! :)


  • 2.  Re: How do you mkfs on a USB Mass Storage device?

    Posted Thu September 27, 2012 04:20 AM

    Originally posted by: SystemAdmin


    I've figured it out...

    Don't bother with a JFS2 log:

    
    # mkfs -o ea=v2 -s 2000G -V jfs2 /dev/usbms0 # mount -o log=NULL /dev/usbms0 /mnt/usb