maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   soft linking directory (https://talk.maemo.org/showthread.php?t=47980)

stanigator 2010-03-22 04:23

soft linking directory
 
I would like to link my /home/user/ directory from being on the 128 mb memory portion to the internal or external memory card. How is the linking process done, as I couldn't come up with appropriate search terms for what I'm trying to do? It would be great to hear from you about this. Thanks in advance.

kd_alex 2010-03-23 00:03

Re: soft linking directory
 
I am not sure you can just make a link to accomplish this. I am not a linux expert, but based on what you want to do it seems likely you would have to direct your OS to mount the directory you mentioned onto your external media. This would be done by configuring your fstab file I think(DO THIS AT YOUR OWN RISK).

You could then make a symbolic link that points to the home directory that you mounted on the external media. If you are really interested I do not mind helping you research this further because it would help learn my OS better.

Maybe someone out there has already done this. Or maybe one of the experts can way in on this. Again I say this NOT being an expert.

Also I have a question about this because if your external media was removed, what happens to the mount command??

Good Luck!

jaem 2010-03-23 01:22

Re: soft linking directory
 
Quote:

Originally Posted by kd_alex (Post 578022)
I am not sure you can just make a link to accomplish this. I am not a linux expert, but based on what you want to do it seems likely you would have to direct your OS to mount the directory you mentioned onto your external media. This would be done by configuring your fstab file I think(DO THIS AT YOUR OWN RISK).

Yes, from my understanding of what you're saying, you're wanting to mount another volume/partition as your $HOME. This can be done, and I believe there is a comprehensive thread (and maybe wiki article?) on repartitioning, but it's not for the faint of heart (repartitioning things is an inherently risky process, although if you do it properly and know what you're doing, it's usually fine.) Do keep in mind that whatever you mount as $HOME will have to be a Linux filesystem (e.g. not FAT).
Quote:

Originally Posted by kd_alex (Post 578022)
You could then make a symbolic link that points to the home directory that you mounted on the external media. If you are really interested I do not mind helping you research this further because it would help learn my OS better.

If you mount a partition from external media properly, then it will be /home/user, so no symlinks necessary.

Quote:

Originally Posted by kd_alex (Post 578022)
Also I have a question about this because if your external media was removed, what happens to the mount command??
Good Luck!

Nothing good... What exactly happens will depend on the circumstances, but - just don't do this. ;)

kd_alex 2010-03-23 01:29

Re: soft linking directory
 
is it possible to remove the user directory and replace with a symbolic link to the external media. I think this would accomplish the task of having more space artificially.

Jaem, any thoughts?

clasificado 2010-03-23 11:09

Re: soft linking directory
 
You should do this carefully, the /media/mmc1 directory is automaticaly unmounted when you take out the back cover, and the /home/user isnt intended to be unmounted, several applications may fail by design

ToJa92 2010-03-23 11:15

Re: soft linking directory
 
Quote:

Originally Posted by kd_alex (Post 578022)

Also I have a question about this because if your external media was removed, what happens to the mount command??

I guess you would get a kernel panic after a while. And sometimes the memory card is unmounted by simply folding out the support(there have been reports about this).

Rob1n 2010-03-23 13:27

Re: soft linking directory
 
Can you clarify what device this is anyway - it's not clear. You mention the 128mb memory portion, but I don't think any of the Maemo devices have had that (770 had 64mb, the N800 and N810 both had 256mb, as has the N900).


All times are GMT. The time now is 02:31.

vBulletin® Version 3.8.8