Visit Our UNIX and Linux User Community


Filesystem - umount the / (root) file system


 
Thread Tools Search this Thread
Operating Systems Solaris Filesystem - umount the / (root) file system
# 1  
Old 07-29-2009
Filesystem - umount the / (root) file system

Hi all

Is it ok to umount the / (root) file system?

Because recently i had extend the swap space by add the cylinders,
now only found that the cylinders is overlap with the root. Is it ok for future server operation?

Code:
partition> print
Current partition table (original):
Total disk cylinders available: 8921 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm      67 - 1955       14.47GB    (1889/0/0)  30346785
  1       swap    wu       1 -  132        1.01GB    (132/0/0)    2120580
  2     backup    wm       0 - 8920       68.34GB    (8921/0/0) 143315865
  3 unassigned    wm       0               0         (0/0/0)            0
  4 unassigned    wm       0               0         (0/0/0)            0
  5 unassigned    wm       0               0         (0/0/0)            0
  6 unassigned    wm       0               0         (0/0/0)            0
  7       home    wm    1956 - 8920       53.35GB    (6965/0/0) 111892725
  8       boot    wu       0 -    0        7.84MB    (1/0/0)        16065
  9 unassigned    wm       0               0         (0/0/0)            0


Last edited by SmartAntz; 07-29-2009 at 06:49 AM..
# 2  
Old 07-29-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
# 3  
Old 07-29-2009
Quote:
Originally Posted by SmartAntz
Is it ok to umount the / (root) file system?
No, you obviously can't unless you are using an OS running on a different root, like in faisafe mode boot.
Quote:
Because recently i had extend the swap space by add the cylinders,
now only found that the cylinders is overlap with the root. Is it ok for future server operation?
Ouch. Your system is ready to self destroy at any time.

Shutdown it as soon as possible and fix the partition table.
# 4  
Old 07-29-2009
If that machine uses the swap cylinders that are overlapping your root slice you can kiss any data on them goodbye. The only way to unmount root is to shutdown the system. Do what jilliagre says.
# 5  
Old 07-29-2009
You do not have to reboot. Run "swap -d /dev/dsk/c0t0d0s1" (or whatever the appropriate device is) ASAP, though, to remove that swap device.

Then fix the partition table.
# 6  
Old 07-29-2009
Thanks all, i had fixed the partition table.
and increase the swap size by Adding File System swap

Code:
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm      67 -  804        5.65GB    (738/0/0)   11855970
  1       swap    wu       1 -   66      517.72MB    (66/0/0)     1060290
  2     backup    wm       0 - 8920       68.34GB    (8921/0/0) 143315865
  3 unassigned    wm       0               0         (0/0/0)            0
  4 unassigned    wm       0               0         (0/0/0)            0
  5 unassigned    wm       0               0         (0/0/0)            0
  6 unassigned    wm       0               0         (0/0/0)            0
  7       home    wm     805 - 8920       62.17GB    (8116/0/0) 130383540
  8       boot    wu       0 -    0        7.84MB    (1/0/0)        16065
  9 unassigned    wm       0               0         (0/0/0)            0

# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c2t0d0s1 31,385 8 1060280 1060280
/opt/myswapfile - 8 1048568 1048568

---------- Post updated at 10:47 AM ---------- Previous update was at 10:34 AM ----------

another question,
if i wanna increase the root Cylinders, how to do that?
# 7  
Old 07-30-2009
Quote:
Originally Posted by SmartAntz
another question,
if i wanna increase the root Cylinders, how to do that?
Buy another disk, move /export there and grow / size.

Previous Thread | Next Thread
Test Your Knowledge in Computers #852
Difficulty: Medium
AngularJS is a JavaScript-based open-source front-end web framework mainly maintained by Facebook.
True or False?

10 More Discussions You Might Find Interesting

1. HP-UX

Test cases for file system mount/umount performance in HP

Hi Folks, Could anyone please assist me with the what could be the scenarios to test the file system mount/umount performance check in HPUX. Thanks in advance, Vaishey (5 Replies)
Discussion started by: Vaishey
5 Replies

2. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

3. UNIX for Dummies Questions & Answers

Root File System

Hi, Please someone tell me, what are the contents of root file sysytem? and significance of it, what are all possible ways to mount root file system? (5 Replies)
Discussion started by: laxmi Sharma
5 Replies

4. UNIX for Dummies Questions & Answers

Root file system full..Need help

Hi guys, In sun E250 server,root file system is full. we cleared log files in var/adm folder syslogs,mail logs,crash logs are empty. This is a production server. we are not able to run fsck from single user mode. I have given output of df and du command.How to create space in root... (3 Replies)
Discussion started by: PUSHPARAJA
3 Replies

5. Solaris

How to recover root file system

Please can anyone explain me how to take a backup of root file system and how to recover it if it is corrupted. please explain me in detail (1 Reply)
Discussion started by: suneelieg
1 Replies

6. Solaris

root file system issue

Hi, In df -h root file system showing (total size) (used) (free) /dev/dsk/c0t0d0s0 11G 7.6G 2.8G 73% / but du -hd command showng 5.1 gb used sapce. I am missing 3.00 gb space. Here I have to knoe where is Remaining space... (2 Replies)
Discussion started by: lbreddy
2 Replies

7. Linux

How to mount/umount disk from a non-root account

Is it possible to mount a disk from a non-root account? I'm developing a Java application which executes commands in the shell using the java.lang.Runtime.exec api, which runs fine for commands ls, df, etc., but for commands mount and umount, i have problems as I need to be root to eecute these.... (8 Replies)
Discussion started by: brendan76
8 Replies

8. UNIX for Dummies Questions & Answers

Root File System Full

Hi All, The root file system of the HP-UX serevr I use is showing as 100% full. It has a disk space of ~524MB. When I add up the sizes of all the files and directories (using du -sk) , except mount points, it came up to 237MB. But when I bdf it still shows 100% full Can anyone help... (3 Replies)
Discussion started by: sube
3 Replies

9. Solaris

Root file system is 82% full

Hi I want to find out the reason that why root partition is 82% full? when i did fu -k / then most of files were created on /var . can you please help me to find out what I need to do in order to find the reason. Regards Ajwat (2 Replies)
Discussion started by: Ajwat
2 Replies

10. Filesystems, Disks and Memory

root file system full

Hi I have a Solaris 2.5.1 system. Recently my file system is full and i couldn't find what flood my root file system. Anyone can suggext any directories i should look out for. I am using Samba and Patrol agent. I am just usng this server as a file server, users cannot login into the system,... (1 Reply)
Discussion started by: owls
1 Replies

Featured Tech Videos