Author Topic: Oz 3.5.4 Reflash Not Completely Wiping Device  (Read 7397 times)

tekisui

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://tekisui.dynalias.com
Oz 3.5.4 Reflash Not Completely Wiping Device
« on: June 07, 2006, 10:12:01 am »
I'm reflashing OpenZaurus alot because I'm fiddling with packages and .deb files, and other things, and I need to be able to start clean so I don't accidentally give myself libraries and things without documenting that I installed them. Each time I reflash OpenZaurus, I'm noticing libraries and things from previous installs persist in the list of installed packages. Also, the username of the previous owner keeps showing up as a folder in / after each reflash. I'm not that familiar with the 5600's inner workings about where it backs things up/caches things/etc, so I'm obviously missing something when I reflash. I want to be able to completely zero the thing out. No previous information, no previous data, nothing. Just a clean OZ install. I've even tried flashing other roms, then flashing OZ back on over that. Same story. I've made sure the CF card I'm using for flasing is clean other than the OZ files, I'm dug thought the filesystem as best I could... What am I missing?

(Ignore the sig.. That's what I had about a year ago..)
« Last Edit: June 07, 2006, 10:19:31 am by tekisui »
Zaurus SL-5600 (Poodle)
OpenZaurus 3.5.4
AmbiCom 802.11b CF Card
AmbiCom Bluetooth BT2000 CF Card
Kingston 256mb CF Card
SanDisk 128mb SD Card
Pocketop Folding Keyboard
l337 h4x0r 4ppz

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #1 on: June 07, 2006, 10:23:43 am »
Quote
I'm reflashing OpenZaurus alot because I'm fiddling with packages and .deb files, and other things, and I need to be able to start clean so I don't accidentally give myself libraries and things without documenting that I installed them. Each time I reflash OpenZaurus, I'm noticing libraries and things from previous installs persist in the list of installed packages. Also, the username of the previous owner keeps showing up as a folder in / after each reflash. I'm not that familiar with the 5600's inner workings about where it backs things up/caches things/etc, so I'm obviously missing something when I reflash. I want to be able to completely zero the thing out. No previous information, no previous data, nothing. Just a clean OZ install. I've even tried flashing other roms, then flashing OZ back on over that. Same story. I've made sure the CF card I'm using for flasing is clean other than the OZ files, I'm dug thought the filesystem as best I could... What am I missing?

(Ignore the sig.. That's what I had about a year ago..)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130248\"][{POST_SNAPBACK}][/a][/div]

The Poodle has two flash partitions: "/" (ie: the rootfs) and /home.

The rootfs is completely wiped on a reflash, /home stays untouched (which is intended).
Sounds like you should clean out your /home directory.
Webmaster of hentges.net & Embedded Linux Developer.

tekisui

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://tekisui.dynalias.com
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #2 on: June 07, 2006, 10:26:54 am »
Ok so BEFORE reflash, just:

su
cd /home
rm -rf *.*

Right?

When the f is my sig gonna update.....
« Last Edit: June 07, 2006, 10:27:40 am by tekisui »
Zaurus SL-5600 (Poodle)
OpenZaurus 3.5.4
AmbiCom 802.11b CF Card
AmbiCom Bluetooth BT2000 CF Card
Kingston 256mb CF Card
SanDisk 128mb SD Card
Pocketop Folding Keyboard
l337 h4x0r 4ppz

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #3 on: June 07, 2006, 10:45:01 am »
Quote
Ok so BEFORE reflash, just:

su
cd /home
rm -rf *.*

Right?

When the f is my sig gonna update.....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130250\"][{POST_SNAPBACK}][/a][/div]

Almost correct. Replace the DOS pattern *.* with * and you are set.
Webmaster of hentges.net & Embedded Linux Developer.

tekisui

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://tekisui.dynalias.com
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #4 on: June 07, 2006, 10:46:11 am »
Can you tell I work in an all-Windows company? :-p
Thanks for the help. Trying now..
Zaurus SL-5600 (Poodle)
OpenZaurus 3.5.4
AmbiCom 802.11b CF Card
AmbiCom Bluetooth BT2000 CF Card
Kingston 256mb CF Card
SanDisk 128mb SD Card
Pocketop Folding Keyboard
l337 h4x0r 4ppz

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #5 on: June 07, 2006, 10:48:41 am »
Quote
Can you tell I work in an all-Windows company? :-p
Thanks for the help. Trying now..
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130254\"][{POST_SNAPBACK}][/a][/div]

  So do I. But thank GOD I don't have to support these machines.
Webmaster of hentges.net & Embedded Linux Developer.

tekisui

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://tekisui.dynalias.com
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #6 on: June 07, 2006, 10:52:31 am »
What, the Zaurus? Yeah, death first. Supporting these things would SUCK. They're definitely not for the feint of heart or the non-tinkering type.
Ok I deleted the /home contents completely... Reflashing...
Zaurus SL-5600 (Poodle)
OpenZaurus 3.5.4
AmbiCom 802.11b CF Card
AmbiCom Bluetooth BT2000 CF Card
Kingston 256mb CF Card
SanDisk 128mb SD Card
Pocketop Folding Keyboard
l337 h4x0r 4ppz

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #7 on: June 07, 2006, 11:02:27 am »
Quote
What, the Zaurus? Yeah, death first. Supporting these things would SUCK. They're definitely not for the feint of heart or the non-tinkering type.
Ok I deleted the /home contents completely... Reflashing...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130257\"][{POST_SNAPBACK}][/a][/div]

Eh lol, I was talking about windows boxes
Webmaster of hentges.net & Embedded Linux Developer.

tekisui

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://tekisui.dynalias.com
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #8 on: June 07, 2006, 11:52:26 am »
lol Actually, I have VERY few problems with XP. Anyway, clearing out /home did it. I now have a completely clean install of OZ 3.5.4. I still have two questions:

When OS 3.5.4.1 comes out at the end of the week, I'll just flash it without clearing out /home and that'll be it, right? No reinstalling apps, libraries, resetting settings, etc?

OZ uses DropBear instead of OpenSSH. How much smaller/more effecient is DropBear? One of the advantages I can see of going with OpenSSH instead is easy file transfers via sftp. What else? Any specific reasons why I SHOULDN'T use SSH instead?

Thanks!
« Last Edit: June 07, 2006, 11:55:22 am by tekisui »
Zaurus SL-5600 (Poodle)
OpenZaurus 3.5.4
AmbiCom 802.11b CF Card
AmbiCom Bluetooth BT2000 CF Card
Kingston 256mb CF Card
SanDisk 128mb SD Card
Pocketop Folding Keyboard
l337 h4x0r 4ppz

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #9 on: June 07, 2006, 12:53:18 pm »
Quote
lol Actually, I have VERY few problems with XP. Anyway, clearing out /home did it. I now have a completely clean install of OZ 3.5.4. I still have two questions:

When OS 3.5.4.1 comes out at the end of the week, I'll just flash it without clearing out /home and that'll be it, right? No reinstalling apps, libraries, resetting settings, etc?

That depends where you install the packages. If you were to install all additional apps into /home, then yes, that would survive a reflash but you'd have to run ipkg-link manually to relink the files from /home to /.

Quote
OZ uses DropBear instead of OpenSSH. How much smaller/more effecient is DropBear?

IIRC openssh adds about 1.5Mb to a base install.

Quote
One of the advantages I can see of going with OpenSSH instead is easy file transfers via sftp. What else? Any specific reasons why I SHOULDN'T use SSH instead?

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

There are many good reasons to use OpenSSH and no drawbacks compared to dropbear but its size.

I personally never use dropbear.
Webmaster of hentges.net & Embedded Linux Developer.

tekisui

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://tekisui.dynalias.com
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #10 on: June 07, 2006, 01:16:40 pm »
Where would be the best place to install things, if not /home?
Zaurus SL-5600 (Poodle)
OpenZaurus 3.5.4
AmbiCom 802.11b CF Card
AmbiCom Bluetooth BT2000 CF Card
Kingston 256mb CF Card
SanDisk 128mb SD Card
Pocketop Folding Keyboard
l337 h4x0r 4ppz

hvontres

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • http://
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #11 on: June 07, 2006, 01:34:22 pm »
Quote
Where would be the best place to install things, if not /home?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130276\"][{POST_SNAPBACK}][/a][/div]
If you have a ext2 or ext3 formated SD card you can install stuff there. You just need to leave the card in the slot all the time. I have all the important stuff in either / or /home and optional or large (python) programs on my SD card.

I hope this helps,
[span style=\'font-size:10pt;line-height:100%\']Henry von Tresckow[/span]
--------------------------------------
SL-5600, OZ 3.5.4.2 (Hentges), Kernel 2.6.17 :)
1gb Kingston SD (ext2), 5Gb Seagate ST1 (3.03 Fw, fat32)
256 MB Kingston SD (ext2),256MB Viking CF,32MB CF (vfat),
homebuilt GPS unit (Based on RFMD RF 8000)

tekisui

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://tekisui.dynalias.com
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #12 on: June 07, 2006, 02:38:48 pm »
The guy I bought the 5600 from is still looking for the SD card he had (I've only had the Zaurus a week) and he just finished moving, so when he finds it, I'll put larger apps there.
Is there anything available similar to apt-get that will automatically fill dependencies when installing from a feed or some similar source? I'm tired of reflashing/wiping each time an install goes awry due to dependency issues. I'm trying to keep crap from being left behind scattered through my filesystem...
« Last Edit: June 07, 2006, 02:39:38 pm by tekisui »
Zaurus SL-5600 (Poodle)
OpenZaurus 3.5.4
AmbiCom 802.11b CF Card
AmbiCom Bluetooth BT2000 CF Card
Kingston 256mb CF Card
SanDisk 128mb SD Card
Pocketop Folding Keyboard
l337 h4x0r 4ppz

hvontres

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • http://
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #13 on: June 07, 2006, 02:46:00 pm »
Quote
The guy I bought the 5600 from is still looking for the SD card he had (I've only had the Zaurus a week) and he just finished moving, so when he finds it, I'll put larger apps there.
Is there anything available similar to apt-get that will automatically fill dependencies when installing from a feed or some similar source? I'm tired of reflashing/wiping each time an install goes awry due to dependency issues. I'm trying to keep crap from being left behind scattered through my filesystem...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130285\"][{POST_SNAPBACK}][/a][/div]

if you use ipkg from the command line, it will use the feed to automagically fix dependencies for you. Of course your Zaurus needs to be on-line to do that
[span style=\'font-size:10pt;line-height:100%\']Henry von Tresckow[/span]
--------------------------------------
SL-5600, OZ 3.5.4.2 (Hentges), Kernel 2.6.17 :)
1gb Kingston SD (ext2), 5Gb Seagate ST1 (3.03 Fw, fat32)
256 MB Kingston SD (ext2),256MB Viking CF,32MB CF (vfat),
homebuilt GPS unit (Based on RFMD RF 8000)

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
Oz 3.5.4 Reflash Not Completely Wiping Device
« Reply #14 on: June 07, 2006, 02:47:15 pm »
Quote
I'm tired of reflashing/wiping each time an install goes awry due to dependency issues. I'm trying to keep crap from being left behind scattered through my filesystem...
Just do:
Code: [Select]
cd /home
rm -rf *
before you flash.
Then install your apps to /home with:
Code: [Select]
ipkg -d home install app-name
Greg