Author Topic: How To Mount The Cd Image And Reinstall/fix Things?  (Read 2921 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Mount The Cd Image And Reinstall/fix Things?
« on: October 19, 2007, 07:25:12 am »
Hi, let me bring more problems to the table.

[Scenario]
When some basic things go wrong in the system, like all the accounts (including the root account) stops to function. Tampering with /etc/passwd, /etc/sudoers, /etc/group, /etc/shadow, /etc/gshadow all in vain; like even apt-get and dpkg go on strike because of the confusion of GlibC and libstdc++,

I really want to go back to the CD installer to set up all my accounts and install the Base system all over again, but don't want to go all the way down to punish my doggy Z by reformatting the drive and turning over everything.

There is no bootloader like Grub or Lilo installed by default, so i can't do anything fancy like performing the magical "Single User Mode" ritual to exorcise the evil.

What shall I do?

Can I mount the CD iso image and get to the installer again?

I decoded the Titchy's updater.sh and removed the disk reformatting bits. But look, cdrom monuted to /hdd1. Oh, it still insisted on wiping my doggy Z all clean.    

Question: How to mount the CD rom image safely in order to install things again? Is it possible after all?
A zillion thanks!    


[Background of the story]
My 3200 mod had a nerve-racking experience over the last two days.
Overwriting a couple libs in /lib. System screwed up. Reinstalled a couple times. Segmentation fault at the last stage of installation. Reboot went fine and things ran. But packages got mixed up again when manually upgrading things. (  )
« Last Edit: October 19, 2007, 07:26:59 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
How To Mount The Cd Image And Reinstall/fix Things?
« Reply #1 on: October 19, 2007, 08:03:13 am »
Instead of mounting the cdrom-image, can't the rootfs over here http://www.bigbridgezau.sakura.ne.jp/dev/debian/ help you out ?
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Mount The Cd Image And Reinstall/fix Things?
« Reply #2 on: October 19, 2007, 09:34:32 am »
Oh, yes, i forgot the tarball! Thanks! Will try that soon.

Still it will be nice to be able to access the CD installer as an alternative.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Mount The Cd Image And Reinstall/fix Things?
« Reply #3 on: October 20, 2007, 10:53:48 am »
Got everything up again simply by extracting the tarball and copying back the important settings files (fstab, network, etc) from a backup.

I notice that the /etc/fstab in the "kurobox" tarball has already set to mount CD ISO image on SD to /mnt/cdrom. Perhaps there is a way to start the cdrom installer from there?

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
How To Mount The Cd Image And Reinstall/fix Things?
« Reply #4 on: October 20, 2007, 02:29:08 pm »
Quote from: ZDevil
Got everything up again simply by extracting the tarball and copying back the important settings files (fstab, network, etc) from a backup.

I notice that the /etc/fstab in the "kurobox" tarball has already set to mount CD ISO image on SD to /mnt/cdrom. Perhaps there is a way to start the cdrom installer from there?

  Can't speak as to starting the cdrom installer fom the SD card, but (/etc/fstab in the "kurobox" tarball has already set to mount CD ISO image on SD to /mnt/cdrom) the fstab on the original install also does that! I must confess I've never tried to access it though. Perhaps I should make sure to umount /mnt/cdrom before putting in an SD card and mounting it to /media/card? Doesn't seem to matter that I haven't in the past though!  

Cheers
 
« Last Edit: October 20, 2007, 02:29:47 pm by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!