Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Windows Folders are Files?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Roguelazer
Veteran
Veteran


Joined: 10 Feb 2003
Posts: 1233
Location: San Francisco, CA

PostPosted: Wed Feb 19, 2003 6:01 pm    Post subject: Windows Folders are Files? Reply with quote

Um. I set up Linux to mount my windows partitions (/dev/hda1 and /dev/hdb1) to /mnt/win_c and /mnt/win_c2 respectively. When they are mounted, all of the folders are files and I cannot access their contents. Here's my /etc/fstab:
Code:
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.10 2002/11/18 19:39:22 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb2      /boot      ext2      noauto,noatime      1 1
/dev/hdb4      /      ext4      noatime         0 0
/dev/hdb3      none      swap      sw         0 0
/dev/hda1      /mnt/win_c   vfat      auto,owner,users,noexec   0 0
/dev/hdb1      /mnt/win_c2   vfat      auto,owner,users,noexec   0 0
/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro      0 0
/dev/cdroms/cdrom1   /mnt/cdrom2   iso9660      noauto,ro      0 0
proc         /proc      proc      defaults      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
#  memory if not populated with files)

tmpfs         /dev/shm   tmpfs      defaults      0 0


Any help would be much appreciated :). Thanks in advance.
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Wed Feb 19, 2003 6:44 pm    Post subject: Reply with quote

That's odd, I just tried tried those same options and it worked. The only issue is that if the fs is mounted by root (as it would be at boot with the auto option) then normal users cannot read any of the files or subdirectories. Try adding umask=000 to your options and see if that works.
Back to top
View user's profile Send private message
Roguelazer
Veteran
Veteran


Joined: 10 Feb 2003
Posts: 1233
Location: San Francisco, CA

PostPosted: Thu Feb 20, 2003 12:38 am    Post subject: Reply with quote

It works! Yay. Thanks. Although ls still shows them all as files, I can now cd into them. :) Thanks for the tip.
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Thu Feb 20, 2003 2:11 am    Post subject: Reply with quote

In the Unix world, everything is a 'file'.

If you do ls -l you'll see that directories and files have different flags.
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum