Windows partition requires root permissions- chmod question
After installing Slackware 10.1 I noticed that my windows partition, located /windows, requires root permissions to access. How can I change it so that any user can view it? I know chmod does this, but I've been afraid to use it because the last time I tried it I messed up my permissions pretty bad. Could someone help me out with this?
Also when I try to access folders in windows that have a folder with spaces in it I cannot copy anything out of them in konqueror, for instance C:\documents and settings\. Is there any way around this? Thanks alot. |
chmod won't work. You have to set up the permissions in the /etc/fstab file
so post what you have in your /etc/fstab and we will be able to help you a bit more! |
try this in your fstab
/dev/hda1 /windows vfat auto,rw,umask=000 1 0 |
whenever i need to know something about fstab i refer to this
http://www.humbug.org.au/talks/fstab/fstab.html check the permissions on the mount point too. this is usually /mnt/windows but if not youll find it in the second colum of your fstab (check link :) ) you can list the permissions of a the directory using ls -l /mnt/windows .... or whatever drwxr-xr-x 2 root root 4096 2002-03-16 18:04 windows do you understand the permission layout? if not you gotta learn it. check this: http://www.zzee.com/solutions/linux-permissions.shtml make sure the group and user has at least read permission. to answer you second question spaces are usually expressed with this syntax in linux. Documents\ and\ Settings\ get? :) |
Thanks for all your quick replies.
Here is my fstab: Quote:
Thanks |
I couldn't get my windows partition accessible to normal users, either, until I added the "umask=000" part.
What does that actually mean? Also, on a slightly similar note, Gnome keeps adding my winows partition to the desktop. Is there anyway to stop this, without unmounting it? I like Gnome quite a bit, and it seems to have lots of configuration utilities, but they sure are decentralised, and I have no idea how to access them. Any ideas? |
/dev/hda3 swap swap defaults 0 0
/dev/hda2 / reiserfs defaults 1 1 /dev/hda1 /windows vfat user,umask=000,rw,auto 1 0/dev/cdrom /mnt/cdrom iso9660 noauto,owner,rw 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0 ~ that's my fstab, hda1 is my windows umask is a utility that will set permissions for new files or directories. So it is kind of like chmod but before the files are created. The big difference between umask and chmod is that umask is like wildcard i.e. if you have all 000 you are not denying any permitions and the result will be 777 , which is rwxrwxrwx 777 restricts all permissions 4- restricts r only, granting w and x. |
How do I access a FAT partition in Linux (IS any one here who help me ??plzzzzzz)
Hello everybody, I have a dual boot system with XP and FEDORA 2 I created a FAT partiotion in Windows , because I thought that I will be able to access it , when I switch to Linux. I put 2 files on it just to see if I will be able to pull them. However , now I do not know where to find it and how to access it. Please give me an advice. Was that a good idea in the first place? Thank you for your time and help plz if u think u can mail me : ssabeeh@hotmail.com OR joan_elia@yahoo.com Thanks again |
Did you read this thread at all?
Quote:
This is mine: /dev/hda3 swap swap defaults 0 0 /dev/hda2 / reiserfs defaults 1 1 /dev/hda1 /windows vfat user,umask=000,rw,auto 1 0 /dev/cdrom /mnt/cdrom iso9660 noauto,owner,rw 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0 ~ basically you go to /etc/fstab and you add: /dev/hda1 /windows vfat user,umask=000,rw,auto 1 0 nowadays linux will access ntfs as well: /dev/hda1 /windows ntfs user,umask=000,rw,auto 1 0 |
change auto to noauto if you don't want it to show on the desktop.
I think that will fix it and still mount it at boot.... |
hi
i did wha told me .. I added in fstab this line /dev/hdc5 /windows vfat user,umask=000,rw,auto 1 0 hd5 because i want that drive it made an icon in computer sagment which is (WINDOWS) but it does not works and display message... mount: mount point /windows does not exist what does it means plz help me i told u i m very new user and using FC2 thanks |
do
fdisk /dev/hda under root. you will see a prompt will come up like this: Command (m for help): when you see that type p press enter , yeah that's right , just p, :-) copy what you see in the console and paste it here. should look like: Disk /dev/hda: 40.0 GB, 40007761920 bytes 255 heads, 63 sectors/track, 4864 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 3328 26732128+ c W95 FAT32 (LBA) /dev/hda2 3329 4734 11293695 83 Linux /dev/hda3 4735 4864 1044225 82 Linux swap |
Quote:
|
it displays
Device Boot Start End Blocks Id System /dev/hdc1 * 1 584 4690948+ b W95 FAT32 /dev/hdc2 585 4865 34387132+ f W95 Ext'd (LBA) /dev/hdc5 585 1184 4819468+ b W95 FAT32 /dev/hdc6 1185 2383 9630936 b W95 FAT32 /dev/hdc7 2384 3582 9630936 b W95 FAT32 /dev/hdc8 3583 3595 104391 83 Linux /dev/hdc9 3596 4800 9679131 83 Linux /dev/hdc10 4801 4865 522081 82 Linux swap .................................. now what should i do |
it displays
Command (m for help): p Disk /dev/hdc: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdc1 * 1 584 4690948+ b W95 FAT32 /dev/hdc2 585 4865 34387132+ f W95 Ext'd (LBA) /dev/hdc5 585 1184 4819468+ b W95 FAT32 /dev/hdc6 1185 2383 9630936 b W95 FAT32 /dev/hdc7 2384 3582 9630936 b W95 FAT32 /dev/hdc8 3583 3595 104391 83 Linux /dev/hdc9 3596 4800 9679131 83 Linux /dev/hdc10 4801 4865 522081 82 Linux swap .................................. now what should i do |
All times are GMT -5. The time now is 12:49 PM. |