How to mount opt folder?
Could anybody write precisely how to mount opt folder from second emmc partition under rescueOS by NIN101? Or how to uninstall package using dpkg -r (or -P) with no access to that folder.
|
Re: How to mount opt folder?
These commands inside the rescueOS shell mount:
1. first the maemo rootfs, 2. second the optfs partition to the home directory of maemo rootfs, 3. third the opt directory inside the maemo rootfs Code:
mmr |
Re: How to mount opt folder?
Btw. it might be sufficient to erase the file /etc/modprobe.d/fcam.conf according to its content:
Quote:
|
Re: How to mount opt folder?
Quote:
Thank you very much. It works. But now I have next problem. When I have tried to remove (commands chroot /mnt/maemo/ then dpkg -P) application blessn900 (which may be the pre-reason of my problems), I got a message as follows: "dsmesock_connect: No such file or directory dpkg: error processing blessn900 (--purge) subprocess pre-removal script returned error exit status 1 Failed to open connection to "session" message bus: (null) Errors were encountered while processing" Do you have any suggestions what to do next? |
Re: How to mount opt folder?
Additional: when I use df command I get information like this: rootfs 1k-blocks used: 11456 available: 0 use%: 100% .
|
Re: How to mount opt folder?
When I have run fsck I got a message:
"The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>". |
Re: How to mount opt folder?
Which file system did you try to repair/check ?
Did you mount additional resources of the running 'rescueOS' to the 'maemo' chroot environment, like that: Code:
mount -o bind /dev/ /mnt/maemo/dev |
Re: How to mount opt folder?
Quote:
|
Re: How to mount opt folder?
All of them, these are directories, that get created/populated at boot time, so the non-running maemo does not work correctly without.
But note the changes of the mount points in the former post, i edited! Sorry for that. |
Re: How to mount opt folder?
So, what should I do now ? I am a little bit confused.
|
Re: How to mount opt folder?
Start rescueOS according to the documentation with the flasher utility, then
Code:
mmr It might be overkill for the removal to use the chroot, but ...?! |
Re: How to mount opt folder?
Quote:
|
Re: How to mount opt folder?
Always a good idea to power down the device, pull the battery, hold the power key for a couple of seconds, then restart the N900.
In rescueOS with mounted maemo rootfs get the info about the last running kernel Code:
ls -al /lib/modules/ Is a complete flashing of the fiasco image possible as a last hope? There was also some info buried deep in the forum to just flash rootfs, that could be extracted from the firmware/fiasco image. Did you ever make a backup with the built-in Backup application of your setting, contacts and stuff? |
Re: How to mount opt folder?
Quote:
I am sorry for a little delay in posting. Could you please precise if I must hold down power key without battery inside and if so - what it is the reason for that. Do you know what is the exact procedure of booting (that is - what NOLO is doing). And on which stage hardware is testing (if it is). Maybe my camera hardware is a problem - is there any way to test it under rescueOS? |
Re: How to mount opt folder?
Quote:
|
Re: How to mount opt folder?
Sorry for a few posts in a row. But maybe this will help you to diagnose my problem. So once again from my post #6 :
When I have run fsck I got a message: "The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>". So is my filesystem correct? I do manage to mount home and opt folder so my eMMC is possibly OK. Although some time ago I have had a problems with USB port on my PC (not stable connection) so maybe something wrong happened during disconnecting myN900. |
Re: How to mount opt folder?
After executing command ls I get information as follows:
drwxr-x--- 1 root root 568 Jan 1 1970 2.6.37 Quote:
|
Re: How to mount opt folder?
Sorry for the delay!!!
Quote:
Quote:
Quote:
Quote:
Code:
ls -al /mnt/maemo/lib/modules Quote:
Check for content and the size, maybe even md5sum, of the package's content inside /lib/modules/2.6.28.10maemo-omap1/ inside the data.tar.gz archive. |
Re: How to mount opt folder?
It seems I have the kernel version 2.6.28. But to say the truth, I flashed the kernel and initfs already (using flasher 3.5). So kernel probably is not the reason of my problems. What about flashing NOLO? Is it safe? My NOLO enables flashing mode and initially starts device (NOKIA logo on the screen), but... who knows what is happening next?
And how to determine rootfs filesystem partition condition using fsck (or other command)? And, at last, how to find how much free space is left in rootfs partition? I had different values using command df. Maybe lack of space is the reason? |
Re: How to mount opt folder?
Rootfs does not need any fsck action, it is ubifs file system, that even supports unclean reboots. You could read about it here: http://www.linux-mtd.infradead.org/doc/ubifs.html .
The file system is like an archive that might be unpacked for rescueOS, but will show 100% full all the time in rescueOS. Nolo and kernel are flashed together, as far as i know, and you did that! Kernel modules are loaded by the kernel to load the different devices of the N900, that is why i suggest to check the modules directory. There is some knowledge about the boot process buried inside the forum or the wiki, @reinob did a real thorough investigation on the boot process here http://talk.maemo.org/showthread.php?t=87959 |
Re: How to mount opt folder?
Thank you very much for this useful post. Do you maybe know how to track process of booting? It could explain what is going wrong when my N900 starts. Maybe there is some log file created during startup ?
|
Re: How to mount opt folder?
I forgot to write that I have had installed overclock profile (700 MHz) when failure took place.
|
Re: How to mount opt folder?
Quote:
Code:
ls -al /mnt/maemo/lib/modules Quote:
|
Re: How to mount opt folder?
Could you please write how to make a copy of rootfs.
And second, very important thing - I cannot use apt-get install even if I chroot /mnt/maemo and mount home/opt folder. |
Re: How to mount opt folder?
Basically it is like this. Mount maemo rootfs, create mount point for storage partition, mount MyDocs partition to rescueOS, create archive of the rootfs on the MyDocs partition and enable mass-storage mode to transfer files and folders to your PC. Make sure the hidden dot-files and -folders are also transfered
Code:
mmr |
Re: How to mount opt folder?
Thank you for your last post, but I have 2 problems:
1. mmrt - "command not found" 2. mkdir /mnt/MyDocs - " mkdir : can't create directory '/mnt/MyDocs' : Read-only file system." Could you help please. |
Re: How to mount opt folder?
My bad!
First command must be mmr . Second command will mount to /media. I edited the former post http://talk.maemo.org/showpost.php?p...8&postcount=25 to have all the commands in one place! |
Re: How to mount opt folder?
Quote:
Sorry, but I still have 2 problems: 1. When I execute mkdir /mnt/MyDocs I get a message "mkdir : can't create directory '/mnt/MyDocs' : Read-only file system."" 2. When I execute mount /dev/mmcblk0p1 /media I get a message "mount: mounting /dev/mmcblk0p1 on /media failed: Input/output error." Help. |
Re: How to mount opt folder?
I am about to reflash whole device - that's why I want to backup rootfs. I have done it already in case of optfs (home, MyDocs).
But I want to try - for the last time - uninstalling fcam-drivers. When I use dpkg I still get a message indicating that fcam-drivers are installed and "connected" with blessn900. I can't though uninstall blessn900, as I described in post #4. |
Re: How to mount opt folder?
The first error is meaningless, the mount point will not get used.
Try this please for the second error Code:
mount -t vfat /dev/mmcblk0p1 /media |
Re: How to mount opt folder?
Quote:
Great, this one does the trick. New problem - there is not enough space on my eMMC for creating archive with rootfs. I am using, unfortunately, Windows XP on my PC. When I connect N900 to free some space and execute ems command, PC does not "see" mass storage. Do you have any solution for this problem? |
Re: How to mount opt folder?
Did you unmount the MyDocs partition before trying to enable mass storage mode?
|
Re: How to mount opt folder?
I did not mount it at all. I executed only ems command in rescueOS, but my Windows do not "cooperate" with N900.
|
Re: How to mount opt folder?
This may not sound very helpful, but i am no WindowsXYZ user:
You may need some USB drivers for the Nokia N900, or help yourself long term, install some decent linux distribution to avoid those security and driver issues of WindowsXYZ. |
Re: How to mount opt folder?
Quote:
I know that Windows is a piece of s..., but I must use it in case of compatibility reasons. I will try to free space on eMMC using other PC with Linux. |
Re: How to mount opt folder?
Maybe it is possible to pipe tar gz or dd through telnet. In this case you don't need to delete files.
I have done this with ssh and I think it should also work with telnet. |
Re: How to mount opt folder?
OK. It is done on a PC with linux. Mass storage mode under rescueOS works perfectly fine on Linux, but not on Windows.
|
Re: How to mount opt folder?
Now I will try to copy rootfs. Maybe somebody - in the mean time - could help me solve the problem described in post #29. If not - I must reflash whole device.
|
Re: How to mount opt folder?
Rootfs copied and transferred to PC. Thank you very much michaaa62 for a great help in doing this.
|
Re: How to mount opt folder?
1 Attachment(s)
I have tried once again to flash only parts of fiasco image (for testing). And I am not sure if it is going the right way. On the picture which I attached to this post you can see a messages for example:
"sending kernel image<1705 kB> ... 100% <1705 of 0 kB, avg. 1705 kB/s" I wonder if value 0 KB in the text above is normal or not. In other words - was flashing really done? |
All times are GMT. The time now is 02:04. |
vBulletin® Version 3.8.8