Why does Terminal freeze whenever I try to access sudo pico?

I'm trying to hide my Windows 7 partition from my desktop, but I don't want to have to unmount it every time I boot into OS X.

I'm trying the /fstab method where I enter "sudo pico /etc/fstab/" into Terminal, and when I type that in, the password line shows but then Terminal completely freezes on me. I was able to log on once before and I want to go back and edit the line since it didn't work, but now it won't let me.

Then, when I try to restart Terminal, I quit out of it and load it up, but all I get is a blank page when I should see my computer's name and such.

MacBook Pro, Mac OS X (10.6.8)

Posted on Mar 1, 2012 8:35 PM

Reply
4 replies

Mar 1, 2012 10:04 PM in response to aarliyu

aarliyu wrote:


I enter "sudo pico /etc/fstab/" into Terminal, and when I type that in, the password line shows but then Terminal completely freezes on me.

The command is wrong; </etc/fstab> is a file, </etc/fstab/> is a directory. Maybe that's the issue on your machine, though it doesn't cause a freeze on mine. (Btw, pico on my machine is actually an alias for nano. I don't recall doing that myself, so it must be an SL default.)


It's not clear from your post if you've created an fstab file or not (I don't think SL has one by default); if you have, that may be the issue. Check with ls. If there is an </etc/fstab> (a file, not a directory), and


$ sudo pico /etc/fstab


still causes a freeze, try to see if you can open it with another text editor, eg, vi.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why does Terminal freeze whenever I try to access sudo pico?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.