Skip to content

Editing the x86 mini root

April 11, 2006

The x86 mini-root is a gzip compressed UFS file system so if you find you need to edit it, to replace a file or edit /etc/system or any other thing here is how.

First make sure you are on an x86 system. UFS is not endian neutral.

 # gunzip  /tmp/mr.$$ # mount $(lofiadm -a /tmp/mr.$$) /mnt 

Now edit your files under /mnt.

 # umount /mnt # lofiadm -d  /tmp/mr.$$ # gzip  boot/x86.miniroot 

Korn shell assumed in the above.

Tags: topic:[solaris]

Advertisements

From → Solaris

One Comment
  1. There’s an easier way of doing it with /boot/solaris/bin/root_archive pack|unpack

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: