Usman`
Posts: 3
Joined: Wed Jun 20, 2018 3:12 am

Raspbian won't mount external HD and display issue

Thu Jun 21, 2018 10:19 am

I've recently bought a Raspberry Pi 3 to setup a Home Media Server that fulfils my needs.

So far I've tried OSMC, which is great to run Kodi. But I've found that Raspbian would be a better fit for me as I would like to also setup a Plex Server and also use the TV for occasional browsing (mostly to play SkillShare, as there seems to be no other way to access this on the TV other than a browser).

But with Raspbian I've encountered two problems that I'm not able to sort out on my own. I’ve also done much research but haven’t been able to find anything that helps. So I would be really grateful if anyone could find the time to help me out.

1. Raspbian won’t mount my external Hard Drive
When I connect the Hard Drive to the Pi running OSMC it gets mounted and I can access it without any issue. But I can’t see it when I connect it with Raspbian. I can see the light on the Hard Drive on when I connect it so I assume it is physically on.
Google searches point to the fact external HD needs external power to run, but don’t believe that applies to my case as with the Pi running OSMC can mount and read the HD just fine.

2. Can’t return to Raspbian Desktop once I launch Kodi
This is quite an odd one..
The Pi is connected with HDMI cable to the TV and I’ve configured RDP on Raspbian so I can remotely control it with my Macbook. When I launched Kodi, I can see the Kodi interface on the TV and the Raspbian Desktop on the Macbook (via RDP). But even when I close Kodi I can’t see the Raspbian Desktop on the TV and when I terminate the RDP session on the Macbook the TV screen won’t switch to the Raspbian desktop and instead just stay blank. When I launch the RDP session again, Raspbian Desktop is still there on my Macbook and I can't figure a way to have it back on the TV.
I’ve tried to Google this issue as well, but can’t search it properly as I don’t know exactly what to search..

Again, any help would be very much appreciated.

Thank you very much for taking time to reading this!

Roken
Posts: 214
Joined: Sun Dec 31, 2017 4:35 pm

Re: Raspbian won't mount external HD and display issue

Fri Jun 22, 2018 5:46 am

Re HD: With the HD plugged in to the Pi, post the output of:

Code: Select all

sudo fdisk -l
sudo blkid
cat /etc/fstab
Headless PI. OMG, someone cut it's head off. Oh, hang on. it didn't have one to start with.

Usman`
Posts: 3
Joined: Wed Jun 20, 2018 3:12 am

Re: Raspbian won't mount external HD and display issue

Fri Jun 22, 2018 12:10 pm

Roken wrote:
Fri Jun 22, 2018 5:46 am
Re HD: With the HD plugged in to the Pi, post the output of:

Code: Select all

sudo fdisk -l
sudo blkid
cat /etc/fstab
Thank you very much for taking time to help me with this!

Below are the outputs.

Code: Select all

[email protected]:~ $ sudo fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 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
Disklabel type: dos
Disk identifier: 0x00053561

Device         Boot    Start      End  Sectors  Size Id Type
/dev/mmcblk0p1          8192  3785156  3776965  1.8G  e W95 FAT16 (LBA)
/dev/mmcblk0p2       3785157 31116287 27331131   13G  5 Extended
/dev/mmcblk0p5       3792896  3858429    65534   32M 83 Linux
/dev/mmcblk0p6       3858432  3999743   141312   69M  c W95 FAT32 (LBA)
/dev/mmcblk0p7       4005888 19947517 15941630  7.6G 83 Linux
/dev/mmcblk0p8      19947520 20111357   163838   80M  c W95 FAT32 (LBA)
/dev/mmcblk0p9      20111360 31116287 11004928  5.3G 83 Linux


Disk /dev/sda: 931.5 GiB, 1000204883968 bytes, 1953525164 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
Disklabel type: dos
Disk identifier: 0x8b792327

Device     Boot Start        End    Sectors   Size Id Type
/dev/sda1           2 1953525163 1953525162 931.5G  7 HPFS/NTFS/exFAT

Code: Select all

[email protected]:~ $ sudo blkid
/dev/mmcblk0: PTUUID="00053561" PTTYPE="dos"
/dev/mmcblk0p1: LABEL="RECOVERY" UUID="AC10-6541" TYPE="vfat" PARTUUID="00053561-01"
/dev/mmcblk0p5: LABEL="SETTINGS" UUID="e94927a2-7186-4274-aff6-46a63d2251a8" TYPE="ext4" PARTUUID="00053561-05"
/dev/mmcblk0p6: LABEL="boot" UUID="05FA-EEB5" TYPE="vfat" PARTUUID="00053561-06"
/dev/mmcblk0p7: LABEL="root" UUID="b2a32632-e99c-462e-93b1-7f78c1fb4cc4" TYPE="ext4" PARTUUID="00053561-07"
/dev/mmcblk0p8: LABEL="boot-rbp2" UUID="3490-B6EA" TYPE="vfat" PARTUUID="00053561-08"
/dev/mmcblk0p9: LABEL="root-rbp2" UUID="33f1fc2f-8184-4204-90bc-b06a78d66659" TYPE="ext4" PARTUUID="00053561-09"
/dev/sda1: LABEL="Toshiba Ext" UUID="58F0-DBA2" TYPE="exfat" PARTUUID="8b792327-01"

Code: Select all

[email protected]:~ $ cat /etc/fstab
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p6  /boot           vfat    defaults          0       2
/dev/mmcblk0p7  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

Usman`
Posts: 3
Joined: Wed Jun 20, 2018 3:12 am

Re: Raspbian won't mount external HD and display issue

Fri Jun 22, 2018 1:57 pm

Checking the output of the commands you've posted I noticed that the HDD was in fact there but was not mounted. So I followed this quick guide to mount it up: https://www.raspberrypi.org/documentati ... storage.md

Thank you very much helping me figuring this out Roken! Really appreciate it :D !

Roken
Posts: 214
Joined: Sun Dec 31, 2017 4:35 pm

Re: Raspbian won't mount external HD and display issue

Fri Jun 22, 2018 8:39 pm

It's all easy once you know where to look :)

And Kudos for using the information to find an answer, rather than having your hand held. You will be a welcome member of the community.
Headless PI. OMG, someone cut it's head off. Oh, hang on. it didn't have one to start with.

Return to “Troubleshooting”

Who is online

Users browsing this forum: univok and 48 guests