maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   I messed up my $HOME! (https://talk.maemo.org/showthread.php?t=28810)

luis 2009-05-07 13:42

I messed up my $HOME!
 
Hi,
I had a brilliant idea to make room: to move my /home/user to the internal memory card, and make a link:

ln -s /media/mmc2/HOME /home/user

Soon I discovered that my brilliant idea was stupid. First, because my gnome setups are not saved. Secondly, because when I plug the N800 to my PC, /media/mmc2 gets unmounted making another mess...

So, what to do? Do I need to revert my brilliant idea and copy everything back to /home/user?

Thanks!
L.

ekul 2009-05-07 18:42

Re: I messed up my $HOME!
 
you would need to use a real file system like ext2 or 3. mounting it at /home rather then use a symlink would make sense as well

qole 2009-05-07 19:35

Re: I messed up my $HOME!
 
Quote:

Originally Posted by luis (Post 285202)
So, what to do? Do I need to revert my brilliant idea and copy everything back to /home/user?
L.

Yes, put /home/user back, but you can symlink other parts of home, for instance the document directories under MyDocs. Find out what specific directories are using up the most space, and symlink only those ones.

And yes, you can only symlink directories that can be stored on FAT partitions, so no executables, symlinks, etc are possible inside the symlinked directories.

luis 2009-05-07 20:02

Re: I messed up my $HOME!
 
Quote:

Originally Posted by qole (Post 285327)
Yes, put /home/user back, but you can symlink other parts of home, for instance the document directories under MyDocs. Find out what specific directories are using up the most space, and symlink only those ones.

I had that way, but so many things symlinked that I thought it would be better to.... :P

Quote:

And yes, you can only symlink directories that can be stored on FAT partitions, so no executables, symlinks, etc are possible inside the symlinked directories.
I think you meant the opposite. You can symlink to ext2/3. And my card is ext3, so it should be no problems. But for some reason it didn't work. Not sure why.

EDIT: I put /home/user back, and everything went back to normal.

Thanks!!!!

L.

qole 2009-05-07 23:26

Re: I messed up my $HOME!
 
Sorry I wasn't clear, and I was even a bit wrong. If you are using your standard SD card (which should have a FAT partition as the first partition for a few good reasons), then you will be symlinking to FAT, which is lacking a few things that are available on ext2/ext3 partitions.

luis 2009-05-08 01:51

Re: I messed up my $HOME!
 
Quote:

Originally Posted by qole (Post 285398)
Sorry I wasn't clear, and I was even a bit wrong. If you are using your standard SD card (which should have a FAT partition as the first partition for a few good reasons), then you will be symlinking to FAT, which is lacking a few things that are available on ext2/ext3 partitions.

Sure. But I've already reformatted my card to ext3.

Thanks,
L.

qole 2009-05-08 06:17

Re: I messed up my $HOME!
 
You should always leave a token FAT partition on your card to be automounted by Maemo. Please search the forums for the reasons why it isn't an especially good idea to have your SD card entirely formatted as a linux filesystem.

luis 2009-05-11 00:12

Re: I messed up my $HOME!
 
Quote:

Originally Posted by qole (Post 285439)
You should always leave a token FAT partition on your card to be automounted by Maemo. Please search the forums for the reasons why it isn't an especially good idea to have your SD card entirely formatted as a linux filesystem.

Wow... I didn't know. I will search for that. In any case, my card is being automounted nicely as ext3.

EDIT: I searched about ext3, and the problem seems to be the finite write cycle of SD cards. Unfortunately, i do need to use symlinks (my sdcard now has, literally, tens of thousands of links), so I cannot use FAT.

I read to mount the card with the noatime option to save writings. How/where do I do this? Certainly not in the fstab file, that works only for the external card...

Thanks!!
L.

qole 2009-05-11 04:46

Re: I messed up my $HOME!
 
hm, maybe a manual umount / mount...

Code:

umount /media/mmc2
mount -t ext3 /dev/mmcblk0p1 /media/mmc2 -o noatime

also, are you sure it is auto-mounting as ext3? I suspect it is mounting ext2...

luis 2009-05-11 15:26

Re: I messed up my $HOME!
 
Quote:

Originally Posted by qole (Post 286351)
hm, maybe a manual umount / mount...

Code:

umount /media/mmc2
mount -t ext3 /dev/mmcblk0p1 /media/mmc2 -o noatime


This is not practical. The card is automatically mounted each time the device is unplugged from the computer (or turned on). Where is the automouting config?

Quote:

also, are you sure it is auto-mounting as ext3? I suspect it is mounting ext2...
The maemo 'df' command does not say which fs is being assigned to each device, and 'dmesg' says nothing about that. How do I know this?

Thanks, and sorry for the silly questions...

Cheers,
L.


All times are GMT. The time now is 15:08.

vBulletin® Version 3.8.8