LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-24-2007, 02:40 PM   #1
maverick_pol
LQ Newbie
 
Registered: May 2007
Location: Lublin, Poland
Distribution: Gentoo, Fedora, FreeBSD
Posts: 17

Rep: Reputation: 0
changing mount points


Hi guys,

While installing the SunOS 10 I used the automatic layout on the disk. Unfortunately, the bigest partition is mounted as "/export/home"(/dev/dsk/c0d0s7) and one of the smallest one is mounted as "/"(/dev/dsk/c0d0s0). I would like to swap those mount points so.. "/" would me mounted on the "/dev/dsk/c0d0s7" and "/export/home" on the "/dev/dsk/c0d0s0".
How to do that?

I thaught about swaping the /etc/vfstab mount points( and /dev/dsk/...), but I am not sure is it safe.

Beforehand thanks for any ideas.

Maverick
 
Old 10-24-2007, 04:59 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If /export/home is unused in your installation, you can use ufsdump/ufsrestore to duplicate / to /export/home, then fix at least (/export/home)/etc/vfstab and add an entry in the grub menu pointing to the new root slice.

You also need to edit the new /boot/solaris/bootenv.rc file to update the bootpath property.

Beware that all of these actions are risky so you may end breaking your system and eventually have to reinstall it.

Last edited by jlliagre; 10-24-2007 at 05:04 PM.
 
Old 10-25-2007, 06:21 AM   #3
sunram
LQ Newbie
 
Registered: Oct 2007
Location: India
Posts: 23

Rep: Reputation: 15
hi

you better re-install the your os.suppose any important data mens, you take the dump in tab and install new os after restore .
 
Old 10-26-2007, 03:14 AM   #4
maverick_pol
LQ Newbie
 
Registered: May 2007
Location: Lublin, Poland
Distribution: Gentoo, Fedora, FreeBSD
Posts: 17

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your ideas. I will backup all important data and do as jlliagre suggested.

Thanks
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount one device to two mount points secretlydead Linux - General 3 03-28-2007 05:30 AM
changing mount /dev/sd* points - please explain sockknitter Linux - Hardware 4 01-05-2007 01:07 AM
Changing where a shortcut points perrymans Linux - General 1 09-12-2003 07:29 PM
changing mount points superbondbond Linux - Hardware 3 07-03-2003 08:23 AM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration