unmount the partition


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unmount the partition
# 1  
Old 08-26-2010
unmount the partition

Dear all,
I have a two hard drive.On the second (/dev/sdb1 and /dev/sdb2) hard drive i have two partitions. The /dev/sdb2 has been mounted on the /home2 directory.I want to unmount that /dev/sdb2.I have no idea to how to do it.Can anybody give me the details about that?.

Regards,
Prakashkumar.S
# 2  
Old 08-26-2010
Hi.

(assuming you have privileges) Did you try:

Code:
umount /dev/sdb2

or

Code:
umount /home2

If you receive an error (like device busy) you can use lsof or fuser to see what processes are accessing the mount point.

If you don't want it to be mounted again at the next reboot, remove it from, or comment it out in, /etc/fstab or change it's options to prevent it. (that's OS-specific - what is your OS?)
This User Gave Thanks to Scott For This Post:
# 3  
Old 08-26-2010
some reading can shed light ... UNIX / Linux umount Command Examples
This User Gave Thanks to thegeek For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

2. Shell Programming and Scripting

Cygwin bash script to unmount and mount an XP partition

As stated, I am looking into keeping my backup drive unmounted in normal windows use. Partly this is to address threats like cryptolocker. Since one of my backup drives is an internal drive, it will not likely afford any protection from such a threat. I am thinking of adding code to my rsync script... (5 Replies)
Discussion started by: LMHmedchem
5 Replies

3. Filesystems, Disks and Memory

Ask concept soft partition vs hard partition

Hi Experts I would like to know different between soft partition concept and hard partition concept on solaris. Here is little explanation between soft partition concept and hard partition concept on solaris. Soft Partition: 1TB total space available in storage in all mapped to the OS to... (2 Replies)
Discussion started by: edydsuranta
2 Replies

4. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

5. Solaris

zfs cannot unmount (cannot unshare)

I have installed Solaris 11 Express on my machine, created a raidz2 zpool named shares and set up sharing (zfs set sharesmb=on shares). I also created a script for automatic backuping using snapshots. Everything worked fine. But yesterday I tried recovering from one of those backuped snapshots:... (1 Reply)
Discussion started by: RychnD
1 Replies

6. Shell Programming and Scripting

rsync from partition to partition fastest

Gentleman, Please move if I have chose the incorrect forum section. I am trying to move data that is not backed up from partition 1 to partition 2 on a SAN that has a GFS2 filesystem. Since the data is not backed up I am rsyncing this data and once verified I will delete from the source... (6 Replies)
Discussion started by: jaysunn
6 Replies

7. Filesystems, Disks and Memory

Can we unmount device?

Hi, I know that if we need to unmount a device, we use the command umount mount-point, example 'umount /tmp/mount1' But We can also unmount the device with device name example 'umount /dev/hda6'. NOTE: I think in RHEL3 we cannot unmount with device name. Correct me if I am wrong. What... (1 Reply)
Discussion started by: praveen_b744
1 Replies

8. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

9. AIX

how do i unmount ?

hi all, I am new to AIX as well as UNIX also ,i have a question One of my program has created a new filesystem on the system..... df shows : /dev/fslv04 2031616 2030648 1% 3 1% /replicas/source when i tried to umount the above filesystem by umount... (3 Replies)
Discussion started by: vamshi_k
3 Replies

10. UNIX for Dummies Questions & Answers

understanding logical partition, physical partition

hi, 1) is logical partition the same as physical partition except that one is physical and the other is logical? 2) then it must a one to one ratio? (3 Replies)
Discussion started by: yls177
3 Replies
Login or Register to Ask a Question