[Urgent] File keeps showing up even though moving to trash!

Discussion in 'Mac Basics and Help' started by kevindk2, Sep 8, 2013.

  1. kevindk2 macrumors newbie

    Joined:
    Aug 21, 2012
    #1
    Hello fellow mac users!

    I have a big problem on my Macbook Pro. I tried doing to SSD tweaks showing here and specifically this one:
    Now the problem is nothing happened when I did it even though i changed the your_hdd_name to Macintosh_HD, so I just left it. When I restart my computer I suddenly lose all my space left and it kept going down. I go to "/Volumes" and see a folder called Macintosh_HD with a lot of GBS in it. I tried to delete it and it keeps coming back. How do I stop this madness?

    I have a dual boot SSD + HDD, i see both the folder and the real Volume. Sorry for the [Urgent] but i'm pretty sure this is wearing out my SSD.

    Image of how it looks like http://gyazo.com/776f4484179f64cdf113642cb5b994ec
     
  2. rocknblogger macrumors 68020

    rocknblogger

    Joined:
    Apr 2, 2011
    Location:
    New Jersey
    #2
    I'm sorry I don't have an answer for you but don't try deleting anything until someone else here gives you some solid advice in how to proceed.
     
  3. kevindk2 thread starter macrumors newbie

    Joined:
    Aug 21, 2012
    #3
    Alright I wont do anything for now. Thanks for replying anyways!
     
  4. Dark Dragoon, Sep 8, 2013
    Last edited: Sep 8, 2013

    Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #4
    Likely the partition on your hard drive was not called "Macintosh_HD" but "Macintosh HD" which in the terminal should either be enclosed with quotes or use a \ before the space, so "Macintosh\ HD".

    So what has happened is:
    1) "sudo ditto /Users /Volumes/your_hdd_name/Users"
    You copied your entire /Users folder on your SSD into the folder /Volumes/Macintosh_HD/Users also on your SSD.

    2) "sudo mv /Users /Users.bak"
    You moved the /Users folder on the SSD to /Users.bak also on the SSD.

    3) "sudo ln -s /Volumes/your_hdd_name/Users /Users"
    You made a symbolic link from /Volumes/Macintosh_HD/Users to /Users

    4) You then realised there was a problem and started deleting the contents of /Volumes/Macintosh_HD/Users which is unfortunately your current /Users folder containing all your files.

    Luckily you should have a backup as "/Users.bak".

    However before you do anything further make sure you have everything backed up to another drive.

    I'm not sure how the system would react to having no /Users folder while it is running so you may need to repair things by booting from the recovery partition, external drive with OSX installed or with it connected to another Mac in target disk mode to issue these commands.

    The general steps I would try are:
    a) Remove the symbolic link "sudo rm /Users"
    b) Restore the backup "sudo cp /Users.bak /Users"
    c) Remove the extra files "sudo rm -r /Volumes/Macintosh_HD/"
    d) Restart and check everything is working correctly
    e) Remove the backup "sudo rm -r /Users.bak/"

    Might want to wait to see if anyone sees a flaw in my commands before trying them though.


    Personally I don't bother with any of those tweaks on my SSD's, with the exception of moving users directory one (I don't do this anymore as its not compatible with FileVault2 and I use a DIY Fusion drive instead). Though when I've done this in the past I've just copied the contents of my home directory onto the HDD and then used System Preferences to repoint. After checking its all working then I delete just my users directory (not the entire /Users).
     
  5. kevindk2 thread starter macrumors newbie

    Joined:
    Aug 21, 2012
    #5
    Ive messed up real bad.. When i enter the command "sudo cp /Users.bak /Users" it replies "cp: /Users.bak: No such file or directory"

    What should i do :confused:?
     
  6. Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #6
    Try:
    1) "cd /"
    2) "ls -a"

    Then post the list of files it outputs.

    Hopefully there is a Users.bak there (though it looks like there isn't) otherwise you'll need to restore from a separate backup.

    Btw the command "sudo cp /Users.bak /Users" would actually need to be "sudo cp -r /Users.bak /Users" (my bad) but if that was the problem it would say "cp: Users.bak is a directory (not copied)." so that isn't the current problem.
     
  7. kevindk2 thread starter macrumors newbie

    Joined:
    Aug 21, 2012
    #7
    Code:
    .			Applications		home
    ..			Library			libpeerconnection.log
    .DS_Store		Network			mach_kernel
    .DocumentRevisions-V100	Shockwave Log		net
    .Spotlight-V100		System			private
    .Trashes		Users			sbin
    .apdisk			Volumes			tmp
    .dbfseventsd		bin			usr
    .file			cores			var
    .fseventsd		dev
    .vol			etc
     
  8. Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #8
    Hmm so there's no Users.bak, so you can't simply restore your /Users folder to how it was.

    Do you have any other backups?


    I know this is too late now, but I personally wouldn't bother with any of those changes for SSD's listed on that site you posted in your first post. Maybe with the exception of enabling TRIM if needed by your SSD. Unless you don't have enough room on your SSD I would leave the /Users folder in its default location and just manually move large files to the HDD from your home folder if you need to.
     
  9. kevindk2 thread starter macrumors newbie

    Joined:
    Aug 21, 2012
    #9
    No I don't have any backups at all. But isn't it possible just to delete it because my Users folder is still in it regular place also. So I have 2 users folders now and I only use the one that is where it always is.
     
  10. Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #10
    Where is your second users folder?

    There should be one in /Volumes/Macintosh_HD/Users
    Which is linked to /Users and so is the same, not a duplicate.

    There would have been a second in /Users.bak, which would have been the original, but it must have been deleted.
     
  11. kevindk2 thread starter macrumors newbie

    Joined:
    Aug 21, 2012
    #11
    http://gyazo.com/f383c07a5a19e4f67056280fc814e9d4 Sorry about the steam notification in the background.
     
  12. kevindk2 thread starter macrumors newbie

    Joined:
    Aug 21, 2012
    #12
    Is it possible to recover from that?


    PS: Still need help
     

Share This Page