Linux / UNIX Tech Support Forum
This is a discussion on Linux Mount a USB flash or pen drive as a normal user within the Getting started tutorials forums, part of the Linux Getting Started category; New user often gets confused with Linux security permissions. Simple mounting of a USB flash drive as a normal user ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
New user often gets confused with Linux security permissions. Simple mounting of a USB flash drive as a normal user (non-root) can be hard task.
Truth: The mount command can be issued only as the root user. Solution: Give permission to normal user to mount a USB pen or flash drive. #1: Create a directory Code:
# mkdir /mnt/usbpen Code:
# fdisk -l Disk /dev/hdb: 80.0 GB, 80060424192 bytes 255 heads, 63 sectors/track, 9733 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 2432 19535008+ 83 Linux /dev/hdb2 2433 2554 979965 82 Linux swap / Solaris /dev/hdb3 2555 6202 29302560 83 Linux /dev/hdb4 6203 9733 28362757+ 5 Extended /dev/hdb5 6203 9733 28362726 83 Linux Disk /dev/sda: 256 MB, 256901120 bytes 8 heads, 62 sectors/track, 1011 cylinders Units = cylinders of 496 * 512 = 253952 bytes Device Boot Start End Blocks Id System /dev/sda1 1 1011 250697 b W95 FAT32 In the above output, /dev/sda1 is my flash drive. #3: Open /etc/fstab file Append following line: Code:
/dev/sda1 /mnt/usbpen auto noauto,user,rw,exec 0 0 Code:
$ mount /mnt/usbflash |
| Sponsored Links | ||
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HowTo Connect 'C' with Flash in Linux | sivasubramaniam | Coding in General | 1 | 01-03-2008 02:37 AM |
| Add normal user / FTP user usein NORMAL user(non-root) | anilvrathod | Shell scripting | 0 | 07-12-2007 06:04 PM |
| RHEL - redhat linux pen drive mount command | harshala09 | Linux hardware | 4 | 03-09-2007 07:34 PM |
| Ubuntu Linux firefox flash setup how to | chiku | Linux software | 1 | 18-09-2006 09:07 PM |
| mount one partition of one linux server on other linux serve | Jaggu | Linux software | 1 | 07-08-2006 10:47 PM |