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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
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 | ||
|
|
|
||||
|
Nice work. Good for all newbie out there
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
![]() |
| Bookmarks |
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 | 03-01-2008 03:37 AM |
| Add normal user / FTP user usein NORMAL user(non-root) | anilvrathod | Shell scripting | 0 | 12-07-2007 07:04 PM |
| RHEL - redhat linux pen drive mount command | harshala09 | Linux hardware | 4 | 09-03-2007 08:34 PM |
| Ubuntu Linux firefox flash setup how to | chiku | Linux software | 1 | 09-18-2006 10:07 PM |
| mount one partition of one linux server on other linux serve | Jaggu | Linux software | 1 | 08-07-2006 11:47 PM |