Unix Technical Forum

files disappear when boot in single user mode with boot cdrom

This is a discussion on files disappear when boot in single user mode with boot cdrom within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I copy some files to the directory /bsmbootstrap and /lib in multi-user mode with solaris 8. After I reboot ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 05:12 AM
TingChong
 
Posts: n/a
Default files disappear when boot in single user mode with boot cdrom

I copy some files to the directory /bsmbootstrap and /lib in
multi-user mode with solaris 8. After I reboot the machine in single
user mode with boot cdrom,
the directory /bsmbootstrap disappear, but the /lib is still there
when I do a ls. The files I copied to /lib disappear.
What should I do in order that the files I create in multi-user mode
still appear when I reboot the machine in single user mode with boot
cdrom.
Please help.
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 05:12 AM
Tony Curtis
 
Posts: n/a
Default Re: files disappear when boot in single user mode with boot cdrom

>> On 25 Jul 2003 16:38:49 -0700,
>> ma7777772@hotmail.com (TingChong) said:


> I copy some files to the directory /bsmbootstrap and
> /lib in multi-user mode with solaris 8. After I reboot


I hope you know what you're doing -- fiddling with
directories that Solaris wants specifically to know about
and maintain packages in could be disastrous.

> the machine in single user mode with boot cdrom, the
> directory /bsmbootstrap disappear, but the /lib is still
> there when I do a ls. The files I copied to /lib
> disappear. What should I do in order that the files I
> create in multi-user mode still appear when I reboot the
> machine in single user mode with boot cdrom. Please
> help.


The root (/) depends on what you're booting from. When
from disk, / is one of the disk partitions. When from CD,
the root is on the CD.

The files/directories are still there, it's just that
"there" isn't where you think it is.

To see the files, you have to mount the appropriate disk
partition into the file system provided by the CD, e.g.

# mkdir /a
# mount /dev/dsk/c0t0d0s0 /a

to get the root partition. If /usr (where /lib really is,
as "ls -l /" will show) is on its own partition, you
should mount that under /a too (in case you need the
correct file system layout from the disk).

(This is how Solaris/linux etc. get installed from a
distribution onto a system initially.)

hth
t
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:13 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com