Hello,
My external hard disk can be accessed from /media/BarbarosAkkurt and this is the ext4-formatted one having 1 TB capacity. ls -l command gives the following:
barbaros@linux-ii16:/media/BarbarosAkkurt/BarbarosAkkurtOfisYedek> ls -l
total 72
-rw------- 1 barbaros users 53776 Jun 29 13:48 bookmarks.html
drwxr-xr-x 4 barbaros root 4096 Jun 29 11:23 Desktop
drwx--x--x 57 barbaros root 4096 Jun 29 13:52 Documents
drwxr-xr-x 18 barbaros root 4096 Jun 29 11:25 Downloads
drwxr-xr-x 5 barbaros root 4096 Jun 29 11:28 Mail
fdisk -l command was not successful and gave an error message:
barbaros@linux-ii16:/media/BarbarosAkkurt/BarbarosAkkurtOfisYedek/Documents> fdisk -l
bash: fdisk: command not found
mount command had the following response:
barbaros@linux-ii16:/media/BarbarosAkkurt/BarbarosAkkurtOfisYedek/Documents> mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1331356k,nr_inodes=332839,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda5 on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
/dev/sda6 on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb1 on /media/BarbarosAkkurt type ext4 (rw,nosuid,nodev,relatime,user_xattr,acl,barrier=1,data=ordered,uhelper=udisks)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfs-fuse-daemon on /home/barbaros/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
the command df had the following output:
barbaros@linux-ii16:/media/BarbarosAkkurt/BarbarosAkkurtOfisYedek/Documents> df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 20641404 5138528 14454352 27% /
devtmpfs 1331356 8 1331348 1% /dev
tmpfs 1339156 1656 1337500 1% /dev/shm
tmpfs 1339156 668 1338488 1% /run
/dev/sda5 20641404 5138528 14454352 27% /
tmpfs 1339156 0 1339156 0% /sys/fs/cgroup
tmpfs 1339156 668 1338488 1% /var/run
tmpfs 1339156 668 1338488 1% /var/lock
tmpfs 1339156 0 1339156 0% /media
/dev/sda6 31054836 6043468 23970204 21% /home
/dev/sdb1 1007930660 13843196 942887516 2% /media/BarbarosAkkurt
see the following output for cat /etc/fstab:
barbaros@linux-ii16:/media/BarbarosAkkurt/BarbarosAkkurtOfisYedek/Documents> cat /etc/fstab
/dev/disk/by-id/ata-WDC_WD3200BEVT-60A23T0_WD-WXC1A61N7022-part2 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD3200BEVT-60A23T0_WD-WXC1A61N7022-part5 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-WDC_WD3200BEVT-60A23T0_WD-WXC1A61N7022-part6 /home ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
ls -l had the following output:
barbaros@linux-ii16:/media/BarbarosAkkurt/BarbarosAkkurtOfisYedek/Documents> ls -l /media/BarbarosAkkurt/
total 24
drwxr-xr-x 2 barbaros users 4096 Jun 29 13:49 BarbarosAkkurtEvYedek
drwx--x--x 6 barbaros root 4096 Jun 29 13:48 BarbarosAkkurtOfisYedek
drwx------ 2 barbaros root 16384 Jun 29 09:36 lost+found
I am starting to understand that the ownership of root will cause me trouble and I have no knowledge to change it.
Some more answers:
I used gparted to partition and format the 2TB external hard disk into 2 1TB disks, one of which was formatted with ext4 and the other with ntfs.
When I plugged in the external HDD via USB, there are two devices: NTFS_diskim as the NTFS_formatted one and BarbarosAkkurt as the ext4-formatted one. The following is the ls -l command executed at /media:
barbaros@linux-ii16:~> ls -l /media
total 4
drwx--x--x 5 barbaros root 4096 Jun 29 13:49 BarbarosAkkurt
I saw from the graphical interface that the other ntfs-formatted disk was not mounted, so it was not visible here.When I mounted it by clicking a button (no command given), the following output was produced:
barbaros@linux-ii16:~> ls -l /media
total 8
drwx--x--x 5 barbaros root 4096 Jun 29 13:49 BarbarosAkkurt
drwx------ 1 barbaros users 4096 Jun 29 13:34 NTFS_diskim
So I am speculating about the root ownership of my ext4-formatted disk. If I can find a command which will change the ownership to users, my problem will be gone. Is it true?
Are there any other info you require? If so, please let me know and I can supply the information.
Thank you
BA