Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

Permission Denied when trying to edit ahci/new_id

The Ultimate Guide for the rest of us


Permission Denied when trying to edit ahci/new_id

Postby Zaileion » Fri Nov 22, 2013 9:14 am

Im trying to edit the following file, but i receive a permission denied response even when using sudo. Has Linux become windows where i cannot edit anything i damn well please or am i doing soemthing wrong.

the file i'm trying to edit is:
/sys/bus/pci/drivers/ahci/new_id
i've tried both the terminal and file manager, both to no avail.

Ultimate Edition 3.5.2 is AWESOME by the way...
Asus Rampage III Black Edition
Intel i7 Extreem X990
Corsair Dominator GT 12 GB RAM
LSI MEGARaid Controller 9271
2 Samsung 840 Pro SSD (RAID0)
ATI Radeon HD 6990
SoundBlaster X-FI Platinum Pro
Corsair 1200W Power Supply
Corsair Water Cooled CPU
Ultimate Edition 3.5.2 (LTS) / Windows 7 Ultimate
User avatar
Zaileion
U.E. Pro
U.E. Pro
 
Posts: 110
Joined: Sat Dec 10, 2011 11:59 pm
Location: Berlin, NJ, USA
Age: 45
Operating System: Ultimate Edition 3.2 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby pam » Fri Nov 22, 2013 11:26 am

new_id does not have read permissions.
So you cant read or cat it. I do not recommend changing the perms either.

I believe you are trying to enter a device id into the file.

Use the echo command for the same for the changes to take place instead like:
Random eg:
Code: Select all
echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id

To find the device id( i think you already know it) you can use:
Code: Select all
lspci -n
DONOTSPAMORTROLL:
http://forumubuntusoftware.info/viewtopic.php?f=9&t=11
Download Ultimate Edition and Oz Unity 3.0 from copy:-
https://www.copy.com/s/oBnDBsDOvxF8jW1EuLKM/Public
Download Ultimate Edition from sourceforge:-
http://sourceforge.net/projects/ultimat ... rce=navbar
Download Oz Unity 3.0 from sourceforge:-
http://sourceforge.net/projects/ueoz/files/UEOz/
Download Ultimate Edition torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Download Oz Unity 3.0 torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Image Image
Visit:http://www.ultimateeditionoz.com
User avatar
pam
Site Admin
 
Posts: 1087
Joined: Wed May 25, 2011 5:56 am
Location: India
Age: 38
Operating System: Ultimate Edition 3.5 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby Zaileion » Fri Nov 22, 2013 1:56 pm

several months ago i was trying to get Ultimate Edition to detect my SATA 3 RAID drives. You may rememebr... Afdter exhausing myself and im sure you among others at Ultimate Edition and UEOZ i gave up for a while. Nopw im back at it and recently found a post where someone stated that for the MARVELL drivers to work you need to do the following. here is a copy/paste of the specific command and the response i get in terminal.

Code: Select all
$ /bin/echo 1b4b 9192 > /sys/bus/pci/drivers/ahci/new_id
bash: /sys/bus/pci/drivers/ahci/new_id: Permission denied
$


i also tried your suggestion without "/bin" first...
Code: Select all
$ echo 1b4b 9192 > /sys/bus/pci/drivers/ahci/new_id
bash: /sys/bus/pci/drivers/ahci/new_id: Permission denied
$



**EDIT**
the commands in the post i found (which i cant seem to find again) were for ubuntu 11.04, i beleive, so it might be different form the current 12.04. you would know better then I...
**End of Edit**

there has to be a way.. i sure would love to have Ultimate Edition and Windows 7 on the same drives so i dont have to make 5 changes in BIOS to be able to boot into either OS. I've decided to order a real RAID controller, but its $450 and want to try one more time before i drop that much $. I would kick myself in the a$$ if i bought it then found a way around...
Last edited by Blackwolf on Fri Nov 22, 2013 4:08 pm, edited 1 time in total.
Reason: Placed code between code tags.
Asus Rampage III Black Edition
Intel i7 Extreem X990
Corsair Dominator GT 12 GB RAM
LSI MEGARaid Controller 9271
2 Samsung 840 Pro SSD (RAID0)
ATI Radeon HD 6990
SoundBlaster X-FI Platinum Pro
Corsair 1200W Power Supply
Corsair Water Cooled CPU
Ultimate Edition 3.5.2 (LTS) / Windows 7 Ultimate
User avatar
Zaileion
U.E. Pro
U.E. Pro
 
Posts: 110
Joined: Sat Dec 10, 2011 11:59 pm
Location: Berlin, NJ, USA
Age: 45
Operating System: Ultimate Edition 3.2 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby pam » Sat Nov 23, 2013 12:45 am

You are not running the command as root user. It will definitely work as root.

"make sure you have the Marvell SATA III Controller set to RAID, set the Jmicron eSATA and the Intel Storage Controller to AHCI. Exit and Save."

http://en.wikipedia.org/wiki/List_of_Ma ... ux_support

As far as dual boot is concerned, the BIOS picks up the MBR for the first disk set to boot. The MBR on a disk is a reserved space for holding info to boot up a system. I'd suggest you first install Windows and then linux, always.
Unless you are quite familiar with grub and chroot jailing, always install windows first. Also you will need to update grub to pickup all the installed OSes.

Find out what exactly your marvell id is with:
Code: Select all
lspci -nnk | grep Marv

The SATA-interface marvell id is important, not the IDE-interface.
Confirming your id, then run:
Code: Select all
sudo /bin/echo 1b4b 9192 > /sys/bus/pci/drivers/ahci/new_id


Im unsure, but you might need to use a newer one like 3.5/3.4 lite/3.6. I assume you already are.
You will also have to upgrade the kernel to the latest 3.11/3.12. No promises if it works or not.
DONOTSPAMORTROLL:
http://forumubuntusoftware.info/viewtopic.php?f=9&t=11
Download Ultimate Edition and Oz Unity 3.0 from copy:-
https://www.copy.com/s/oBnDBsDOvxF8jW1EuLKM/Public
Download Ultimate Edition from sourceforge:-
http://sourceforge.net/projects/ultimat ... rce=navbar
Download Oz Unity 3.0 from sourceforge:-
http://sourceforge.net/projects/ueoz/files/UEOz/
Download Ultimate Edition torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Download Oz Unity 3.0 torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Image Image
Visit:http://www.ultimateeditionoz.com
User avatar
pam
Site Admin
 
Posts: 1087
Joined: Wed May 25, 2011 5:56 am
Location: India
Age: 38
Operating System: Ultimate Edition 3.5 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby Zaileion » Sat Nov 23, 2013 1:41 am

i tried it with root several times with no luck.

Code: Select all
UE3:~$ lspci -nnk | grep Marv
UE3:~$ sudo /bin/echo 1b4b 9192 > /sys/bus/pci/drivers/ahci/new_id
bash: /sys/bus/pci/drivers/ahci/new_id: Permission denied
UE3:~$
Asus Rampage III Black Edition
Intel i7 Extreem X990
Corsair Dominator GT 12 GB RAM
LSI MEGARaid Controller 9271
2 Samsung 840 Pro SSD (RAID0)
ATI Radeon HD 6990
SoundBlaster X-FI Platinum Pro
Corsair 1200W Power Supply
Corsair Water Cooled CPU
Ultimate Edition 3.5.2 (LTS) / Windows 7 Ultimate
User avatar
Zaileion
U.E. Pro
U.E. Pro
 
Posts: 110
Joined: Sat Dec 10, 2011 11:59 pm
Location: Berlin, NJ, USA
Age: 45
Operating System: Ultimate Edition 3.2 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby pam » Sat Nov 23, 2013 1:49 am

Become the root user:
Code: Select all
sudo su

then try...
DONOTSPAMORTROLL:
http://forumubuntusoftware.info/viewtopic.php?f=9&t=11
Download Ultimate Edition and Oz Unity 3.0 from copy:-
https://www.copy.com/s/oBnDBsDOvxF8jW1EuLKM/Public
Download Ultimate Edition from sourceforge:-
http://sourceforge.net/projects/ultimat ... rce=navbar
Download Oz Unity 3.0 from sourceforge:-
http://sourceforge.net/projects/ueoz/files/UEOz/
Download Ultimate Edition torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Download Oz Unity 3.0 torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Image Image
Visit:http://www.ultimateeditionoz.com
User avatar
pam
Site Admin
 
Posts: 1087
Joined: Wed May 25, 2011 5:56 am
Location: India
Age: 38
Operating System: Ultimate Edition 3.5 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby Zaileion » Sat Nov 23, 2013 3:41 am

Your not going to believe this, but the sata 3 drives showed up!!! AMAZING!!! months of work to reach this point!!!

ok. RAID 0 has been created and currently has windows on it. but its not showing as a RAID drive. the 2 individual drives show up even though RAID 0 was configured in BIOS. my asumption is i need mdadm. am i correct?

I found the post several days ago in my phoneas history.
/bin/echo 1b4b 9192 > /sys/bus/pci/drivers/ahci/new_id

it says:
As for RAID mode, it’s just standard fakeraid/dmraid and again I’m yet to see any issues with the standard dmraid, kpartx and mount tools in detecting and mounting existing partitions.
Asus Rampage III Black Edition
Intel i7 Extreem X990
Corsair Dominator GT 12 GB RAM
LSI MEGARaid Controller 9271
2 Samsung 840 Pro SSD (RAID0)
ATI Radeon HD 6990
SoundBlaster X-FI Platinum Pro
Corsair 1200W Power Supply
Corsair Water Cooled CPU
Ultimate Edition 3.5.2 (LTS) / Windows 7 Ultimate
User avatar
Zaileion
U.E. Pro
U.E. Pro
 
Posts: 110
Joined: Sat Dec 10, 2011 11:59 pm
Location: Berlin, NJ, USA
Age: 45
Operating System: Ultimate Edition 3.2 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby pam » Sat Nov 23, 2013 10:29 am

For BIOS raid you dont need mdadm.
The OS will detect one Large drive as a RAID array.
If you configured RAID in BIOS it should show when installing any new OS-win/linux.
But its not showing...as you said.

You might need to install marvell raid software on windows when running live and during install time search for driver from either floppy or cd!!!!
Thats how i do it on HP proliant servers.

Check and see whether dmraid is there in linux. It should be there in Ultimate Edition already. If not then install it.
dmraid is important for detecting BIOS/HBA/fake RAID. It searches for metadata and loads the RAID array from BIOS.
mdadm is not important for BIOS raid setup.


NOTE: I have faced many problems with different revisions of marvell controllers. They are all absolutely s**t to configure and use.
Its on a shared single PCIe lane. Means the bandwidth splits per SATA port and you dont really benefit at all from RAID. Intel fake RAID is much much better. Just my 2 cents.
Your next best option is hardware RAID which is expensive(very).

http://rog.asus.com/forum/archive/index ... a248d67d1b
DONOTSPAMORTROLL:
http://forumubuntusoftware.info/viewtopic.php?f=9&t=11
Download Ultimate Edition and Oz Unity 3.0 from copy:-
https://www.copy.com/s/oBnDBsDOvxF8jW1EuLKM/Public
Download Ultimate Edition from sourceforge:-
http://sourceforge.net/projects/ultimat ... rce=navbar
Download Oz Unity 3.0 from sourceforge:-
http://sourceforge.net/projects/ueoz/files/UEOz/
Download Ultimate Edition torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Download Oz Unity 3.0 torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Image Image
Visit:http://www.ultimateeditionoz.com
User avatar
pam
Site Admin
 
Posts: 1087
Joined: Wed May 25, 2011 5:56 am
Location: India
Age: 38
Operating System: Ultimate Edition 3.5 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby Zaileion » Sat Nov 23, 2013 11:02 pm

Man, I'm so close to solving this problem...
I have windows successfully installed, ultimate edition successfully installed, GRUB installed successfully, and recognizing both Ultimate Edition and Windows. And can successfully boot into windows. All on FakeRAID Marvell Sata 3 RAID 0 drive. long hours and major frustration to get to this point...
but...
cant boot into ultimate edition. it drops to a full screen black and white shell that says something about /dev/something/something followed by a long alphanumerical code then something about busybox.. ( I know thats a poor description but its all I can remember without another hour or 2 of work and waiting to get it to show up again, get a picture and get it posted Next install attempt if the error shows again i'll snap and post it) but I think the shell error is less important.

My thinking is the commands i type in during the live CD session are not transferring onto the permanently installed system and when i reboot the commands entered during the live cd session are no longer valid and after Ultimate Edition trying to boot i get the black screen and the above error.

During live cd session i type
Code: Select all
UE3:~$ lspci -nnk | grep Marv
UE3:~$ sudo /bin/echo 1b4b 91a2 > /sys/bus/pci/drivers/ahci/new_id

followed by
Code: Select all
UE3:~$ sudo dmraid -ay


these commands make my Marvell SATA 3 RAID 0 drive show up and allow me to proceed with the installation.

How do i get these commands onto the perminately installed system. I asume boot into a live cd... and...
Asus Rampage III Black Edition
Intel i7 Extreem X990
Corsair Dominator GT 12 GB RAM
LSI MEGARaid Controller 9271
2 Samsung 840 Pro SSD (RAID0)
ATI Radeon HD 6990
SoundBlaster X-FI Platinum Pro
Corsair 1200W Power Supply
Corsair Water Cooled CPU
Ultimate Edition 3.5.2 (LTS) / Windows 7 Ultimate
User avatar
Zaileion
U.E. Pro
U.E. Pro
 
Posts: 110
Joined: Sat Dec 10, 2011 11:59 pm
Location: Berlin, NJ, USA
Age: 45
Operating System: Ultimate Edition 3.2 64 BIT



Re: Permission Denied when trying to edit ahci/new_id

Postby pam » Sun Nov 24, 2013 12:43 am

.....and chroot jail and make your changes there.
Here's how:
Boot into live Ultimate Edition disk first.
Next search where exactly your linux Ultimate Edition partition is (/dev/sdX1/2/3).


Do all the below as root user.
Next create a directory -- do all this while running live disk:
Code: Select all
mkdir /mnt/ultimate

Mount your linux partition into the above created directory..
Code: Select all
mount /dev/sdxx /mnt/ultimate

Once your Ultimate Edition partition is mounted, change disk to it:
Code: Select all
cd /mnt/ultimate

Mount temporary filesystems:
Code: Select all
mount -t proc /proc /mnt/ultimate/proc/

Code: Select all
mount -t sysfs /sys /mnt/ultimate/sys/

Code: Select all
mount -o bind /dev /mnt/ultimate/dev/

Code: Select all
mount -t devpts /dev/pts /mnt/ultimate/dev/pts/


Now chroot to your Ultimate Edition partition:
Code: Select all
chroot /mnt/ultimate /bin/bash


You will now be inside the Ultimate Edition partition and your prompt will change and look different. You are now formally operating a bash terminal in Ultimate Edition.

Now check to see, whether Ultimate Edition sees your RAID controller:
Code: Select all
lspci -nnk | grep Marv

It will show Sata-interface and IDE-interface...

Next...
Code: Select all
/bin/echo 1b4b 91a2 > /sys/bus/pci/drivers/ahci/new_id

Code: Select all
dmraid -ay

update grub...
Code: Select all
update-grub2


Once you have successfully run the commands exit from chroot:
Code: Select all
exit

This will bring you back to the live disk bash terminal...
Unmount all your filesystems:
Code: Select all
umount {proc,sys,dev/pts,dev,boot,[...],}

unmount root partition:
Code: Select all
umount /mnt/ultimate

reboot......
Code: Select all
reboot


The End.

Once started Ultimate Edition should boot up and hopefully you should not get busybox... :vil2_plafond
DONOTSPAMORTROLL:
http://forumubuntusoftware.info/viewtopic.php?f=9&t=11
Download Ultimate Edition and Oz Unity 3.0 from copy:-
https://www.copy.com/s/oBnDBsDOvxF8jW1EuLKM/Public
Download Ultimate Edition from sourceforge:-
http://sourceforge.net/projects/ultimat ... rce=navbar
Download Oz Unity 3.0 from sourceforge:-
http://sourceforge.net/projects/ueoz/files/UEOz/
Download Ultimate Edition torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Download Oz Unity 3.0 torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Image Image
Visit:http://www.ultimateeditionoz.com
User avatar
pam
Site Admin
 
Posts: 1087
Joined: Wed May 25, 2011 5:56 am
Location: India
Age: 38
Operating System: Ultimate Edition 3.5 64 BIT

Next

Return to Newbie's Corner

Who is online

Users browsing this forum: No registered users and 7 guests