Results 1 to 10 of 10

Thread: New Folder in Flash Drive

  1. #1
    Join Date
    Jan 2008
    Beans
    1,135

    New Folder in Flash Drive

    I just formatted my flash drive to Ext 4. I am now unable to make a new folder in the flash drive. Any insight into this problem will be appreciated.

  2. #2
    Join Date
    Jun 2014
    Beans
    7,415

    Re: New Folder in Flash Drive

    Exactly how did you try to do this? Did you do it using a GUI file manager? Using a terminal? External drives including flash drives are generally shown as owned by root when using a Linux filesystem so you need to ascertain the device name and mount point using lsblk then running the command: ls -l on the mount point to determine the owner:group and permissions. If you want to access/write to the partition you will need to give your user or group write permission.

  3. #3
    Join Date
    Jan 2008
    Beans
    1,135

    Re: New Folder in Flash Drive

    First I formatted the flash drive in G Parted. As I have always done, I right clicked the mouse. it did not allow me to make the new folder. Of course my knowledge is limited. I am anxious to learn however.

  4. #4
    Join Date
    Jan 2008
    Beans
    1,135

    Re: New Folder in Flash Drive

    If somebody could walk me through the process, it would be very helpful.

    Thanks in advance

  5. #5
    Join Date
    Jan 2008
    Beans
    1,135

    Re: New Folder in Flash Drive

    In Windows 10 I formatted the flash drive to ex FAT. I booted back into Ubuntu. I am now able to open a new folder.
    I really wish I knew what I was doing.
    I would appreciate it if somebody could explain it to me.
    Thanks in advance.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: New Folder in Flash Drive

    Part of the advantage of Linux partitions is ownership & permissions. This help restrict unknown users from running apps from the system directly if ownership & permissions are set correctly.

    Windows formats like NTFS, FAT32 & exFAT do not support Linux ownership & permissions. You end up setting a default when mounting those types of partitions. And cannot change them. Often owned by / (root) but wide open permissions so not as restrictive as they should be.
    Also FAT32 & exFAT not recommended for larger partitions.

    https://help.ubuntu.com/community/FilePermissions

    Default mounts are normally in /media. But I have a data partition mounted in /mnt.
    So sometimes I download a file or execute a command using sudo when I should not and a file or two do not have correct ownership & permissions. I just reset everything. Note that -R is recursive & modifies everything below the path specified. Never to be run on / (root) or root folders as that destroys system and reinstall is about the only way to restore.

    sudo chown -R $USER:$USER /mnt/data
    sudo chmod -R a+rwX /mnt/data
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: New Folder in Flash Drive

    Mine is formatted as fat32, now I need to move to that Drive first ie:

    Code:
    cd /media/me/MINE/
    Now I'll make a Folder called "folder"
    Code:
    mkdir folder
    Lets look now with:
    Code:
    /media/me/MINE 
    └─> ls
    folder
    And there it is my new folder, but if I want to Name it something meaningful to me:
    Code:
    mkdir folder My-New-Folder
    Always check to verify:
    Code:
    ls 
    folder  My-New-Folder
    Drive Details:
    Code:
    sudo blkid /dev/sdh
    [sudo] password for me: 
    /dev/sdh: LABEL_FATBOOT="MINE" LABEL="MINE" UUID="90F3-D60A" BLOCK_SIZE="512" TYPE="vfat"
    There is plenty of documentation on the web for this.
    One here for basic info: https://www.cyberciti.biz/faq/how-to...linux-or-unix/
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  8. #8
    Join Date
    May 2008
    Beans
    4,024
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: New Folder in Flash Drive

    Quote Originally Posted by daniell59 View Post
    First I formatted the flash drive in G Parted. As I have always done, I right clicked the mouse. it did not allow me to make the new folder. Of course my knowledge is limited. I am anxious to learn however.
    Quote Originally Posted by daniell59 View Post
    If somebody could walk me through the process, it would be very helpful.
    Two items of information:-

    (a) When a new user is created (even during the installation process), a new group with the same name is created and the user is added to it. This group is called the primary group of the user.
    e.g. Your user name is daniell59 and there will also be a group called daniell59
    (b) Using gparted to format a partition with ext4, the owner will be root.

    Now, in order to use the partition as a regular user, the permissions have to be edited.

    You will need to know where the external drive is mounted.
    Attach your flash drive and open Disks (gnome-disk-utility)
    Select the disk and you should see the mountpoint.
    e.g. /media/daniell59/0dcedd13-7a42-458c-a2a6-b722cf8ab67d

    This information is then used to create a command to change the ownership of a flash drive from root to daniell59.
    Open a terminal and enter:-
    Code:
    sudo chown -R  daniell59:daniell59 /media/daniell59/0dcedd13-7a42-458c-a2a6-b722cf8ab67d/
               #Change user, group and mountpoint to match your data
    Alternatively, you can use Disks to take ownership of a device.
    Attach your flash drive.
    Open Disks (gnome-disk-utility)
    Select the disk/flash drive
    Click the gear wheel to reveal Additional partition options > Take ownership and Enable recursive mode > OK > Enter user password

    N.B. Terminal command above with option –R = Recursive mode

  9. #9
    Join Date
    Apr 2007
    Beans
    3,121
    Distro
    Ubuntu

    Re: New Folder in Flash Drive

    To claim ownership on the newly formatted disk (with a file system that supports Linux permissions), open Disks, select the partition you just formatted, click the cog wheel and select "Take ownership".

  10. #10
    Join Date
    Jan 2008
    Beans
    1,135

    Re: New Folder in Flash Drive

    This time I formatted the flash drive to ext 4 using Disks instead of Gparted. There were no problems. I was able to write to the flash drive.
    Thanks to all for your helpful input.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •