![]() |
2010-11-11
, 23:48
|
Posts: 842 |
Thanked: 1,197 times |
Joined on May 2010
|
#303
|
Just noticed something a bit odd. I made a backup of my rootfs, my first since upgrading to PR1.3. I ubinized it etc on-device as before to generate a flashable image file. Now, I'm running a custom kernel (based on the latest BFS source, but with an extra diff patch to enable cache_file on nandsim module) and have used this, along with ubiattach, to mount the image file generated by ubinize to /mnt/rootfs. So far, so fairly mundane. However, df -h shows:
Now, admittedly it's a slightly bigger partition (mainly because it's 10000000h in size, rather than the normal 0fb40000h of the real rootfs) but why is the free space so much bigger, and would I gain this extra space should I flash the image? (I'll probably try later just to see, but I found this all really curious..)Code:Filesystem Size Used Available Use% Mounted on rootfs 227.9M 178.8M 44.9M 80% / ubi0:rootfs 227.9M 178.8M 44.9M 80% / ... ubi1_0 232.3M 161.1M 67.0M 71% /mnt/rootfs
@RobbieThe1st: one more suggestion. Could you change the shortcut for either advanced menu or within there for the entry to erase all files from opt? As both shortcuts are 'e' it might be possible one is accidentally hitting 'e' twice and therefore erasing his opt-partition.
Maybe you can use an uppercase letter for advanced menu. So no one would accidentally even enter it.
The Following User Says Thank You to RobbieThe1st For This Useful Post: | ||
![]() |
2010-11-12
, 08:48
|
Posts: 284 |
Thanked: 320 times |
Joined on May 2010
@ Peterborough, UK
|
#304
|
The Following User Says Thank You to Tigerite For This Useful Post: | ||
![]() |
2010-11-12
, 09:46
|
Posts: 671 |
Thanked: 1,630 times |
Joined on Aug 2010
|
#305
|
![]() |
2010-11-12
, 09:53
|
|
Posts: 433 |
Thanked: 312 times |
Joined on Nov 2009
@ U.K
|
#306
|
The Following 2 Users Say Thank You to Tiboric For This Useful Post: | ||
![]() |
2010-11-12
, 11:08
|
Posts: 992 |
Thanked: 738 times |
Joined on Jun 2010
@ Low Earth Orbit
|
#307
|
cat passwd | sed -e 's/^\(root:.*:\)\(.*\)$/\1\/bin\/sh/'
The Following 2 Users Say Thank You to kureyon For This Useful Post: | ||
![]() |
2010-11-12
, 13:23
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#308
|
![]() |
2010-11-12
, 13:31
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#309
|
Here's a sed command for forcing the use of /bin/sh for root in /etc/passwd
Code:cat passwd | sed -e 's/^\(root:.*:\)\(.*\)$/\1\/bin\/sh/'
chsh -s <SHELLNAME> <USERNAME>
sed ... < ORIGFILE > NEWFILE
The Following 2 Users Say Thank You to x-lette For This Useful Post: | ||
![]() |
2010-11-12
, 13:51
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#310
|
Don't worry - you can safely try pressing 'e' twice without destroying anything. I added an "are you sure?" warning screen when I made that.
As far as uppercase letters... I'm not sure. I'll have to see if I get any different codes when I hold down alt and another key at the same time.
The Following User Says Thank You to x-lette For This Useful Post: | ||
![]() |
Tags |
backup, backupmenu, cssusupplement, max(useful), rescue-console, restore, system |
|
if i did help you, just click "Thanks" on the lower right of my post. thanks!
"The best way to break a Spell is to prevent it from being cast in the first place"
N900: 1000/1150mhz; sampling_rate 15; up_threshold 150000;