Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

When plugged in:

blkid -c /dev/null >>> to get the name of the ext HDD
[root@batpc1 ~]# blkid -c /dev/null
/dev/sda1: UUID="ead7f205-2bb9-47d0-b6ed-d9d13d411b4c" TYPE="xfs"
/dev/sda2: UUID="P3j7kk-CLGv-qmyl-8P1y-jsCY-My5S-fJJsUK" TYPE="LVM2_member"
/dev/mapper/centos-root: UUID="85ab5dec-40af-4aee-b75c-5b30d05a3972" TYPE="xfs"
/dev/mapper/centos-swap: UUID="28599d10-9f82-433d-acd6-64c40ba4a65d" TYPE="swap"
/dev/mapper/centos-home: UUID="155ccda9-9016-4140-8a2a-3a78a137b1a2" TYPE="xfs"
/dev/sdb1: LABEL="HD-LBU2" UUID="5ACC0E00CC0DD6E3" TYPE="ntfs"
/dev/sdc1: LABEL="Seagate Expansion Drive" UUID="DE222FBD222F9A13" TYPE="ntfs"
/dev/sdd1: LABEL="LaCie" UUID="6853-5BA9" TYPE="vfat"


#fdisk -l /dev/sdd and #fdisk -l /dev/sdd1
[root@batpc1 ~]# fdisk -l   

Disk /dev/sda: 80.0 GB, 80026361856 bytes, 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000d32ad

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048   156301311    77637632   8e  Linux LVM

Disk /dev/mapper/centos-root: 51.2 GB, 51208257536 bytes, 100016128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-swap: 3221 MB, 3221225472 bytes, 6291456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-home: 25.0 GB, 25002246144 bytes, 48832512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x1702dfe0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              64  3907029119  1953514528    7  HPFS/NTFS/exFAT

Disk /dev/sdc: 2000.4 GB, 2000398929920 bytes, 488378645 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 268431360 bytes
Disk label type: dos
Disk identifier: 0x90bbf8a2

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048   488378644  1953506388    7  HPFS/NTFS/exFAT

Disk /dev/sdd: 160.0 GB, 160041885696 bytes, 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xcdc00e29

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1              63   312576704   156288321    b  W95 FAT32

[root@batpc1 ~]#


mount
[root@batpc1 ~]# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=1435928k,nr_inodes=358982,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,net_prio,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpuacct,cpu)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,freezer)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,hugetlb)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,pids)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpuset)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,devices)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mapper/centos-root on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=10113)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
/dev/sda1 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/centos-home on /home type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1001 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=290660k,mode=700,uid=1001,gid=1002)
gvfsd-fuse on /run/user/1001/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1001,group_id=1002)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdb1 on /run/media/myplex1/HD-LBU2 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)           <<<<<<<<<<<<<<<<<<<<< HDD1
/dev/sdc1 on /run/media/myplex1/Seagate Expansion Drive type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)  <<<<<<<<<<<<<< HDD2  but no HDD3 on /dev/sdd1
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=290660k,mode=700)


tail -f /var/log/messages -n 25
[root@batpc1 ~]# tail -f /var/log/messages -n 25
. . .
Sep 11 12:24:40 batpc1 ntfs-3g[29385]: Failed to sync device /dev/sdd1: Input/output error
Sep 11 12:24:40 batpc1 ntfs-3g[29385]: Failed to fsync device /dev/sdd1: Input/output error
Sep 11 12:24:40 batpc1 ntfs-3g[29385]: Failed to close volume /dev/sdd1: Device or resource busy
Sep 11 12:24:43 batpc1 kernel: usb 1-3: new high-speed USB device number 60 using ehci-pci
Sep 11 12:24:43 batpc1 kernel: usb 3-1: new full-speed USB device number 2 using uhci_hcd
Sep 11 12:24:44 batpc1 kernel: usb 3-1: not running at top speed; connect to a high speed hub
Sep 11 12:24:44 batpc1 kernel: usb 3-1: New USB device found, idVendor=152d, idProduct=2339
Sep 11 12:24:44 batpc1 kernel: usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Sep 11 12:24:44 batpc1 kernel: usb 3-1: Product: USB to ATA/ATAPI Bridge
Sep 11 12:24:44 batpc1 kernel: usb 3-1: Manufacturer: JMicron
Sep 11 12:24:44 batpc1 kernel: usb 3-1: SerialNumber: 58FB0FFFFFFF
Sep 11 12:24:44 batpc1 kernel: usb-storage 3-1:1.0: USB Mass Storage device detected
Sep 11 12:24:44 batpc1 kernel: scsi host18: usb-storage 3-1:1.0
Sep 11 12:24:44 batpc1 mtp-probe: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-1"
Sep 11 12:24:44 batpc1 mtp-probe: bus: 3, device: 2 was not an MTP device
Sep 11 12:24:45 batpc1 kernel: scsi 18:0:0:0: Direct-Access     TOSHIBA  MK1652GSX             PQ: 0 ANSI: 2 CCS
Sep 11 12:24:45 batpc1 kernel: sd 18:0:0:0: Attached scsi generic sg4 type 0
Sep 11 12:24:45 batpc1 kernel: sd 18:0:0:0: [sdd] 312581808 512-byte logical blocks: (160 GB/149 GiB)
Sep 11 12:24:45 batpc1 kernel: sd 18:0:0:0: [sdd] Write Protect is off
Sep 11 12:24:45 batpc1 kernel: sd 18:0:0:0: [sdd] Asking for cache data failed
Sep 11 12:24:45 batpc1 kernel: sd 18:0:0:0: [sdd] Assuming drive cache: write through
Sep 11 12:24:45 batpc1 kernel: sdd: sdd1
Sep 11 12:24:45 batpc1 kernel: sd 18:0:0:0: [sdd] Attached SCSI disk


udevadm info --query=all -n /dev/sdd
[root@batpc1 ~]# udevadm info --query=all -n /dev/sdd
P: /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/host18/target18:0:0/18:0:0:0/block/sdd
N: sdd
S: disk/by-id/usb-TOSHIBA_MK1652GSX_58FB0FFFFFFF-0:0
S: disk/by-path/pci-0000:00:1d.1-usb-0:1:1.0-scsi-0:0:0:0
E: DEVLINKS=/dev/disk/by-id/usb-TOSHIBA_MK1652GSX_58FB0FFFFFFF-0:0 /dev/disk/by-path/pci-0000:00:1d.1-usb-0:1:1.0-scsi-0:0:0:0
E: DEVNAME=/dev/sdd
E: DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/host18/target18:0:0/18:0:0:0/block/sdd
E: DEVTYPE=disk
E: ID_BUS=usb
E: ID_INSTANCE=0:0
E: ID_MODEL=MK1652GSX
E: ID_MODEL_ENC=MK1652GSX\x20\x20\x20\x20\x20\x20\x20
E: ID_MODEL_ID=2339
E: ID_PART_TABLE_TYPE=dos
E: ID_PATH=pci-0000:00:1d.1-usb-0:1:1.0-scsi-0:0:0:0
E: ID_PATH_TAG=pci-0000_00_1d_1-usb-0_1_1_0-scsi-0_0_0_0
E: ID_REVISION=0100
E: ID_SERIAL=TOSHIBA_MK1652GSX_58FB0FFFFFFF-0:0
E: ID_SERIAL_SHORT=58FB0FFFFFFF
E: ID_TYPE=disk
E: ID_USB_DRIVER=usb-storage
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=TOSHIBA
E: ID_VENDOR_ENC=TOSHIBA\x20
E: ID_VENDOR_ID=152d
E: MAJOR=8
E: MINOR=48
E: MPATH_SBIN_PATH=/sbin
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=15877615456





Mount on Ubuntu:   

Just need to know if it is using "sdb1"

mount HDD on Ubuntu
sudo blkid -c /dev/null | grep Elements
/dev/sdb1: LABEL="Elements" UUID="2CB6094CB609184A" TYPE="ntfs" PARTLABEL="Elements" PARTUUID="66c5b41f-4099-4828-8584-9635a85b3e3a"


mkdir /media/myplex/Elements
chown myplex /media/myplex/Elements
chgrp myplex /media/myplex/Elements 
mount /dev/sdb1 /media/myplex/Elements
Mount on Centos:
on centos
# mkdir /run/media/myplex1/LaCie
# chown myplex1 /run/media/myplex1/LaCie/
# chgrp myplex1 /run/media/myplex1/LaCie/     
# mount /dev/sdd1 /run/media/myplex1/LaCie


























Mount on GUI:

Once mounted:

lsblk
[root@batpc1 ~]# lsblk
NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda               8:0    0  74.5G  0 disk
├─sda1            8:1    0   500M  0 part /boot
└─sda2            8:2    0    74G  0 part
  ├─centos-root 253:0    0  47.7G  0 lvm  /
  ├─centos-swap 253:1    0     3G  0 lvm  [SWAP]
  └─centos-home 253:2    0  23.3G  0 lvm  /home
sdb               8:16   0   1.8T  0 disk
└─sdb1            8:17   0   1.8T  0 part /run/media/myplex1/HD-LBU2
sdc               8:32   0   1.8T  0 disk
└─sdc1            8:33   0   1.8T  0 part /run/media/myplex1/Seagate Expansion Drive
sdd               8:64   0 149.1G  0 disk
└─sdd1            8:65   0   149G  0 part /run/media/myplex1/LaCie
sr0              11:0    1  1024M  0 rom

df -h
[root@batpc1 ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   48G  6.6G   42G  14% /
devtmpfs                 1.4G     0  1.4G   0% /dev
tmpfs                    1.4G  9.7M  1.4G   1% /dev/shm
tmpfs                    1.4G   60M  1.4G   5% /run
tmpfs                    1.4G     0  1.4G   0% /sys/fs/cgroup
/dev/sda1                497M  333M  165M  67% /boot
/dev/mapper/centos-home   24G   20G  3.8G  84% /home
tmpfs                    284M   40K  284M   1% /run/user/1001
/dev/sdb1                1.9T 1001G  863G  54% /run/media/myplex1/HD-LBU2
/dev/sdc1                1.9T  867G  997G  47% /run/media/myplex1/Seagate Expansion Drive
tmpfs                    284M     0  284M   0% /run/user/0
/dev/sdd1                150G   65G   85G  44% /run/media/myplex1/LaCie

Issue:  write permission + grp/owner

  • No labels