Need help with Mac terminal

jobberone

Kane Ala
Messages
54,219
Reaction score
19,659
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.
 

viman96

Thread Killer
Messages
21,558
Reaction score
22,666
jobberone;4973478 said:
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.

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
 

Kilyin

Well-Known Member
Messages
8,041
Reaction score
244
jobberone;4973478 said:
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.

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
 

viman96

Thread Killer
Messages
21,558
Reaction score
22,666
If you are in a vi session then do this:

hit esc key
shift :
wq!
 

jobberone

Kane Ala
Messages
54,219
Reaction score
19,659
viman96;4973542 said:
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

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 ****.
 

jobberone

Kane Ala
Messages
54,219
Reaction score
19,659
I don't have the slightest idea what the heck you guys are talking about.
 

Kilyin

Well-Known Member
Messages
8,041
Reaction score
244
jobberone;4973551 said:
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 ****.

Try apple key-o or ctrl-o to save.

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

viman96

Thread Killer
Messages
21,558
Reaction score
22,666
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.
 

Kilyin

Well-Known Member
Messages
8,041
Reaction score
244
viman96;4973560 said:
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.

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.
 

jobberone

Kane Ala
Messages
54,219
Reaction score
19,659
viman96;4973560 said:
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.

It says permission denied.
 

viman96

Thread Killer
Messages
21,558
Reaction score
22,666
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.
 

viman96

Thread Killer
Messages
21,558
Reaction score
22,666
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.
 

jobberone

Kane Ala
Messages
54,219
Reaction score
19,659
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.
 

Meat-O-Rama

Vegetarians are so stupid.
Messages
2,615
Reaction score
614
Any reason not to use FAT, since that can be read/written natively by both OSes?
 

jobberone

Kane Ala
Messages
54,219
Reaction score
19,659
Meat-O-Rama;4973607 said:
Any reason not to use FAT, since that can be read/written natively by both OSes?

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?
 

Kilyin

Well-Known Member
Messages
8,041
Reaction score
244
jobberone;4973628 said:
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?

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.
 

jobberone

Kane Ala
Messages
54,219
Reaction score
19,659
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?
 

Kilyin

Well-Known Member
Messages
8,041
Reaction score
244
jobberone;4973675 said:
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?

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.
 
Top