artefactom Posted August 31 Share Posted August 31 How to mount a usb hard disk drive? I’m trying to set a NAS-like system on a TvBox. Share an HDD over samba. https://paste.armbian.com/xuvobugato 0 Quote Link to comment Share on other sites More sharing options...
SteeMan Posted August 31 Share Posted August 31 Moved to userspace sub forum. Removed incorrect tag. 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted September 1 Share Posted September 1 https://www.google.com/search?client=firefox-b-lm&q=how+to+mount+a+usb+drive+in+linux No success? 0 Quote Link to comment Share on other sites More sharing options...
artefactom Posted September 1 Author Share Posted September 1 It’s not like that. Armbian in some cases does not detect connected USB hard drives. Only flash drives or microSD. That’s why I shared the link. If you don’t want to help, don’t. You’re not obligated to comment. 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted September 1 Share Posted September 1 [ 5.124489] usb 1-2: New USB device found, idVendor=125f, idProduct=a35a, bcdDevice= 1.00 [ 5.138662] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1 [ 5.151816] usb 1-2: Product: HD650 [ 5.163401] usb 1-2: Manufacturer: ADATA [ 5.174874] usb 1-2: SerialNumber: 469093854006 [ 5.271985] usb-storage 1-2:1.0: USB Mass Storage device detected [ 5.284494] scsi host0: usb-storage 1-2:1.0 [ 5.305338] usbcore: registered new interface driver uas [ 6.304167] scsi 0:0:0:0: Direct-Access ADATA HD650 0 PQ: 0 ANSI: 6 [ 6.319922] sd 0:0:0:0: [sda] Spinning up disk... [ 7.010572] EXT4-fs (mmcblk0p2): mounted filesystem with writeback data mode. Quota mode: none. [ 7.359204] . [ 7.937317] systemd[1]: System time before build time, advancing clock. [ 8.383175] .................................................................................................not responding... [ 128.008368] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=DRIVER_OK [ 128.023616] sd 0:0:0:0: [sda] Sense Key : 0x2 [current] [ 128.035289] sd 0:0:0:0: [sda] ASC=0x4 ASCQ=0x1 [ 128.046964] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B) [ 128.059173] sd 0:0:0:0: [sda] 0-byte physical blocks [ 135.008044] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled [ 141.957722] sd 0:0:0:0: [sda] Asking for cache data failed [ 141.969473] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 141.982023] sd 0:0:0:0: [sda] Attached SCSI disk So it seems like it is being detected. Everything beyond is out of scope of Armbian and userspace related. 0 Quote Link to comment Share on other sites More sharing options...
artefactom Posted September 1 Author Share Posted September 1 Yeah, I saw that too. But you see it does not respond. Nvertheless, it does respond on all other systems. It does respond on my laptop Ubuntu, is mounted fine, It does mount fine on android tv. It does respond. It’s alive. Armbian isn’t responding with it. That’s why I am here. 0 Quote Link to comment Share on other sites More sharing options...
Igor Posted September 1 Share Posted September 1 1 hour ago, artefactom said: Armbian isn’t responding with it. That’s why I am here. I suggest you to try Armbian on your desktop PC. There is a version for download here: https://www.armbian.com/uefi-x86/ 0 Quote Link to comment Share on other sites More sharing options...
artefactom Posted September 5 Author Share Posted September 5 (edited) OK so I managed to get a response or communication between the scanned device them getting these weird errors please take a look oh and I am also sharing the FSTAB entries for the disks which I think is OK https://paste.armbian.com/wavomulela fstab UUID=29139414-cf10-4d96-91c7-aa71da90d700 / ext4 defaults,noatime,commit=600,errors=remount-ro 0 1 UUID=7612-3BF7 /boot vfat defaults 0 2 tmpfs /tmp tmpfs defaults,nosuid 0 0 UUID=9aa8342d-e41b-4faa-85ff-987d0eb39671 /media/250hdd ext4 rw,user,exec,nofail,umask=0000 0 0 mount -a mount: /media/250hdd: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error. dmesg(1) may have more information after failed mount system call. mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload. blkid /dev/mmcblk0p1: LABEL_FATBOOT="armbi_boot" LABEL="armbi_boot" UUID="7612-3BF7" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="76f4bd06-01" /dev/mmcblk0p2: LABEL="armbi_root" UUID="29139414-cf10-4d96-91c7-aa71da90d700" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="76f4bd06-02" /dev/zram1: LABEL="log2ram" UUID="9a014cf4-3774-4ba7-92e5-9f3e293739de" BLOCK_SIZE="4096" TYPE="ext4" /dev/zram0: UUID="1d241a44-4e41-4d07-90c0-00f6074c24ab" TYPE="swap" /dev/sda1: LABEL="250hdd" UUID="9aa8342d-e41b-4faa-85ff-987d0eb39671" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="76f4bd06-01" Edited September 6 by artefactom 0 Quote Link to comment Share on other sites More sharing options...
artefactom Posted September 28 Author Share Posted September 28 I just realized that to mount some thing in Linux you make a folder and then you go on and mount your drive or partition in there. If for whatever reason it doesn’t mount right or it does but later it fails, that folder still exist there. If you don’t realize it failed you’re gonna put files in there and you’re gonna flood that system driver and then run out of space wich then will lead to boot failure. That is the stupidest thing I’ve realized about Linux. 0 Quote Link to comment Share on other sites More sharing options...
robertoj Posted October 19 Share Posted October 19 did you do systemctl daemon-reload as advised? Did you create the /media/250hdd folder beforehand? Can you comment out the fstab line, and try mount /dev/sda1 /media/hdd250 ? 0 Quote Link to comment Share on other sites More sharing options...
Michael Robinson Posted October 19 Share Posted October 19 I always use mkdir -p 0 Quote Link to comment Share on other sites More sharing options...
going Posted October 19 Share Posted October 19 31.08.2024 в 21:36, artefactom сказал: How to mount a usb hard disk drive? I’m trying to set a NAS-like system on a TvBox. Share an HDD over samba. I have a similar situation with bananapi-m3. When I connect the hdd using a USB-SATA adapter, the disk is first detected, and when accessing it, it suddenly disappears. But I know exactly the reason for this behavior, since I worked with a soldering iron with this device. The disk consumes 2.5 amps, and USB can give much less. I do not know if this message of mine can help you. 0 Quote Link to comment Share on other sites More sharing options...
artefactom Posted October 21 Author Share Posted October 21 (edited) On 10/19/2024 at 1:26 PM, going said: The disk consumes 2.5 amps Yeah I pretty much figured it out by hearing it trying to spin and fail constantly When connected to it. But then again when I connected the same HDD with the same sata USB adapter to my Smart TV directly, It ran OK first try. So I’m waiting for this external powered 2 amp usb adapter and hope it’s enough. Thank you for your input. On 10/19/2024 at 1:34 AM, robertoj said: did you do systemctl daemon-reload as advised? Did you create the /media/250hdd folder beforehand? Can you comment out the fstab line, and try mount /dev/sda1 /media/hdd250 ? Yes to all and the Fstab is there. I was using the wrong UID part. On 10/19/2024 at 11:38 AM, Michael Robinson said: I always use mkdir -p Oukay thanks. What does this achieve? Edited October 21 by artefactom 0 Quote Link to comment Share on other sites More sharing options...
robertoj Posted October 23 Share Posted October 23 If /media does not exist, if you type mkdir -p /media/usbdrive, it will not complain about /media not there, and create that folder too 0 Quote Link to comment Share on other sites More sharing options...
artefactom Posted October 30 Author Share Posted October 30 OK, I think it’s happening. Correct me if I’m wrong but the stupidest thing about linux mounting , is happening. I’m sending or a process is downloading and sending files to where sdb14 is mounted. Before you ask… it is mounted. I checked and it is noticiable in the image. . So it is constantly blocking my available space in the /dev/mmcblk0p2 which I assume is the System partition. That’s all I know. There is nothing else happening wich can hoard free space in the system. Up untill I started using that it started to happen. Or so I think. How can I find out? How can I Find out what is hoarding that free space in disc? 0 Quote Link to comment Share on other sites More sharing options...
artefactom Posted October 30 Author Share Posted October 30 (edited) On 10/21/2024 at 11:36 AM, artefactom said: So I’m waiting for this external powered 2 amp usb adapter and hope it’s enough Oh and yeah. It helped alright. Drive is mounted. And maybe working ? I cannot say until I solve the stupidest thing about Linux mounting mystery. edit: yes it was the stupidest thing about Linux mounting. I unplugged the drive and there it was still a file downloaded. I. The folder target for the mount. Even though the System reports, as in the image, that the drive was mounted. Geez… That is stupid. Edited October 30 by artefactom 0 Quote Link to comment Share on other sites More sharing options...
going Posted October 30 Share Posted October 30 (edited) 15 часов назад, artefactom сказал: the stupidest thing about linux mounting 15 часов назад, artefactom сказал: Oh and yeah. It helped alright. Drive is mounted. And maybe working ? I cannot say until I solve the stupidest thing about Linux mounting mystery. edit: yes it was the stupidest thing about Linux mounting. I unplugged the drive and there it was still a file downloaded. I. The folder target for the mount. Even though the System reports, as in the image, that the drive was mounted. Geez… That is stupid. command help: mount --help full help page: man mount /dev/mmcblk0p2 29G 28G 0 100% / du --help create a file dirsize.sh: #!/bin/bash for d in /* do case $d in /dev|/proc|/sys) echo "Skipped $d ; continue ;; esac if [ -d $d ];then echo "$(du $d)";fi done chmod +x dirsize.sh - make it executable sudo ./dirsize.sh - Run with superuser rights Edited October 30 by going Run with superuser rights 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.