CIC Root Directory Question

Boorda

Corporal
Jul 15, 2018
145
62
0
45
Royse City, TX
futemire.com
Ride
328xi, 335xi M Sport

doublespaces

Administrator
Oct 18, 2016
9,306
4,340
0
AZ
Ride
2009 E93 335i
I wish we could get all of the people interested in this project online at the same time.
 
  • Like
Reactions: Boorda

e90reborn

Lurker
Nov 5, 2018
13
2
0
Ride
BMW 335i E90 2010
I keep seeing that the CIC Root directory files are Read-Only.

I'm not sure about QNX in particular but under any standard UNIX you can start by checking 3 things:

1) is the filesystem mounted RW ? check with "mount" command or looking into /proc/mounts or similar
2) are you root or any other user allowed to write to those files ? check with "stat" command or "ls -l"
3) are the files marked with the write bit ? again check with same commands as in (2)

regarding the root password, I have already read in a few places around the internet at least two different passwords for CIC's root user. So I guess it's already cracked ?

by the way, by what means are you getting inside the CIC file system ? telnet, ftp or autorun ?
 

Boorda

Corporal
Jul 15, 2018
145
62
0
45
Royse City, TX
futemire.com
Ride
328xi, 335xi M Sport
by the way, by what means are you getting inside the CIC file system ? telnet, ftp or autorun ?

I'm not, yet....
I have a desktop and web application background but new to this kind of platform.
I've been lurking around the internet researching on and off the last few months trying to learn how to do this.
I just don't like asking questions to things that have been answered a million times so until I get to a question that I can't find an answer to I trek on in the background learning.

I first looked into this a few years ago and contacted QNX to get a trial version, but that only lasted 30 days. Wasn't really enough time for a noob to pick stuff apart, but I was at lease able to download all of the manuals which usually require a serial to download. Posted those here by the way, I'm sure you saw them. After the trial ended I got busy for a few years and this went to the backburner.

Anyway, I have more free time now and plenty of ideas for custom apps and menu hacking so I'm starting to invest more time into it again.

I did try to install the QNX environment for the thread here on SpoolStreet, but I'm confused about some of the steps.
I'll try again soon to get that up and running. If I can't get it again I'll post my questions on that thread and hopefully you or another knowledgeable enthusiast will help get me roll'n.

BTW, right back at cha, by what means are you getting inside the CIC file system?
 

e90reborn

Lurker
Nov 5, 2018
13
2
0
Ride
BMW 335i E90 2010
I'm not, yet....

I'm confused then. How can you tell the root filesystem is marked read-only ?

Anyway, I have more free time now and plenty of ideas for custom apps and menu hacking so I'm starting to invest more time into it again.

Nice, I don't have much free time but I am in the same mood of starting playing with the CIC.

I'll try again soon to get that up and running. If I can't get it again I'll post my questions on that thread and hopefully you or another knowledgeable enthusiast will help get me roll'n.

I am versed in UNIX but I am pretty new to CIC as well. I was a F30 guy, just got an E90 a week ago. And it has been getting some love in the detail shop for the last week so for now I am just doing some reading.

BTW, right back at cha, by what means are you getting inside the CIC file system?

I played with autorun for 5 minutes and that was it. It was enough for a filesystem dump so I know what to expect when the real action starts. This week I bought my ENET cable so I should be ready to start playing with telnet when this cable arrives (not expecting it to arrive this year though... it was shipped from china).

You can count on me, we are in the same boat.

best wishes.
 

Boorda

Corporal
Jul 15, 2018
145
62
0
45
Royse City, TX
futemire.com
Ride
328xi, 335xi M Sport
I'm confused then. How can you tell the root filesystem is marked read-only ?
Sorry, I have read in multiple places that the Root directory is locked and you can't make changes. That is what sparked my question for this thread.

I was a F30 guy, just got an E90 a week ago.
Congratz and welcome to the E90 club! ;)

This week I bought my ENET cable....
Nice, I actually built my own this July but haven't had a chance to test it yet. Hopefully I can get it to work.

You can count on me, we are in the same boat.
best wishes.
Thanks, and ditto. Let Du Dis....




Anyone else care to chime in on the original question in the first post?
 

e90reborn

Lurker
Nov 5, 2018
13
2
0
Ride
BMW 335i E90 2010
Sorry, I have read in multiple places that the Root directory is locked and you can't make changes. That is what sparked my question for this thread.

can you point to any place where you saw that info ? I am not sure if it's the case here but what usually happens with embedded systems is that the filesystem image is stored compacted in a hidden flash storage and gets decompressed to ram at boot time. the original compressed file system image is not updated with modifications done after boot time so they are lost at every boot. config files (prone to updates at user's choice) are usually stored in another place and gets restored at boot time. so the question perhaps couldn't be why the filesystem is locked but how to persist changes ?

again, I am not that familiar with CIC yet so I'm not saying that is the case here. I will let you know when I get my ENET cable.
 
  • Like
Reactions: Boorda

Boorda

Corporal
Jul 15, 2018
145
62
0
45
Royse City, TX
futemire.com
Ride
328xi, 335xi M Sport
so the question perhaps couldn't be why the filesystem is locked but how to persist changes ?
Ahhh, ok. Good info. I'll have to try and find those articles where they said the Root was locked, but I bet you are correct about the flash storage.

I have seen the thread by @rhodesman, but guess I didn't stop to think about needing root permission to chmod since I'm a lowly Windows developer.... lol
 

e90reborn

Lurker
Nov 5, 2018
13
2
0
Ride
BMW 335i E90 2010
you are completely right. the root filesystem is read only. I took a quick look and couldn't realize if its mounted as read only or a ramfs.
there is no /proc/mounts and `mount` doesn't show anything for the root filesystem.

Code:
target:/> cd etc
target:/etc> touch a
a: No such file or directory
target:/etc> df
/mnt/hbnavi/pkgdb/S        58636     58636         0     100%  /SDS/           
/dev/cd0                15297472  15297472         0     100%  /fs/cd0/       
/dev/blk/ram-0-allo        40960      1280     39680       4%  /fs/tmpfs/     
/hbsystem/multicore         4283      1987      2295      47%  /hbsystem/multic
/mnt/hbnavi/pkgdb/M          808       808         0     100%  /mnt/MISC/     
/mnt/hbdata/IBA/iso       203460    203460         0     100%  /mnt/IBASWE1/   
/dev/hd0t77.5             337264     16126    321138       5%  /mnt/hbdebug/   
/dev/hd0t77.4           26635672    857840  25777832       4%  /mnt/hbmedia/   
/dev/hd0t77.3            2297200     88492   2208708       4%  /mnt/hbuser/   
/dev/hd0t77.2            3421744   1580530   1841214      47%  /mnt/hbdata/   
/dev/hd0t77.1            6152800   2104738   4048062      35%  /mnt/hbcddb/   
/dev/hd0t77            117451056  11300386 106150670      10%  /mnt/hbnavi/   
/dev/fs0p6                  1024        65       958       7%  /mnt/logistics 
/dev/fs0p5                 24064      3419     20644      15%  /mnt/HBpersisten
/dev/fs0p3                 70656     54620     16035      78%  /mnt/EFS_RO     
/dev/fs0p1                  1024        99       924      10%  /mnt/equalizing
/dev/hd0               156301488 156301488         0     100%                 
target:/etc> mount
/net/front.l6.bmw/mnt/hbnavi/pkgdb/SDS_SAM_1_0_2/SDS.iso on /SDS type cd (joliet)
/net/front.l6.bmw/dev/cd0 on /fs/cd0 type udf (v1.02)
/net/front.l6.bmw/dev/blk/ram-0-alloc-0-tmp on /fs/tmpfs type tmp
multicored on /hbsystem/multicore type multicore
/net/front.l6.bmw/mnt/hbnavi/pkgdb/MISC_SAM_1_0_0/MISC.iso on /mnt/MISC type cd (joliet)
/net/front.l6.bmw/mnt/hbdata/IBA/iso1/iba_text.iso on /mnt/IBASWE1 type cd (rrip)
/net/front.l6.bmw/dev/hd0t77.5 on /mnt/hbdebug type qnx6
/net/front.l6.bmw/dev/hd0t77.4 on /mnt/hbmedia type qnx6
/net/front.l6.bmw/dev/hd0t77.3 on /mnt/hbuser type qnx6
/net/front.l6.bmw/dev/hd0t77.2 on /mnt/hbdata type qnx6
/net/front.l6.bmw/dev/hd0t77.1 on /mnt/hbcddb type qnx6
/net/front.l6.bmw/dev/hd0t77 on /mnt/hbnavi type qnx6
/dev/fs0p6 on /mnt/logistics type flash
/dev/fs0p5 on /mnt/HBpersistence type flash
/dev/fs0p3 on /mnt/EFS_RO type flash
/dev/fs0p1 on /mnt/equalizing type flash
 

Boorda

Corporal
Jul 15, 2018
145
62
0
45
Royse City, TX
futemire.com
Ride
328xi, 335xi M Sport
Now I guess the question is, will we be able to take control using the root password hack in my first post?
I really wish I was more versed in this area to try it myself. @Igor Feghali, thanks for checking into this.