Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ext4 USB mount issues

Featured Replies

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?

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.