08-22-2003, 11:12 AM | #1 (permalink) |
Loser
|
Two linux (RH 9) questions.
I put the distro in the title because you never know if it'll help. I think the solutions will be pretty standard across distros, though.
Okay, first question: Is there a way that, after I boot into Windows through GRUB, I can access the files on the ext3 partition of my drive? I hate editing pictures in gimp and not being able to access them. Second question: What would I have to put on a line in /etc/fstab to mount the Windows partition as /mnt/windows, and give all linux users write access to it? I've looked at a lot of web tutorials on mounting a fat32 partition, but whenever I follow their directions the permissions are funky and I end up not being able to write to it unless I'm on as root. Any and all help you can give me is greatly appreciated! |
08-22-2003, 08:00 PM | #2 (permalink) |
Psycho
Location: Toronto
|
1) http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm
Read only, but I've heard good things about it. 2) What's in there for the windows partition now? I thought all that was needed was in the options section, to have the 'users' option to be in there somewhere
__________________
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);' |
08-22-2003, 08:17 PM | #3 (permalink) |
Sultana ruined my evil persona
Location: Los Angeles
|
Explore2fs is great, nice to be able to pull linux files from Windows. Just follow it's recomendations on writing from Windows to Linux.
As far as mounting I'm rusty with my linux
__________________
His pants are tight...but his morals are loose!! |
08-23-2003, 06:16 AM | #4 (permalink) |
Upright
Location: Within GMT+10
|
According to the man page for mount, if you want perms of 755 throughout your vfat partition, then you need the option "umask=022". That should go in the options field of your fstab(should be the fourth field).
The thing to remember with a umask is that it's the inverse of normal chmod permissions Just remember, the above is completely untested. |
08-24-2003, 10:36 PM | #9 (permalink) |
Über-Rookie
Location: No longer, D.C
|
The umask should fix your problem in RH accessing your drive, now the other one. I have used a program called Ext2FS Anyhwere, and it allows reading and writing to Ext2 and ext3 drives, I think it might do a few more as well.
__________________
"All that we can do is just survive. .All that we can do to help ourselves is stay alive." - Rush |
08-25-2003, 12:59 PM | #10 (permalink) |
Crazy
Location: Reading, UK
|
The umask won't solve the problem. Umask is used to set the default file creation mask.
You need to modify the /etc/fstab file. In the options column you should have 'defaults, user'. This allows read/write access to all the users and anyone can mount the file system. (The 'user' option is not really needed, but it's good to have it there.) |
08-25-2003, 08:08 PM | #11 (permalink) | |
Psycho
Location: Toronto
|
Quote:
FAT32 has no problems with being written to by a linux OS, I routinely use mine to share music between win and Lin. |
|
08-25-2003, 08:14 PM | #12 (permalink) |
Psycho
Location: Toronto
|
My fstab for example (note the Old hard drive section which contains my windows partitions:
/dev/hda1 /boot ext3 noauto,noatime 1 2 /dev/hda3 / reiserfs noatime 0 0 /dev/hda2 none swap sw 0 0 /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,users 0 0 proc /proc proc defaults 0 0 #Old Hard Drive /dev/hdb1 /mnt/oldwindows auto noauto,<b><i>users</i></b> 0 0 /dev/hdb6 /mnt/music auto noauto,<b><i>users</i></b> 0 0 /dev/hdb7 /mnt/oldlinux reiserfs noatime,noauto,<b><i>users</i></b> 0 0 |
08-26-2003, 07:40 AM | #14 (permalink) | |||
Upright
Location: Within GMT+10
|
Quote:
Second, the meaning of "defaults" is explained in the man page for mount: Quote:
Quote:
|
|||
08-26-2003, 07:53 AM | #15 (permalink) | |
Crazy
Location: Reading, UK
|
Quote:
And eventhough "defaults" is defined as "rw, suid, dev, exec, auto, nouser, and async" in case of vfat you must have explicitly define "rw" to give write access to all the users (otherwise it's gonna be "rw" for root and "ro" for everbody else). |
|
08-26-2003, 08:07 AM | #16 (permalink) |
Upright
Location: Within GMT+10
|
No, rw refers to whether any writes to the filesystem are allowed to succeed. It still depends on permissions with rw. In ro, no write will succeed. Try to remount a filesystem as ro ("mount -o remount,ro /") and see if root can still write
|
Tags |
linux, questions |
|
|