Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 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!
Thraeryn is offline  
Old 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);'
Xirax is offline  
Old 08-22-2003, 08:17 PM   #3 (permalink)
Sultana ruined my evil persona
 
Krycheck's Avatar
 
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!!
Krycheck is offline  
Old 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.
Dave is offline  
Old 08-23-2003, 06:18 AM   #5 (permalink)
Upright
 
Location: Within GMT+10
Ooops, just realised you wanted write for everyone, therefore the umask would be 000.
Dave is offline  
Old 08-24-2003, 03:34 PM   #6 (permalink)
Loser
 
Thanks for the replies! I've just downloaded Explore2fs, and it is very cool indeed.

I've also (hopefully) set up the fstab file correctly with the new umask option, we'll see how that works soon.

I'll keep you posted.
Thraeryn is offline  
Old 08-24-2003, 08:20 PM   #7 (permalink)
Irresponsible
 
yotta's Avatar
 
I've heard that writing to an NTFS filesystem from linux can be dangorous.....
__________________
I am Jack's signature.
yotta is offline  
Old 08-24-2003, 10:11 PM   #8 (permalink)
In Your Dreams
 
Latch's Avatar
 
Location: City of Lights
True.. but he's Fat32, isn't he?
Latch is offline  
Old 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
oblar is offline  
Old 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.)
peacy is offline  
Old 08-25-2003, 08:08 PM   #11 (permalink)
Psycho
 
Location: Toronto
Quote:
Originally posted by yotta
I've heard that writing to an NTFS filesystem from linux can be dangorous.....
You're right, it is. That's why it's disabled by default in the kernel. You'd actually have to recompile your kernel with this option turned on for it to be able to do damage. You're actually pretty much guarenteed to destroy the filesystem with any amount of usage...that's why it's more for developers to play around with.

FAT32 has no problems with being written to by a linux OS, I routinely use mine to share music between win and Lin.
Xirax is offline  
Old 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
Xirax is offline  
Old 08-26-2003, 03:58 AM   #13 (permalink)
Crazy
 
Location: Reading, UK
OK, I actually checked my RH and in case of vfat (Fat32) you have explicitly define read/write access (even though the 'users' option includes it).

So here's a sample from my fstab:
/dev/hda6 /mnt/win vfat defaults,users,rw 0 0
peacy is offline  
Old 08-26-2003, 07:40 AM   #14 (permalink)
Upright
 
Location: Within GMT+10
Quote:
Originally posted by peacy
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.)
First, when using vfat you pass it the umask option when mounting, and those will be the default permissions (due to vfat not having any concept of permissions). ie. "mount -t vfat -o umask=000 /dev/foo /mnt/foo"

Second, the meaning of "defaults" is explained in the man page for mount:
Quote:
defaults
Use default options: rw, suid, dev, exec, auto, nouser, and async.
While the option "user" means that any user is allowed to mount the filesystem (as opposed to just root). In the man page it is defined as:
Quote:
users
Allow every user to mount and unmount the file system. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line users,exec,dev,suid).
Neither of those options have anything to do with the default permission mask on a filesystem that doesn't support permissions.
Dave is offline  
Old 08-26-2003, 07:53 AM   #15 (permalink)
Crazy
 
Location: Reading, UK
Quote:
Originally posted by Dave
Neither of those options have anything to do with the default permission mask on a filesystem that doesn't support permissions.
But if you add the option "users" than you define who's able to mount the filesystem.
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).
peacy is offline  
Old 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
Dave is offline  
 

Tags
linux, questions


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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 09:04 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360