Jump to content


kallquk

Member Since 23 Jun 2009
Offline Last Active 25 May 2023 00:04
-----

Posts I've Made

In Topic: attached usb drives partitions mounted at same point

26 November 2022 - 20:16

 

This?

 

Please answer in telnet:

for D in /sys/block/sd*; do echo "$D : $(readlink -fn $D/device)"; done

Yes, this in the picture is what I am using

 

Your command output:

 

 

root@h7:~# for D in /sys/block/sd*; do echo "$D : $(readlink -fn $D/device)"; done
/sys/block/sda : /sys/devices/platform/rdb/f045a000.sata/ata1/host0/target0:0:0/0:0:0:0
/sys/block/sdb : /sys/devices/platform/f0470300.ehci/usb1/1-1/1-1.2/1-1.2:1.0/host2/target2:0:0/2:0:0:0
/sys/block/sdc : /sys/devices/platform/f0470300.ehci/usb1/1-1/1-1.2/1-1.2:1.0/host2/target2:0:0/2:0:0:1
root@h7:~#

 

 

 

Did you do an update in the meantime? As that would overwrite the script with the old broken version/

No, I did not any update, except executing sometimes  command "opkg update"

 

At this moment downloaded from stb the file, so you can see if is yours.

 

I did 3-4 reboots last night, after them two of them were as /media/usb(not three but sdc1, sdb2). After last reboot and now, it is as expected.


In Topic: attached usb drives partitions mounted at same point

25 November 2022 - 18:04

I am so sorry to notify you that is doing again:

 

 

root@h7:~# mount
/dev/mmcblk0p5 on / type ext4 (rw,relatime,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=149272k,nr_inodes=37318,mode=755)
tmpfs on /media type tmpfs (rw,relatime,size=64k)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /var/volatile type tmpfs (rw,relatime)
/dev/sdc1 on /media/usb type ext4 (rw,relatime,data=ordered)
/dev/sdb2 on /media/usb type ext4 (rw,relatime,data=ordered)
/dev/sdb1 on /media/usb type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /media/hdd type ext4 (rw,relatime,data=ordered)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
192.168.6.37:/media/hdd/movie on /media/net/37 type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,soft,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.6.37,mountvers=3,mountport=35479,mountproto=tcp,local_lock=all,addr=192.168.6.37)
192.168.6.37:/media/usb on /media/net/37a type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,soft,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.6.37,mountvers=3,mountport=35479,mountproto=tcp,local_lock=all,addr=192.168.6.37)

 

There are time to time that work ok, and other times no, like above

I tried attaching device, and tried rebooting with device on, too, In both cases is the result above.

The device is an orico model with two sata slots, where hdds(one of them has two partitions) stand vertically. In few words, there is one usb connection to stb, only.


In Topic: attached usb drives partitions mounted at same point

22 November 2022 - 19:58

Yes, it worked perfectly.

 

Thank you very much


In Topic: attached usb drives partitions mounted at same point

18 November 2022 - 20:07

excuse me,

yes , agree, would be great fix automount

 

 

root@h7:~# mount
/dev/mmcblk0p5 on / type ext4 (rw,relatime,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=149272k,nr_inodes=37318,mode=755)
tmpfs on /media type tmpfs (rw,relatime,size=64k)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /var/volatile type tmpfs (rw,relatime)
/dev/sda1 on /media/hdd type ext4 (rw,relatime,data=ordered)
/dev/sdb2 on /media/usb type ext4 (rw,relatime,data=ordered)
/dev/sdb1 on /media/usb type ext4 (rw,relatime,data=ordered)
/dev/sdc1 on /media/usb type ext4 (rw,relatime,data=ordered)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
192.168.6.37:/media/hdd/movie on /media/net/37 type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,soft,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.6.37,mountvers=3,mountport=51329,mountproto=tcp,local_lock=all,addr=192.168.6.37)
192.168.6.37:/media/usb on /media/net/37a type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,soft,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.6.37,mountvers=3,mountport=51329,mountproto=tcp,local_lock=all,addr=192.168.6.37)
root@h7:~# ls -la /media
drwxrwxrwt    5 root     root           100 Nov 17 01:40 .
drwxr-xr-x   15 root     root          4096 Jan  1  1970 ..
drwxr-xr-x   16 root     root          4096 Nov 18 00:08 hdd
drwxr-xr-x    4 root     root            80 Nov 17 01:40 net
drwxr-xr-x    5 root     root          4096 Nov  9  2019 usb
root@h7:~# [ -d /media/usb ] && mountpoint /media/usb
/media/usb is a mountpoint
root@h7:~#


In Topic: attached usb drives partitions mounted at same point

17 November 2022 - 20:50

 

root@h7:~# ls -la /media [ -d /media/usb ]
ls: [: No such file or directory
ls: ]: No such file or directory
drwxrwxrwt    5 root     root           100 Nov 17 01:40 /media
drwxr-xr-x    5 root     root          4096 Nov  9  2019 /media/usb
root@h7:~# mountpoint /media/usb
/media/usb is a mountpoint

 here it is, I think

 

I can switch to fstab &blkid also, can I ?

But in this case I must create other mount points than /media, because it is deleted after reboot, isn;t it?