Newsgroups: comp.os.linux.setup
Newsgroups: comp.os.linux.setup
:i used the command: : :mount -t vfat -o rw /dev/hda1 /mnt : :to mount my C: drive to linux, and was able to read it. : :The "mount" command gives me: : :/dev/hda1 on /mnt type vfat (rw) : :But the problem is that I can't write to it (permision denied). Why? How :to solve? thanks
See `man 8 mount` and pay particular attention to the UID, GID, and UMASK options. The vfat file system doesn't have the notion of ownership, or UNIX-style permissions, so the kernel has to fake something based on who issued the 'mount' command and the options used.
Bob Nichols
supply a umask, that should solve your problem read man mount for more detailed info
mount -t vfat -o rw,umask=0007 /dev/hda1 /mnt/C
BTW. I'd advise you to use a directory inside mnt to mount to. so mkdir /mnt/C. This way you can mount multiple filesystems in an standard way (/mnt/floppy, /mnt/cdrom, /mnt/C etc)
Eric
Good advice.
Also check /var/log/dmesg and verify that your dos drive is being correctly detected. I have a 20GB IDE LBA Maxtor HDD that shows up as an 8GB drive in dmesg, although cylinders, heads and sectors are displayed correctly (2489/255/63). I think this may be due to how Linux is calculating capacity - and treating it as a 'LARGE' IDE drive instead of 'LBA'? Is this a sign that Linux isn't mounting/reading the drive correctly?
Also check /var/log/messages to make sure that there isn't some kernel error that puts the FS back into read-only mode! I am running samba 2.0.3 under redhat 6.0. Whenever use the drive for a few hours, the drive switches to read-only mode and I see the following errors in /var/log/messages.
Arnim
documented on: 2000.05.25
Newsgroups: comp.os.linux.setup
> Could someone give me some straightforward instructions on how to mount the > DOS file system in Linux. Thanks!!
You DON'T have to install Linux again, just do this as root:
Make a new directory in /mnt and name it as you like, for example I use the next:
/mnt/win
Now add the next line to the file fstab (NOT AT TOP):
/dev/hda1 /mnt/win vfat owner 0 0
I believe that your windows fs is in hda1 and yor kernel support vfat file system, if it does not, you will have to fix it compiling the kernel.
You can use a lot of options like the flag owner, for example, if you use
noauto,user
This windows fs will not be mounted each time you start your linux box, It means you will have to mount it using mount
mount /mnt/win
will work if you have changed your fstab. How ever, you can mount it with NO fstab modification using:
mount -t vfat /dev/hda /mnt/win
see "man fstab" and "man mount"
DMI : Demian Gutierrez
Newsgroups: comp.os.linux.help,comp.os.linux.misc,comp.os.linux.setup >How can I mount a FAT32 volume so that non-root accounts can read and >write to it? > >root can read/write, but non-root can only read. I'm using this in fstab: > > /dev/sdb1 /mnt/remv vfat user,rw
Just figured this out last night, here is mine:
/dev/hda1 /windows vfat user,exec,conv=binary,rw,umask=000 0 0
The part that is relevent is the umask=000, that does the magic.
moonie ;)
Date: 26 Sep 2002 03:01:22 GMT Newsgroups: comp.os.linux.misc
> > Is there a program for linux that would extract files from a ISO > > image? Any help would be appreciated. > > ... mount it as any other file system using loop device
To expand:
mount -o loop /path/to/file.iso /mnt/somewhere
mounts the ISO file on /mnt/somewhere, using the loop device, and you can browse its contents and do whatever as if it were a CD that was mounted in your CD-ROM drive. Remember that mounting filesystems is a privileged operation, so you'll want to be root when you do this.
If you want to take a data CD-ROM and make an ISO image out of it, it's pretty easy:
dd if=/dev/cdrom of=/path/to/file.iso bs=32k
faster.
Matt G