ReefBum Posted August 23, 2019 Posted August 23, 2019 Received new odroid HC1 today and having issues mounting a seagate 2tb hdd. armbian odroidxu4/Debian_buster_next Seagate HDD 2TB sudo fdisk /dev/sda created new primary partition sudo mkfs.ext4 /dev/sda1 mounted drive ( this works and the drive is mounted ) sudo mount /dev/sda1 /mnt/hdd but if i try to mount as user it fails pi@HC1:~$ sudo mount -t uid=pi,gid=pi /dev/sda1 /mnt/hdd mount: /mnt/hdd: unknown filesystem type. sudo mount -o uid=pi,gid=pi /dev/sda1 /mnt/hdd mount: /mnt/hdd: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error. sudo mount -t ext4 -o gid=pi,uid=pi /dev/sda1 /mnt/hdd mount: /mnt/hdd: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error. output from fdisk -l Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Disk model: 001-1RG174 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xeea250e5 Device Boot Start End Sectors Size Id Type /dev/sda1 2048 3907029167 3907027120 1.8T 83 Linux If I put the drive on usb/adapter with win7 laptop and format partition with ntfs all works perfectly Why all the issues when formated ext4 and is there a way to solve?
qstaq Posted August 24, 2019 Posted August 24, 2019 You are confusing mount options. gid & uid are only for network or local file systems that dont support unix like permissions. They allow you to overlay a fake permissions base over the top of a filesystem that doesnt have the attributes to support unix like permissions You shouldnt be using uig or gid to mount an ext4 filesystem, by design it will not work. Mount it without any -o gid or uid options and once mounted then you can use chown or chmod to set the native permissions that you want
Recommended Posts