How Do I Edit An IMG File?

cmcigas

Reputable
Sep 5, 2014
72
0
4,630
Hello everyone, not sure if this is the right forum to ask but I thought Id give it a shot. I have an .IMG file that I am going to use for my Dell R610 server. The IMG file is located here for references https://download.xpenology.fr/.

With this IMG file, one of the drivers in it for my R610 is located in the wrong folder.

The people who made this OS dont want to give out how to fix the issue Im guessing so they keep coming back to that website.

I was hoping to see if anyone could tell me how to edit the file. Whenever I mount it to a USB stick it just shows up as note pad pages and I cant view anything else.

Alls I need to do is move one file within the IMG to another folder. Can anyone help?
 
Solution


Whichever distro you are comfortable with. Ubuntu, LinuxMint.

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


Ok thanks for your help. Is there an easy way to do this or should I just google it and figure it out?

Sorry but I have no idea how to do what you said.
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


ill definitley try this out tonight thank you so much
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


I downloaded the tool and was still unable to mount the IMG file. Says I need to format the disc. The ISO file mounts but I am still unable to open them up, they only open into Notepad documents.

Honestly I am not sure if I am even doing it right. I have never done anything like this before. Any more help would be greatly appreciated thank you
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


I wanted to put an open version of Synology's DSM Software since I love using. I was able to grab a server from my job and since the software is really easy to use. There are versions out there that work properly but the latest version doesnt have the correct driver in the correct folder for my NIC.

I was going to put Ubuntu on the R610 if this didnt work.

Sorry, but I am really bad at software side of things. I only work on the hardware portion of servers.
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


i do have W10 installed on my home PC. Ill have to download something to create a virtual drive correct? then just mount an ISO through there then create an IMG file?
 

USAFRet

Titan
Moderator


If it is an uncompressed IMG, you might be able to just rename it .ISO, and Win 10 should mount it natively.
Make your changes, and save that changed thing back into a new ISO.
 
From the web page you referred, there is a description of what each file is:
pat: Synology DSM setup file
img: burn it to an usb drive
iso: burn it to cd/dvd
wmdk: use it for VMware
So - IMG file is intended to be "burned" to an USB drive (in similar way as ISO can be burned to CD/DVD drive). So, get a spare USB key, use "Win32 Disk Imager" (free utility) to burn it onto an USB drive, and boot off that USB (if your server supports USB booting).

Edit: Out of curiosity, I downloaded one of these IMG files, they open pretty well with WinImage, and there is nothing special inside - SysLinux boot media, with most of the capacity taken by 22mb zImage kernel file. There are no folders, and apart from SysLinux.cfg nothing else could be edited. This is the content of the image:
Directory of C:\Temp\XPEnoboot_DS3615xs_5.2-5644.1
2015-11-07 14:48 22,638,848 zimage
2015-11-07 14:48 116,684 ldlinux.c32
2015-11-07 14:48 24,124 libutil.c32
2015-11-07 14:48 26,336 menu.c32
2015-11-07 14:48 759 syslinux.cfg
2015-11-07 14:48 61,952 ldlinux.sys
6 File(s) 22,868,703 bytes

And an important note: The first message in the forum says "Do not use 5644"!
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


I renamed it but error message said it wasnt valid. So I downloaded the ISO from the same site. I was able to mount it but like what Alabalcho said it just comes up with kernel files and the boot media. No folders. This is a bootloader though. So maybe thats why? Sorry about that.

The config files come up as I can open them in notepad.
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


Yeah I understand that I shouldnt use 5644 but I just wanted to try and see since this is my first time using that software when it seems only people that have set up before hand have the issues. If not Ill just try it in a different bootloader.

Im guessing this is the issue. When I do boot to USB, the server cant get any further without login info. But its not supposed to get any further. I am supposed to be able to find the Server through an IP on a working PC but since the drivers for the NIC are in the wrong folder I am unable to boot to change the files.

EDIT: per below, this is one of the guys who puts out the software. Just not sure how to get to those folders.

I made a mistake and put the missing firmware in /lib/firmware/bnx2x/ instead of /lib/firmware/bnx2/ :(
You have to move the file bnx2-mips-09-6.2.1b.fw from bnx2x to bnx2 folder.
This will be fix the next repack/release
 

USAFRet

Titan
Moderator


OK, so I downloaded the ISO, and mounted it with PowerISO.
isolinux.

THis is what that ISO consists of:
iB95Lmn.jpg


Yes, config files, and it is apparently a bootable image.
So you burn that image to a USB or DVD
Boot from that. It might install to your server drive.
The file inside that ISO, "zImage", is the actual installation thing. If the contents of THAT are bad, that is the fault of whoever created that ISO. You can't 'fix that' directly in that ISO or IMG file.

After you get it installed, then you fix the driver issue.
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


The only thing is I cant install it on that server. Since the PAT file is what installs on the drives I cant go into the ISO on the server. I am supposed to be able to find the server as a "Synology" server on a working PC after that ISO is booted to the server, but since the NIC drives are in the wrong location I am unable to do so.
 

USAFRet

Titan
Moderator


An incorrect NIC configuration should not impact the overall installation.
You don't 'go into' the ISO...you boot from install media created from that ISO. DVD or USB.
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


Sorry I have no idea about any of this but when I boot to the USB, the server boots up and asks for credentials to log in. It cant boost past that and I cant do anything on the server except input credentials. But since I cant see the server on my PC the Synology assistant cant create credentials or install the PAT file which would allow me to actually have a working synology server.

When I boot to the USB I have 3 options, the first is to boot, the second is to install or upgrade and the third is to debug. Then it goes through some stuff to allow the synology assistant to see it. And thats it. To see more what I am talking about heres a youtube video of what the install process looks like, at the end (1:43) you can see the the DiskStation Login prompt, and thats all.

https://youtu.be/hCHba6RDkA0?t=74

EDIT: Thanks for your help with this I really appreciate it
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


Yeah I do have a Synology NAS that I use for photos and stuff but I want to use my Dell with it too. Plex, wordpress. Its just more powerful the the Synology. I am pretty much using a jailbroken (for a lack of a better word) version of their software to install on the Dell, since I dont have any skills with linux or other software, plus the synology software is free.
 

USAFRet

Titan
Moderator
Well...getting the Synology OS to work on a Dell server is a whole different thing.

IF you have created a bootable DVD or USB, and IF your Dell server can boot from a DVD or USB, and IF it does not properly boot and or install from that...

...then you (or whoever created it) needs to do a WHOLE lot more work.
 

cmcigas

Reputable
Sep 5, 2014
72
0
4,630


Yeah I did create a bootable USB and yeah the Dell server can. Actually the broken OS is working on a lot of HP servers and other Dell servers from what it seems and inlcuding some other NAS company products too. Its just that one driver stopping me from having the server up. Its just they messed up while adding in this one driver since it hasnt been in yet.