Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You do know that Flash-media has a relatively short lifetime (a relatively small amount of write operations)?
I read a figure of 100.000 once - maybe more but not much compared to a harddisk...
When you run an application on such media (an exe which creates files...) and there are many such operations you could very fast be at the end of the lifetime of the device - these where originally intended for storage of data to carry it with you, not to be used as a harddisk-replacement.
How do I look in the mount options -- to see if the memory stick is mounted with the "noexec" option which will prevent me from executing files from there.
Also I am the owner
-rwxr-xr-x 1 kenneth kenneth 1065740 2005-12-02 04:07 clock
The command you type is simply: mount
and it shows all mounted filesystems along with where they are mounted and with what options.
If you need to change mount options permanently you:
-unmount the device
-change /etc/fstab -> put in what you want to be different
-mount the device again
thank you!!! i've been trying to change the permissions on my windows FAT32 partition for about an hour now, and this post was the ticket. i used partition magic to cut my NTFS partition into two and make one a FAT32 for my shared windows/linux junk (works fine, no data loss), and it was a bitch to figure out how to change the permissions. i'll show you what i did, using the exact commands i entered (/dev/hdd5 is my fat partition, and /media/fat is where i mounted it)
to sum up: first, unmount the fat partition with "sudo umount /dev/hdd5". then, edit fstab with "sudo gedit /etc/fstab", adding the line with the umask tag for the fat partition "/dev/hdd5 /media/fat vfat umask=000 00". save and exit. now, mount everything as per the contents of the fstab file with "sudo mount -a". you'll find your unruly fat partition now readable/writable by ALL users.
/etc/fstab is the file which describes which device should be mounted to which directory and with what options.
Editit with any editor you like.
a sample from mine:
Code:
#/dev/sda1 /mnt/usb vfat noauto,users 0 0
I have commented this out now (#), because my USB-stuff gets automounted in Gnome - just an example
first is the device - then the mount-point - then the filesystem-type - then the mount-options - read about the numbers at the end and a more comprehensive explanation in:
go to the ubuntu wiki if you're confused and search for "permissions". i put a section at the bottom of that page for changing permissions for FAT partitions in the /etc/fstab file. it should work with all volumes.
In short, if you don't add an entry to the fstab file, when your system re-boots, it will not get mounted, ie you'll have to manually re-type that line every time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.