05-15-2006
change the name of a file system
hello
Can I change the name of a file system ? or i can only change the mount point name with smit ?
thank you
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Good morning folks!
I'm new here.. trying to find an answer on how to resize filesystem. Need to add some space to c0t0d0s5, /var... Is it possible at all?
JV (9 Replies)
Discussion started by: jvinn
9 Replies
2. Shell Programming and Scripting
Hello,
I am new to shell scripting and I was trying to write a script that would force a system wide password change except for admins. I am having some trouble and any help that someone could give me would be greatly appreciated. I am trying to do it by using the UID as the marker for anyone... (6 Replies)
Discussion started by: kilemark
6 Replies
3. AIX
Hi,
anybody know how to change the system date which the year is greater than 2037? is it posibble been done under aix machine??
thanks :) (1 Reply)
Discussion started by: Ricole
1 Replies
4. Solaris
How to change IP on Sun Cluster system?
I have a system based on SunCluster, now I want to change public IP (connect to LAN). I need your support. Thanks so much. (2 Replies)
Discussion started by: imyourfriend
2 Replies
5. Solaris
dears
any one know how to change system date in solaris (10 Replies)
Discussion started by: murad.jaber
10 Replies
6. Solaris
Hi all,
I was wondering how to change the PS1 to my liking?
I tried changing it using PS1='my choice'
it worked but the subsequent terminals i open will not have it as the default PS1 ,how do i change it?
also i am running as super user, and i need to exec bash, to get the bash environment...... (4 Replies)
Discussion started by: wrapster
4 Replies
7. Fedora
Hi
I have Ubuntu on servers and centos
Is there a way to falsify or mislead any person who wishes to knowing the type of system used on the server
Any example, can change the name Ubuntu to Fedora for example, and especially those who are examining server through nmap :mad:
thank u (4 Replies)
Discussion started by: x-zer0
4 Replies
8. Solaris
Hi there,
We have a Solaris 10 machine which has been up and running for more than 400 days. A strange behaviour happened. The system date defaulted to epoch timestamp. Oracle stopped and application failed causing management to parade. We managed to reset the date. All other servers and... (8 Replies)
Discussion started by: sundar63
8 Replies
9. AIX
With a recent move to a new data center, the domain for our system emails have changed. We used automated emails with our daily process for informational and report sending.
I edited the /etc/mail/sendmail.cf file where it had an entry pointing to the old mail server so I change this to our new... (3 Replies)
Discussion started by: NycUnxer
3 Replies
10. SCO
hi
I'd like to change some system files on my SCO 5.0.6 for example:
/var/opt/K/SCO/Unix/5.0.6Ga/etc/default/boot
using 'tools' at the Boot: prompt from OpenServer Release 5.0.7 installation CD.
I try to mount using this command:
# mount /dev/hd0root /mnt
and try to change it using... (3 Replies)
Discussion started by: ccc
3 Replies
LEARN ABOUT SUSE
pivot_root
PIVOT_ROOT(8) Maintenance Commands PIVOT_ROOT(8)
NAME
pivot_root - change the root file system
SYNOPSIS
pivot_root new_root put_old
DESCRIPTION
pivot_root moves the root file system of the current process to the directory put_old and makes new_root the new root file system. Since
pivot_root(8) simply calls pivot_root(2), we refer to the man page of the latter for further details.
Note that, depending on the implementation of pivot_root, root and cwd of the caller may or may not change. The following is a sequence for
invoking pivot_root that works in either case, assuming that pivot_root and chroot are in the current PATH:
cd new_root
pivot_root . put_old
exec chroot . command
Note that chroot must be available under the old root and under the new root, because pivot_root may or may not have implicitly changed the
root directory of the shell.
Note that exec chroot changes the running executable, which is necessary if the old root directory should be unmounted afterwards. Also
note that standard input, output, and error may still point to a device on the old root file system, keeping it busy. They can easily be
changed when invoking chroot (see below; note the absence of leading slashes to make it work whether pivot_root has changed the shell's
root or not).
EXAMPLES
Change the root file system to /dev/hda1 from an interactive shell:
mount /dev/hda1 /new-root
cd /new-root
pivot_root . old-root
exec chroot . sh <dev/console >dev/console 2>&1
umount /old-root
Mount the new root file system over NFS from 10.0.0.1:/my_root and run init:
ifconfig lo 127.0.0.1 up # for portmap
# configure Ethernet or such
portmap # for lockd (implicitly started by mount)
mount -o ro 10.0.0.1:/my_root /mnt
killall portmap # portmap keeps old root busy
cd /mnt
pivot_root . old_root
exec chroot . sh -c 'umount /old_root; exec /sbin/init'
<dev/console >dev/console 2>&1
SEE ALSO
chroot(1), mount(8), pivot_root(2), umount(8)
AVAILABILITY
The pivot_root command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
Linux Feb 23, 2000 PIVOT_ROOT(8)