maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [SOLVED, BUT DON'T SHUT THREAD FOR NOW] Boot loop after "apt-get upgrade" (https://talk.maemo.org/showthread.php?t=84006)

AndyYan 2012-05-10 07:04

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1204543)
I don't know or care if you're a "Linux boy" or not. Fact is /home is an ext3 partition so if you want to be able to mount it you either use Linux or find some driver/"app" that lets you do that on whatever OS you're using.

libxau6 should in the end go in /usr/lib, that's your rootfs partition. Since you're booting from an SD card and before that you cannot possibly access the internal memory of the N900, the most logical place to put the new libxau6 is somewhere on that card, and THEN once you've booted, copy it from the SD card to the /usr/lib directory of your N900 root partition (obviously, after you've mounted it).

Other than I have no other suggestion. You either do it or not. If you're not willing to do that ("no linux boy") then your only option is to do a complete reflash.. but beware, flashing may work better under Linux than Windows.

Wait a minute. Why do you say rescueOS boots from external SD? For now I only know that I can use kernel and boot files stored on a Win PC along with flasher-3.5 to boot into command line... Even the rescueOS post AND documentation don't offer any booting method... Point out the right way for me to boot from SD pls

reinob 2012-05-10 08:00

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
@AndyYan,

I thought you were booting the RescueOS from an SD card (using U-boot). Didn't realize it's not even documented. Sorry for that.

OK. In this case I guess your best bet is to, once you've booted RescueOS, enable USB mass-storage mode and then from your PC copy the new lib to the MyDocs partition (because you use Windows).

Then mount the rootfs and copy the lib from MyDocs to /usr/lib and then make sure it has the same permissions as the existing libXau6.

AndyYan 2012-05-10 13:52

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1204567)
@AndyYan,

I thought you were booting the RescueOS from an SD card (using U-boot). Didn't realize it's not even documented. Sorry for that.

OK. In this case I guess your best bet is to, once you've booted RescueOS, enable USB mass-storage mode and then from your PC copy the new lib to the MyDocs partition (because you use Windows).

Then mount the rootfs and copy the lib from MyDocs to /usr/lib and then make sure it has the same permissions as the existing libXau6.

Nice try dude, all of the methods was expected to work and I tried them yesterday already... But sorry facts:
1. As mentioned, USB mass storage appeared as "RAW" format in Windows, guess it's Linux format. I can put files under any folder under /home though with Android.
2. Mounting the rootfs gave empty /home. Mounting mmcblk1p1 gave almost empty /home. Mounting mmcblk1p2(which is said to mount /home correctly) reported errors.
3. Any way to acquire and mod permissions? I thought I've seen a command for that (Is that chmod?)

And thx very much for your patience and lasting help!

AndyYan 2012-05-11 01:35

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Anyone can tell me how to mount mmcblk1p2 correctly in rescueOS? Thx

zimon 2012-05-11 02:44

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1204463)
Ain't no better if my notebook PC can read discs... BUT really my PC doesn't even have a disc drive!! WTF am I gonna do...

If you have a USB-stick (~600 MB), you can make a bootable one:

ISO-file from here:
http://spins.fedoraproject.org/lxde/

Installation instructions from here:
http://docs.fedoraproject.org/en-US/...USB_Media.html

reinob 2012-05-11 07:24

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1204757)
1. As mentioned, USB mass storage appeared as "RAW" format in Windows, guess it's Linux format. I can put files under any folder under /home though with Android.

According to the documentation using /rescueOS/mass-storage-enable.sh
should export both the /home (mmcblk0p2 on Maemo) and MyDocs (mmcblk0p1 on Maemo).

The /home partition is ext3, so WIndows won't recognize it. The MyDocs partition is VFAT so Windows *should* recognize it. When you do this, do you only see ONE single partition being exported as USB mass storage?

Quote:

2. Mounting the rootfs gave empty /home. Mounting mmcblk1p1 gave almost empty /home. Mounting mmcblk1p2(which is said to mount /home correctly) reported errors.
/home has its own partition, so within the rootfs partition /home is just an empty folder. The actual /home partition is then mounted "on top" of this empty folder.

About the "reported errors": you might want to post them here. It may help :)

Quote:

3. Any way to acquire and mod permissions? I thought I've seen a command for that (Is that chmod?)
/usr/lib/libXau.so.6.0.0 has (at least on my N900) 0644 permissions and is owned by root, group root.

Meaning, once you manage to copy the file (somehow) onto the /usr/lib folder of the N900 root filesystem, you would need to:

Code:

# cd /mount-point/usr/lib
# chmod 0644 libXau.so.6.0.0
# chown root:root libXau.so.6.0.0

in case the libXau.so.6 symbolic link is not there, you do:
Code:

# cd /mount-point/usr/lib
# ln -s libXau.so.6.0.0 libXau.so.6


AndyYan 2012-05-12 10:05

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1205074)
According to the documentation using /rescueOS/mass-storage-enable.sh
should export both the /home (mmcblk0p2 on Maemo) and MyDocs (mmcblk0p1 on Maemo).

The /home partition is ext3, so WIndows won't recognize it. The MyDocs partition is VFAT so Windows *should* recognize it. When you do this, do you only see ONE single partition being exported as USB mass storage?



/home has its own partition, so within the rootfs partition /home is just an empty folder. The actual /home partition is then mounted "on top" of this empty folder.

About the "reported errors": you might want to post them here. It may help :)



/usr/lib/libXau.so.6.0.0 has (at least on my N900) 0644 permissions and is owned by root, group root.

Meaning, once you manage to copy the file (somehow) onto the /usr/lib folder of the N900 root filesystem, you would need to:

Code:

# cd /mount-point/usr/lib
# chmod 0644 libXau.so.6.0.0
# chown root:root libXau.so.6.0.0

in case the libXau.so.6 symbolic link is not there, you do:
Code:

# cd /mount-point/usr/lib
# ln -s libXau.so.6.0.0 libXau.so.6


Only one drive appeared in Windows and it's RAW. Dunno why.
You mean mounting mmcblk1p1 on top of /home? I previously mounted it on /mnt/free1... Any difference?
About the errors, yes I'm touching the PC later and will steal into rescueOS for another try and give out the error :-)
And thanks for your codes!

AndyYan 2012-05-12 10:09

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by zimon (Post 1205026)
If you have a USB-stick (~600 MB), you can make a bootable one:

ISO-file from here:
http://spins.fedoraproject.org/lxde/

Installation instructions from here:
http://docs.fedoraproject.org/en-US/...USB_Media.html

Booting from USB stick? Sounds cool, and it's a Fedora too... (I'll punch my Ubuntu classmate in his stomach FXXK YEAH)
Ok so this is a backup plan in case rescueOS won't work in the end... Thx

AndyYan 2012-05-13 10:31

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by reinob (Post 1205074)
...

WHAT THE HELL!!! It worked!
Code:

# mount /dev/mmcblk1p2 /mnt/maemo/home
And typed chmod & chown commands... WOOT! "Exit offline mode?" The system booted up steadily! Home sweet hildon-home!!!
Thank you Reinob for your PERFECT patience and knowledge of Linux!!

...Question is, when I typed "chown root:root libXau.so.6.0.0" it said "unknown user group root:root"... Doesn't bother booting but what's wrong?

zimon 2012-05-13 14:25

Re: WTF - Boot loop after a normal "apt-get upgrade"
 
Quote:

Originally Posted by AndyYan (Post 1205991)
...Question is, when I typed "chown root:root libXau.so.6.0.0" it said "unknown user group root:root"... Doesn't bother booting but what's wrong?

root.root, not root:root


All times are GMT. The time now is 21:01.

vBulletin® Version 3.8.8