maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   /home/MyDocs doesn't mount after repartitioning (https://talk.maemo.org/showthread.php?t=58700)

fromthehill 2010-07-18 19:33

/home/MyDocs doesn't mount after repartitioning
 
I found the space allocated to /home too small so I used this tutorial to swap the /home and the /MyDocs partition

I have succesfully created /home on the large partition and the device detected it as /home just like the tutorial said.

In the tutorial at step 5 it states that I should edit '/etc/event.d/rcS-late'
it states that I should insert the line "/bin/mount /home/user/MyDocs" after line 24 which contains "/bin/mount /home || echo "Failed to mount /home partition.". the problem is that line isn't there.

this is my fstab:
Code:

rootfs / rootfs defaults,errors=remount-ro,noatime 0 0
/dev/mmcblk0p1 /home ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
/home/opt /opt none bind
/dev/mmcblk0p2 /home/user/MyDocs vfat noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=100, fmask-0133,rodir 0 0
/dev/mmcblk0p3 none swap sw 0 0

/home/MyDocs is in the fstab but it doesn't mount at boot
how do I get MyDocs back?

I haven't backed up anything from MyDocs since I had no files in there so the new Mydocs doesn't have any folders, is it possible the mydocs folder is detected the same way as the /home folder?

kureyon 2010-07-19 15:38

Re: /home/MyDocs doesn't mount after repartitioning
 
[QUOTE=fromthehill;756031]
Quote:

/home/MyDocs is in the fstab but it doesn't mount at boot
how do I get MyDocs back?
Does it mount if you do it manually?

Code:

/bin/mount /home/user/MyDocs
If it does, then

Quote:

In the tutorial at step 5 it states that I should edit '/etc/event.d/rcS-late' it states that I should insert the line "/bin/mount /home/user/MyDocs" after line 24 which contains "/bin/mount /home || echo "Failed to mount /home partition.". the problem is that line isn't there.
The difference is that maybe that refers to a pre PR1.2 version of the file. Here's an extract from my /etc/event.d/rcS-late file and probably a suitable place to insert that mount command (obviously don't type the <<< & >>>!):

PHP Code:

...
    
mount_home && HOME_MOUNTED=1                                            
                                                                            
    
# If failed to mount /home and system has been already optified - reboot
    
if [ $HOME_MOUNTED -eq 0 ]                                              
    
then                                                                    
      
if [ -/var/lib/maemo-optify-firstboot-do-not-clean-home-opt ]; then 
        telinit 6                                                           
      fi                                                                    
    
else                                                                    
      [ ! -
/home/opt ] && mkdir /home/opt                                 
      
[ ! -/opt ] && mkdir /opt                                           
      
<<</bin/mount /home/user/MyDocs>>>
    
fi                                                                      
                                                                            
    
if [ $ACT_DEAD -eq 0 ]                                                  
    
then                                                                    
      
if [ $HOME_MOUNTED -eq 1 ]                                            
      
then                                                                  
        
if [ -/usr/sbin/maemo-optify-firstboot.sh ]; then                 
            
. /usr/sbin/maemo-optify-firstboot.sh                           
        fi                                                                  
      fi                                                                    
    fi                                                                      
                                                                            
    
/bin/mount /opt || echo "Failed to mount(bind) /opt."                   
                                                                            
    
if [ $ACT_DEAD -eq 0 ]                                                 
    
then                                                                    
      
if [ $HOME_MOUNTED -eq 1 ]                                            
      
then                                                                  
        
if [ -/usr/sbin/maemo-optify-auto-opt.sh ]; then                  
            
. /usr/sbin/maemo-optify-auto-opt.sh                            
        fi                                                                  
      fi                                                                    
                                                                            
      
if [ -/home/preinstalled --/home/user ]                         
      
then                                                                  
        rm 
-rf /home/user                                                   
      fi                                                                    
                                                                            
      
if [ ! -/home/user ]                                                
      
then                                                                  
        
if [ -/home/preinstalled ]                                        
        
then                                                               
          mv 
/home/preinstalled /home/user                                  
        
else                                                                
          
mkdir /home/user                                                  
        fi                                                                  
        cd 
/etc/skel                                                       
        cp 
-. /home/user                                                 
        chown 
-R user:users /home/user                                     
        sync                                                    
      fi                                                        
    fi 
... 

PS. the [ code ] [/ code] tags break formatting! so had to use [ php ] tags.

fromthehill 2010-07-19 16:08

Re: /home/MyDocs doesn't mount after repartitioning
 
it works
thanks :D


All times are GMT. The time now is 05:25.

vBulletin® Version 3.8.8