Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th January 2010, 07:17 PM
tb205gti Offline
Registered User
 
Join Date: Jan 2010
Posts: 4
macosfirefox
umount deleting folder?

Now this is strange, I have a Fedora12 install that behaves pretty strange.

I have a mountpoint eg. /backup where I mount my backup drive.

Now when I unmount the drive (umount /backup) the drive is unmounted - but the folder is also deleted.. Now why does this happen? It has not been a problem with any of my Fedora installs (going all the way back from Redhat6)
Reply With Quote
  #2  
Old 4th January 2010, 09:18 PM
jbkt23 Offline
Registered User
 
Join Date: Mar 2006
Posts: 510
linuxfedorafirefox
I don't have an anwer but I am curious. How did you create the mount point? In a terminal as root via:

# cd /
# mkdir backup

So are you manually mounting the backup device to /backup ?
__________________
jbkt23
Reply With Quote
  #3  
Old 4th January 2010, 09:23 PM
tb205gti Offline
Registered User
 
Join Date: Jan 2010
Posts: 4
macosfirefox
Quote:
Originally Posted by jbkt23 View Post
I don't have an anwer but I am curious. How did you create the mount point? In a terminal as root via:

# cd /
# mkdir backup

So are you manually mounting the backup device to /backup ?

I log into it via ssh, run a std. bash shell.

I make the dir:

mkdir /backup
I mount the drive
mount /dev/sdc /backup

I do "my thing" (backup)

the I unmount it
umount /backup

then ls to see contents - and bang it's gone..
Reply With Quote
  #4  
Old 4th January 2010, 11:00 PM
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 752
linuxfedorafirefox
:) tb205gti, thank you for your posts. :)

tb205gti, thank you for your posts.

Quote:
Originally Posted by tb205gti View Post
I make the dir:

mkdir /backup
I mount the drive
mount /dev/sdc /backup...
Yes, interesting indeed.

How's this, after doing your mkdir /backup

display

ls -latr /backup

After doing your mount /dev/sdc /backup

display

more /etc/mtab
__________________
2 dual cores, 11 GB RAM, F14 Laughlin - 2.6.35.14-106.fc14.x86_64 & 2.6.35.14-106.fc14.i686.PAE
2 dual cores, 11 GB RAM, F15 Lovelock - 2.6.43.8-2.fc15.x86_64 & 2.6.43.8-2.fc15.i686
3 dual cores, 19 GB RAM, F16 Verne - 3.6.2-1.fc16.x86_64 & 3.6.2-1.fc16.i686
2 dual cores, 11 GB RAM, F17 Beefy Miracle - 3.6.2-4.fc17.x86_64 / .i686
16 x86_64 computing cores,80 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks
Reply With Quote
  #5  
Old 5th January 2010, 07:05 AM
tb205gti Offline
Registered User
 
Join Date: Jan 2010
Posts: 4
macosfirefox
Quote:
Originally Posted by diamond_ramsey View Post
tb205gti, thank you for your posts.

Yes, interesting indeed.

How's this, after doing your mkdir /backup

display

ls -latr /backup
total 8
drwxr-xr-x 2 root root 4096 2010-01-05 08:01 .
drwxr-xr-x 10 root root 4096 2010-01-05 08:01 ..

Hmm why is there a total of 8 ??

Quote:
Originally Posted by diamond_ramsey View Post
After doing your mount /dev/sdc /backup

display

more /etc/mtab
/dev/mapper/vg_moon-lv_root / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda1 /boot ext4 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sdd /shared/MAXTOR_III ext3 rw 0 0
/dev/sdb /shared/MAXTOR ext2 rw 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev 0 0
/dev/sdc /backup ext2 rw 0 0
Reply With Quote
  #6  
Old 5th January 2010, 07:20 AM
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 752
linuxfedorafirefox
:) tb205gti, thank you for your posts. :)

tb205gti, thank you for your posts.

Quote:
Originally Posted by tb205gti View Post
...total 8
drwxr-xr-x 2 root root 4096 2010-01-05 08:01 .
drwxr-xr-x 10 root root 4096 2010-01-05 08:01 ..

Hmm why is there a total of 8 ??
.../dev/sdc /backup ext2 rw 0 0
> Hmm why is there a total of 8 ??

Good question, I don't know.

Next, let's execute and post the output for the following two commands:

umask -S

and

umask

[root@localhost /]# umask -S
u=rwx,g=rx,o=rx
[root@localhost /]# umask
0022
__________________
2 dual cores, 11 GB RAM, F14 Laughlin - 2.6.35.14-106.fc14.x86_64 & 2.6.35.14-106.fc14.i686.PAE
2 dual cores, 11 GB RAM, F15 Lovelock - 2.6.43.8-2.fc15.x86_64 & 2.6.43.8-2.fc15.i686
3 dual cores, 19 GB RAM, F16 Verne - 3.6.2-1.fc16.x86_64 & 3.6.2-1.fc16.i686
2 dual cores, 11 GB RAM, F17 Beefy Miracle - 3.6.2-4.fc17.x86_64 / .i686
16 x86_64 computing cores,80 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks

Last edited by diamond_ramsey; 5th January 2010 at 07:31 AM.
Reply With Quote
  #7  
Old 5th January 2010, 07:59 AM
tb205gti Offline
Registered User
 
Join Date: Jan 2010
Posts: 4
macosfirefox
Quote:
Originally Posted by diamond_ramsey View Post
tb205gti, thank you for your posts.



> Hmm why is there a total of 8 ??

Good question, I don't know.

Next, let's execute and post the output for the following two commands:

umask -S

and

umask

[root@localhost /]# umask -S
u=rwx,g=rx,o=rx
[root@localhost /]# umask
0022

Thank you for your posts, highly appreciated

umask -S
u=rwx,g=rx,o=rx

umask
0022
Reply With Quote
Reply

Tags
deleting, folder, umount

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem deleting folder in FC7 shell_bourne Using Fedora 10 4th November 2007 11:52 AM
Arrrggh! Deleted a folder I didn't want deleting! tizwoz Using Fedora 1 19th October 2006 07:58 PM
Stupid Question RE deleting root owned folder tizwoz Using Fedora 3 11th October 2006 01:49 PM
shell command:preview files and folder before deleting them cuongvt Using Fedora 4 5th September 2005 10:31 PM
deleting content of /tmp folder knopper Using Fedora 3 22nd April 2004 09:40 AM


Current GMT-time: 14:18 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat