hard-linking /data folders to /home with fstab
So initially I had / on my SSD and /home on my HDD. I just did a clean install of Oneiric but put my entire filesystem including /home on my SSD and instead had my old /home folder mounted at /media/data. I'm now trying to hard-link the two so that whenever I refer to any of my folders in /home it automatically looks in my /media/data folders seamlessly as if they were the same folder. What I did was put the folders into the correct place and then changed the entire /media/data folder owner to my user. Then I added this to the end of /etc/fstab via gksu gedit /etc/fstab:
Code:
LABEL=Data /media/data ext4 defaults 0 0
/media/data/Documents /home/andrew/Documents none bind 0 0
/media/data/Downloads /home/andrew/Downloads none bind 0 0
/media/data/Music /home/andrew/Music none bind 0 0
/media/data/Pictures /home/andrew/Pictures none bind 0 0
/media/data/Videos /home/andrew/Videos none bind 0 0
/media/data/Public /home/andrew/Public none bind 0 0
After I restart it fails to mount the partition so I press "S" to skip and when I log in and try to mount it manually it basically says I can't because it belongs to root. I then remove what I had added to the end of fstab and restart and it boots again and mounts fine (though not hardlinked). Anyone have any clue what may be the problem?
Intel Core i7 970 6/12 (Cores/Threads) 3.2GHz 12MB Cache
6GB DDR3 1866MHz RAM | ATI Radeon HD 5770 1GB GDDR5
60GB SSD (/) | 1TB 64MB Cache HDD (/home)
Ubuntu Oneiric Ocelot 11.10 x64
Bookmarks