what is the effect of rm comand in network mounted devices ?
Posted on 2010-09-13
I think that I make a mistake by taping remove command instead of umount command in mounted devices in my pc, I mounted these devices from a pc in my network into my pc:
these mounted devices were created ( in root mode) in /media and contains :
/media/NASpc/datatools create in my home : /home/me/NAS/datatools (in user mode to create this directory)
And after that I added on the etc/fstab this lines:
//11.1.8.xxx/fold_1 /media/NASpc/fold_1 cifs username=rnd,password=rnd,default 0 0
//11.1.8.xxx/fold_2 /media/NASpc/fold_2 cifs username=rnd,password=rnd,default 0 0
//11.1.8.xxx/fold_3/media/NASpc/fold_3 cifs username=rnd,password=rnd,default 0 0
//11.1.8.xxx/fold_4 /media/NASpc/backup_data cifs username=rnd,password=rnd,default 0 0
188.8.131.52:/nas/NASpc-00002/datatools /home/me/NAS/datatools nfs rw,defaults,users,exec 0 0
After rebooting I found with Konqueror in storage media directory all that:
Remote Share (//11.1.8.XXX/fold_1) Mounted Samba (Microsoft Network) Share
Remote Share (//11.1.8.XXX/fold_2) Mounted Samba (Microsoft Network) Share
Remote Share (//11.1.8.XXX/fold_3) Mounted Samba (Microsoft Network) Share
Remote Share (//11.1.8.XXX/backup_data) Mounted Samba (Microsoft Network) Share
Remote Share (11.1.8.XXX:nas/NASpc-00002/datatools) Mounted NFS Share
So by knowing that will this command delete some data :
'rm -R NASpc/'
Hope there is no danger.
I just did immediatly a ctrl + c to stop this command and I verify that mounted devices are still presents (I use for that an explorer from a windows pc and connect me to the pc having this ip address 11.1.8.xxx that contains all I mounted) but I don't know if some datas of these devices are loss if yes how restore these datas?