Hi

On Tue, Jul 03, 2007 at 10:13:17AM +0200, Olivier FALZONE wrote:
> I have problems to install a Dell Optiplex GX745 for 2 weeks. I didn't
> have any idea for the issue, so if someone have any idea...
> We use systemimager 3.8.1-1 on Dell Optiplex 150, 270, 280, 620 without
> any problem. When I try to install a GX745, (with an image created on
> the same PC), systemimager can read his install script and then gives me
> this error : "could not stat /dev/sda - No such file or directory".

ide-scsi module? Installer and Image might see different disks:
/dev/hda (installer) and /dev/sda (image to be deployed).

The quick ugly fix is:

> I am using the standard kernel and initrd.img. 
recompile your kernel to have ide-scsi. Not too hard. Get the source,
edit the linux.config file, compile, and copy only the kernel out to
your netboot directory. Or perhaps it already has ide-scsi. When you
drop to a shell after couldn't stat /dev/sda, do lsmod|grep ide-scsi,
and check the devices: ls -l /dev/sda /dev/hda

In the master script, though it might think this is not necessary, it in
fact is: mount /dev/ /a/dev/ -o bind || shellout. My section there looks
like this: (yes, really, I know it is ugly, it works, dammit):

################################################################################
#
# Needed for ide-scsi/grub-install Note a little below as well
# after the systemconfigurator, we fix the device.map file as well.
#
echo "IDE-SCSI FIXES"
echo "ln -s /dev/hda1 /dev/sda1 || shellout"
ln -s /dev/hda1 /dev/sda1 || shellout
echo "mount /dev /a/dev -o bind || shellout"
mount /dev /a/dev -o bind || shellout
#
################################################################################

Then after the chroot /a/ systemconfigurator bit, the next section, I
have:

################################################################################
#
# Fix the device.map
#
echo "echo '(hd0) /dev/sda' > /a/boot/grub/device.map || shellout"
echo '(hd0) /dev/sda' > /a/boot/grub/device.map || shellout
#
################################################################################

In the unmount section, add:

echo "umount /a/dev || shellout"
umount /a/dev || shellout

Your fstab will of course stay sda, as that is what the image uses,
but it might use UUID thingies. Have a look.

The partition and mkfs section needs to be changed though:

For instance, this was all sda, and I had to change it to hda
so the installer could perform this:

### BEGIN swap and filesystem creation commands ###
echo "mke2fs -j /dev/hda1 || shellout"
mke2fs -j /dev/hda1 || shellout
echo "tune2fs -U 74c403d6-6296-4231-a1f0-36e92e0eab76 /dev/hda1"
tune2fs -U 74c403d6-6296-4231-a1f0-36e92e0eab76 /dev/hda1
echo "mkdir -p /a/ || shellout"
mkdir -p /a/ || shellout
echo "mount /dev/hda1 /a/ -t ext3 -o defaults || shellout"
mount /dev/hda1 /a/ -t ext3 -o defaults || shellout

For each partition and FS.

cheers,
Jan

-- 
   .~.
   /V\     Jan Groenewald
  /( )\    www.aims.ac.za
  ^^-^^

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to