05-10-2001
Have the script do something like this:
su -c "mount -t vfat /dev/sda4 /mnt/jazz"
You will be prompted for the root password.
Also, recent version of mount allow you to add the "user" option to the corresponding /etc/fstab entry which will allow any user to mount the filesystem. So, you could put something like:
/dev/sda4 /mnt/jazz vfat user 1 1
in your /etc/fstab to allow a normal user to mount the filesystem.
Its also important to note that the "user" option implies "noexec,nodev,nosuid" unless subsequently overridden. See the man pages for fstab and mount.
HTH
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi...
question is this:
How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure.
... (4 Replies)
Discussion started by: soulshaker
4 Replies
2. UNIX for Dummies Questions & Answers
i'm prepping for my midterm, which i will bomb. i am scurrying to finish reading the final chapter before i get down into the review.
however, i came across something in chapter 8 - "mounting file systems" that has me really confused.
the text says the following:
then it goes on to... (2 Replies)
Discussion started by: xyyz
2 Replies
3. Filesystems, Disks and Memory
ive looked around for software to do this in linux, but am still not sure how to. i want to be able to mount a cdr and write to it and be able to take the disk out and finish writing whatever i want to it at a later time. can we do this in linux? (4 Replies)
Discussion started by: norsk hedensk
4 Replies
4. Linux
Is it possible to mount a disk from a non-root account?
I'm developing a Java application which executes commands in the shell using the java.lang.Runtime.exec api, which runs fine for commands ls, df, etc., but for commands mount and umount, i have problems as I need to be root to eecute these.... (8 Replies)
Discussion started by: brendan76
8 Replies
5. Shell Programming and Scripting
So, first and foremost, I'm having issues with my internet connection. Periodically, the connection drops across the network. The fix is simple enough: restart the modem. However, this gets old when the connection dies out every hour.
I can hit my surfboard on 192.168.100.1, and navigate to a... (5 Replies)
Discussion started by: kungfujoe
5 Replies
6. Solaris
In Solaris 8, when I boot to single user mode, mount a device and then reboot or init 0, the system unmount it automatically. However, in Solaris 10 it does not seem to do the same. Here is what I did:
{0} ok boot -s
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0.... (11 Replies)
Discussion started by: StarSol
11 Replies
7. Cybersecurity
Hello,
I'm trying to remove the need to use sudo to mount (in particular, binding).
Modifying /etc/sudoers using visudo, I have tried:
%admin ALL=NOPASSWD: /usr/bin/mount
%admin ALL=NOPASSWD: /usr/bin/umountand
%admin ALL=(ALL) NOPASSWD: /usr/bin/mount
%admin ALL=(ALL) NOPASSWD:... (5 Replies)
Discussion started by: Narnie
5 Replies
8. UNIX for Dummies Questions & Answers
Hello...
I've mounted a share using standard nomenclature for the NFS mount command with the following command line:
mount -t nfs -o rw {IP address1}:/ /mnt_for_70 / {IP address2}(rw)
mnt_for_70 is a mount point I created on {IP address2}
I'm confuse and want to be sure I use the... (1 Reply)
Discussion started by: blaine.miller
1 Replies
9. Fedora
I have some questions:
1, I successfully mounted my usb drive with "sudo mount /dev/sdb1 /mnt", but I can't wirte, It says "read-only file system". But I can write it in windows.
2, After I umounted the usb drive the led of it still on, but not blinking. Is it safe to unplug it? How to let it's... (17 Replies)
Discussion started by: vistastar
17 Replies
10. HP-UX
Hi Folks,
Could anyone please assist me with the what could be the scenarios to test the file system mount/umount performance check in HPUX.
Thanks in advance,
Vaishey (5 Replies)
Discussion started by: Vaishey
5 Replies
LEARN ABOUT FREEBSD
msdosfs
MSDOSFS(5) BSD File Formats Manual MSDOSFS(5)
NAME
msdosfs -- MS-DOS file system
SYNOPSIS
options MSDOSFS
DESCRIPTION
The msdosfs driver will permit the FreeBSD kernel to read and write MS-DOS based file systems.
The most common usage follows:
mount -t msdosfs /dev/ada0sN /mnt
where N is the partition number and /mnt is a mount point. Some users tend to create a /dos directory for msdosfs mount points. This helps
to keep better track of the file system, and make it more easily accessible.
It is possible to define an entry in /etc/fstab that looks similar to:
/dev/ada0sN /dos msdosfs rw 0 0
This will mount an MS-DOS based partition at the /dos mount point during system boot. Using /mnt as a permanent mount point is not advised
as its intention has always been to be a temporary mount point for floppy and ZIP disks. See hier(7) for more information on FreeBSD direc-
tory layout.
SEE ALSO
mount(2), unmount(2), mount(8), mount_msdosfs(8), umount(8)
AUTHORS
This manual page was written by Tom Rhodes <trhodes@FreeBSD.org>.
BSD
October 1, 2013 BSD