Author Topic: Moving /opt /home On Oz 3.5.2  (Read 3736 times)

defakto

  • Newbie
  • *
  • Posts: 14
    • View Profile
Moving /opt /home On Oz 3.5.2
« on: April 14, 2005, 12:24:41 pm »
I've tried the script posted in one of the older posts used to move the above directories so that I can install zgcc on my zaurus.  When I do it, no installed files will work from the system and I get alot of unusual messages during boot.  I can get them for me if you want.   Just don't have them atm.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Moving /opt /home On Oz 3.5.2
« Reply #1 on: April 14, 2005, 12:37:51 pm »
You don't need to move /home to the SD card to install zgcc, or at least I can't think of a reason why you'd have to do this.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

defakto

  • Newbie
  • *
  • Posts: 14
    • View Profile
Moving /opt /home On Oz 3.5.2
« Reply #2 on: April 14, 2005, 04:19:45 pm »
Quote
You don't need to move /home to the SD card to install zgcc, or at least I can't think of a reason why you'd have to do this.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75182\"][{POST_SNAPBACK}][/a][/div]


I'm using the 64-0 zImage so if I install anything it needs to be installed on the SD card.  I'm not so concered moving /home as I am moving /opt as that is where zgcc takes up the most space(20+ meg or so).  I just don't have enough space to install it without moving /opt

MS3FGX

  • Newbie
  • *
  • Posts: 8
    • View Profile
Moving /opt /home On Oz 3.5.2
« Reply #3 on: April 14, 2005, 11:27:37 pm »
All you should have to do to move /opt to the SD is:

1. Kill Opie
2. "cp -a /opt /mnt/card/opt"
3. "rm -rf /opt"
4. "ln -s /mnt/card/opt /opt"
5. Reboot

You didn't say if you are running Opie or not, but I just assumed you are.

Make sure not to make any mistakes with those lines, the 3rd one can destroy your system with ease.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Moving /opt /home On Oz 3.5.2
« Reply #4 on: April 15, 2005, 05:12:26 am »
Quote
I'm not so concered moving /home as I am moving /opt as that is where zgcc takes up the most space(20+ meg or so).

Can't you just install it directly to the card? Is it not an ipk, if not then I'd use some symlink magic from the card.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

defakto

  • Newbie
  • *
  • Posts: 14
    • View Profile
Moving /opt /home On Oz 3.5.2
« Reply #5 on: April 15, 2005, 08:04:15 am »
Quote
Quote
I'm not so concered moving /home as I am moving /opt as that is where zgcc takes up the most space(20+ meg or so).

Can't you just install it directly to the card? Is it not an ipk, if not then I'd use some symlink magic from the card.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75323\"][{POST_SNAPBACK}][/a][/div]


The version I've got is an ipk and it doesn't seem to run right when I install it to sd card and wave my wand of linking at at it.
« Last Edit: April 15, 2005, 08:09:19 am by defakto »

defakto

  • Newbie
  • *
  • Posts: 14
    • View Profile
Moving /opt /home On Oz 3.5.2
« Reply #6 on: April 15, 2005, 10:35:13 pm »
Quote
All you should have to do to move /opt to the SD is:

1. Kill Opie
2. "cp -a /opt /mnt/card/opt"
3. "rm -rf /opt"
4. "ln -s /mnt/card/opt /opt"
5. Reboot

You didn't say if you are running Opie or not, but I just assumed you are.

Make sure not to make any mistakes with those lines, the 3rd one can destroy your system with ease.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75289\"][{POST_SNAPBACK}][/a][/div]


Ok, when I follow those steps exactly I get this error in the boot log in system info under opie on OZ 3.5.3:

<3>sd : cmd [ 12 ] response [ 3f  ]
<3>sd : cmd [ 12 ] response [ 3f  ]
<3>sd : cmd [ 12 ] response [ 3f  ]
<3>sd : cmd [ 12 ] response [ 3f  ]
<3>sd : cmd [ 12 ] response [ 3f  ]
<3>sd : cmd [ 12 ] response [ 3f  ]
<3>sd : cmd [ 12 ] response [ 3f  ]

and it repeats..alot...

MS3FGX

  • Newbie
  • *
  • Posts: 8
    • View Profile
Moving /opt /home On Oz 3.5.2
« Reply #7 on: April 16, 2005, 12:25:54 am »
Are you sure the SD card is working properly? What file system is it formatted to? It will have to be EXT2 for this to work.

defakto

  • Newbie
  • *
  • Posts: 14
    • View Profile
Moving /opt /home On Oz 3.5.2
« Reply #8 on: April 16, 2005, 12:41:07 am »
Quote
Are you sure the SD card is working properly? What file system is it formatted to? It will have to be EXT2 for this to work.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75478\"][{POST_SNAPBACK}][/a][/div]


It is working properly, everything is copied over and linked just fine, but i get that error message in the log under system info.  Hell, even opie starts up and runs fine with /opt moved over to the SD card.  That error message worries me though.