Link to home
Create AccountLog in
Avatar of tia_kamakshi
tia_kamakshiFlag for United Arab Emirates

asked on

Unmounting and Mounting directories in Linux to share with windows

Hi,

I have a Debian/Linux system and a windows system

From windows I can share Debian/Linux folder "/home/tgfrmcc" as I drive

Now I need to unmount and mount the same configuration

How should I do that

abcd-pbhi5:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda5       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0
abcd-pbhi5:~#

abcd-pbhi5:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             73323196  22286772  47311756  33% /
tmpfs                  1036136         0   1036136   0% /lib/init/rw
udev                     10240        52     10188   1% /dev
tmpfs                  1036136         0   1036136   0% /dev/shm
abcd-pbhi5:~#

Please guide
Many Thanks
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi
do you want to Mount a windows share to debain ??
Avatar of tia_kamakshi

ASKER

Many Thanks for your help

How do we check what are the mounts avaibalbe and How do we un - mount them

Yes, My Mount to windows share to debain is already done

We are upgrading server.

For time being at the time of upgrade we just want to un-mount the already exisiting mounts drive

I can already see I drive on Windows which looks folder /home/tgfrmcc

But I cannot see, where we have already configured to see the directory /home/tgfrmcc in the Linux

I have executed the command and above is the results

cat /etc/fstab , df

Therefor I wanted to un-mount from Linux and when upgradtaion is done of the windows then I have to re-mount it

Many Thanks
if you have mounted any directory before

if you type this command

mount

it wil show you what actualy mounted in your pc

to unmount

suppose you have mounted this

mount -t smbfs -o username=<username>,password=<password> //<win-box>/<share> /mnt/windows_share

so you have mounted share on /mnt/windows_share

now if you type :
umount /mnt/windows_share
it should unmount the share
Hi,

My mount command gives below result

But I cannot see "/home/tgfrmcc" mounted, which i am already seeing in the windows system

abcd-pbhi5:~# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
abcd-pbhi5:~#

Please guide

Many Thanks
ASKER CERTIFIED SOLUTION
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Really Great Stuff

Many Many Thanks