Please support VectorLinux!

Author Topic: DVB. Am I being stupid  (Read 1231 times)

Chuggly

  • Member
  • *
  • Posts: 10
DVB. Am I being stupid
« on: September 22, 2009, 01:48:35 pm »

Hi all

I am trying to copy the following file into the /sys/firmware directory.
dvb-usb-dib0700-1.10.fw

I copy and paste, but get the message

Failed to copy "/media/Iomega HDD/shytehawk/Linux/Linux tech/dvb_usb_file/dvb-usb-dib0700-1.10.fw" to "/sys/firmware/dvb-usb-dib0700-1.10.fw".

Failed to open "/sys/firmware/dvb-usb-dib0700-1.10.fw" for writing (No such file or directory).

Do you want to skip it?

I have even downloaded it again and copied it from the desktop, but still get the same message.
I have tried changing permissions and owner.

Regards to all
Tim

Am I doing something stupid??

/sys/firmware is a directory and dvb-usb-dib0700-1.10.fw is a file on my external HDD

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: DVB. Am I being stupid
« Reply #1 on: September 22, 2009, 02:33:04 pm »
I assume you are doing this with a filemanager (thunar/pcmanfm) that you opened as root.  You will not have the ability to paste anything into the /sys/ directory unless you are a super aka root user at the time.
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Chuggly

  • Member
  • *
  • Posts: 10
Re: DVB. Am I being stupid
« Reply #2 on: September 22, 2009, 02:57:24 pm »

Hi Stretchedthin

I am using Thunar logged in as root

I have also tried opening the icon on the desktop and dragging it to the directory with the same result.

Thanks
Tim


newt

  • Vectorian
  • ****
  • Posts: 1132
Re: DVB. Am I being stupid
« Reply #3 on: September 22, 2009, 03:11:12 pm »
edit:
I do not think you can actually write to the /sys directory; I believe it's for system/kernel user only. Perhaps that should be '/lib/firmware' rather than '/sys/firmware'?
endedit:

how about:su - root -c "cp /media/Iomega\ HDD/shytehawk/Linux/Linux\ tech/dvb_usb_file/dvb-usb-dib0700-1.10.fw /lib/firmware/"
su - root -c "cp /media/Iomega\ HDD/shytehawk/Linux/Linux\ tech/dvb_usb_file/dvb-usb-dib0700-1.10.fw /sys/firmware/"
you'll need to supply the root password when prompted
does this work?

« Last Edit: September 22, 2009, 03:27:14 pm by newt »

Chuggly

  • Member
  • *
  • Posts: 10
Re: DVB. Am I being stupid
« Reply #4 on: September 23, 2009, 09:20:51 am »
Well.

1st, Thanks to Newt and stretchedthin.

2nd I am a nob head!

Of course you cannot write to the /sys/firmware file.
But you can write to the /lib/firmware file.
So that's what I have now done successfully.

Many thanks again guys

Servere case of Muppetry

So the answer to my question at the beginning is a resounding YES............

Regards
Tim
« Last Edit: September 23, 2009, 09:28:26 am by Chuggly »