Author Topic: Mounting Read-only /usr/share.rom As Read-write  (Read 3288 times)

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Mounting Read-only /usr/share.rom As Read-write
« on: January 13, 2005, 04:22:54 am »
I would like to make some changes to my mc.ext file which resides in /usr/share.rom/mc, but the area is mounted as read only. How do I mount it as read-write so that I can make my change?

Failing that, can I remove the Midnight Commander package and re-install it elsewhere?


Thanks,

John
« Last Edit: January 13, 2005, 04:23:40 am by waalkman »
C860, SMC Model SMC2642W, various sized memory cards

penguinsam

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://
Mounting Read-only /usr/share.rom As Read-write
« Reply #1 on: January 13, 2005, 06:30:35 am »
I also want to edit the smb.conf resides in /usr/lib.rom and change the codepage.

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Mounting Read-only /usr/share.rom As Read-write
« Reply #2 on: January 13, 2005, 07:50:04 am »
In both cases, delete the link that point to the file in read-only memory and copy the file itself to where the link was. After that you'll be able to edit the file.

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Mounting Read-only /usr/share.rom As Read-write
« Reply #3 on: January 14, 2005, 07:11:45 am »
Quote
In both cases, delete the link that point to the file in read-only memory and copy the file itself to where the link was. After that you'll be able to edit the file.

That's the first thing I did, but it didn't help. It seems like path-wise it's looking in /usr/share.rom/ first.

Renaming the mc.ext file has no effect on the way that Midnight Commander treats extensions, so I'm pretty sure that it's going right to the /usr/share.rom/ directory first.

I did some extensive checking around (.profile and the different mc.sh files, etc) on where else it could be, but I couldn't find it...


Thanks,

John
C860, SMC Model SMC2642W, various sized memory cards

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Mounting Read-only /usr/share.rom As Read-write
« Reply #4 on: January 14, 2005, 11:40:46 am »
As long as you aren't using a Cacko rom then you can do
Code: [Select]
mount -o rw,remount /To remount the / filesystem read-write.

Make sure you do
Code: [Select]
mount -o ro,remount / when you are finished or you could do something stupid like delete your copy of busybox by mistake.

If you are using a Cacko rom then you will have to learn how to make squashfs or cramfs (depending on cacko rom version) filesystems and create a new /boot/usr.bin - I don't recommend this unless you are ready to reflash your Zaurus if you don't do it correctly.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

penguinsam

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://
Mounting Read-only /usr/share.rom As Read-write
« Reply #5 on: January 14, 2005, 03:05:25 pm »
Quote
In both cases, delete the link that point to the file in read-only memory and copy the file itself to where the link was. After that you'll be able to edit the file.
ya, i deleted /usr/lib/samba/smb.conf which is linked to /usr/lib.rom/samba/smb.conf, then copied that file to where the link was deleted.

i could now make changes to that file and it works properly with the codepage i desired. thanks.