1. Welcome to CowboysZone!  Join us!  Come on!  You know you want to!

Need help with Mac terminal

Discussion in 'Off-topic Zone' started by jobberone, Jan 19, 2013.

  1. jobberone

    jobberone Right turn Clyde Staff Member

    38,998 Messages
    4,524 Likes Received
    Installed two SATA drives in enclosure connected via firewire to iMac. Will only read. Want to share drives with Windows based so formatted NTFS. Have tried a downloaded utility that's supposed to make them RW but doesn't work. Running Mountain Lion BTW.

    In terminal now and typed sudo nano /etc/fstab to get to editor.

    Have written in editor
    UUID=C440781A-40A9-ACC4-60C4-ACD2ECACD2E4 none ntfs rw
    UUID=7866522B-6663-4678-8778-46DA8C46DA86 none ntfs rw

    I don't know how to write and save this then exit to restart machine. What do I do from here? Thanks.
  2. viman96

    viman96 Thread Killer

    7,559 Messages
    681 Likes Received
    You want to write the below into /etc/fstab correct?

    UUID=C440781A-40A9-ACC4-60C4-ACD2ECACD2E4 none ntfs rw
    UUID=7866522B-6663-4678-8778-46DA8C46DA86 none ntfs rw

    1. Make a backup copy of fstab (filesystem tab)
    sudo cp /etc/fstab /etc/fstab-20130119

    2. I am assuming you do not know VI. So use echo to update the file.

    sudo echo "UUID=C440781A-40A9-ACC4-60C4-ACD2ECACD2E4 none ntfs rw" >> /etc/fstab
    sudo echo "UUID=7866522B-6663-4678-8778-46DA8C46DA86 none ntfs rw" >> /etc/fstab

    3. Check the file for the updates.

    sudo cat /etc/fstab
  3. Kilyin

    Kilyin Well-Known Member

    8,041 Messages
    244 Likes Received
    vi / vim always begins in command mode. You can press [Esc] key anytime to return to command mode. Press i to insert text. To save and exit from vi / vim, press [Esc] key and type ZZ
  4. viman96

    viman96 Thread Killer

    7,559 Messages
    681 Likes Received
    If you are in a vi session then do this:

    hit esc key
    shift :
    wq!
  5. jobberone

    jobberone Right turn Clyde Staff Member

    38,998 Messages
    4,524 Likes Received
    It will not give me permission to write that. I copied and pasted the above into terminal. I also tried doing it one at a time. I hate this ****.
  6. jobberone

    jobberone Right turn Clyde Staff Member

    38,998 Messages
    4,524 Likes Received
    I am the administrator on the computer BTW but I know nothing.
  7. jobberone

    jobberone Right turn Clyde Staff Member

    38,998 Messages
    4,524 Likes Received
    I don't have the slightest idea what the heck you guys are talking about.
  8. Kilyin

    Kilyin Well-Known Member

    8,041 Messages
    244 Likes Received
    Try apple key-o or ctrl-o to save.

    I don't remember if Apple has a ctrl key.
  9. viman96

    viman96 Thread Killer

    7,559 Messages
    681 Likes Received
    Using vi is not easy if you have never used it. Just type the keys in exact sequence we mentioned and you will be good.
  10. Kilyin

    Kilyin Well-Known Member

    8,041 Messages
    244 Likes Received
    if you do a sudo nano on a file though, I think it uses the Pico derivative text editor? I dunno, I've always hated linux text editors. They're so unnecessarily complicated and obtuse.

    That's why I suggested ctrl-o.
  11. jobberone

    jobberone Right turn Clyde Staff Member

    38,998 Messages
    4,524 Likes Received
    It says permission denied.
  12. viman96

    viman96 Thread Killer

    7,559 Messages
    681 Likes Received
    It definitely drops you in a different type of editor. I playing with it now to see how to use it.

    jobber, give me a few minutes and will let you know what to do next.
  13. Kilyin

    Kilyin Well-Known Member

    8,041 Messages
    244 Likes Received
  14. viman96

    viman96 Thread Killer

    7,559 Messages
    681 Likes Received
    OK first time using this editor but figured out how to save and exit.

    Do you see ^X Exit at the bottom of your screen? Hit control+x keys. Then you should see Y yes and N no and ^C Cancel. Type Y to save and exit.
  15. jobberone

    jobberone Right turn Clyde Staff Member

    38,998 Messages
    4,524 Likes Received
    Ok, thanks all. I figured out how to save and exit. I've done this twice and it still will not do anything but read the device when connected to my iMac.

    I read some earlier and it stated there was a 'fix' when updating from earlier versions of Mountain Lion to 10.8.2 which I have. Now supposedly you can only read NTFS. If that is true then I'm going to be real pissed with Apple.
  16. Meat-O-Rama

    Meat-O-Rama Vegetarians are so stupid.

    2,260 Messages
    52 Likes Received
    Any reason not to use FAT, since that can be read/written natively by both OSes?
  17. jobberone

    jobberone Right turn Clyde Staff Member

    38,998 Messages
    4,524 Likes Received
    No. Only the size of the files. I have a few large files that are Cowboys games and such. What is the maximum size of a file in the FAT32?

    Is it 4 or 3 Gigs?
  18. Kilyin

    Kilyin Well-Known Member

    8,041 Messages
    244 Likes Received
    4.

    there is no reason you can't share any size file though. There are plenty of addons that allow linux to read/write NTFS volumes, which is possibly what you need. When I used to dual boot linux I had something setup to allow me to copy to and from NTFS partitions while in linux. I have the same thing going on my hackintosh, but I rarely boot that machine now. You may want to research that a bit.
  19. jobberone

    jobberone Right turn Clyde Staff Member

    38,998 Messages
    4,524 Likes Received
    So I assume there is no way to connect this to my iMac and use NTFS to both read and write???

    I have a network drive Mybookworld which recognizes the drive enclosure when I hook it up to the USB port in the back of the network drive. It will not however open them from my iMac although I've not checked from a Windows computer. I can hook this up to a Windows computer but it will mean using a laptop and keeping it on all the time which I'd rather not do. Is there another way to share this enclosure with its two SATA HDs with my network?
  20. Kilyin

    Kilyin Well-Known Member

    8,041 Messages
    244 Likes Received
    You mention the enclosure contains two drives? Is it an enclosure using software RAID? if so, that might be why your mac can't see it. You would need the RAID drivers/kexts that allow mac to see that array.

Share This Page