Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Tuesday, 18 July 2023

Ubuntu 22.04 on older devices with no, or bad UEFI

 Recently I had to install Ubuntu 22.04 server onto 3 laptops, which did not have any support for UEFI, or the UEFI support was broken. 


It was indicated when, after successful ubuntu install, the first boot, fails with no disk found. 


* BootDevice not found 

etc. 

the fix is simple enough. 

1. disable the UEFI support in the BIOS

2. Beging the ubuntu (booting off the USB stick) install

    but when you get to the first menu, choosing the keyboard layout, switch to a new console (ALT f2) and prepare the disk manually. 

This will vary for some devices (which is the boot disk, partitiion layout etc) but the basics are

sudo fdisk /dev/sda

# change the partition type to DOS (m for menu, look at the bottom)

# delete any old partitions

# create a new primary partition  (2G in size for /boot)

# create a second parition (remainder) for /

# set partition one to be bootable ('a')

# write the changes.

 

3. now go back to console 1 (alt F1) and when you get to disk choice, 

choose custom and select, and allocation the new parittions you created as 

primary 1 - /boot

primary 2 - /

and then proceed. The installer will do the right thing and it will boot.

 


Sunday, 18 March 2007

Installing Ubuntu Server 6.10 on Dell PowerEdge 2400 Server

After much pain in trying to start the install, I was finally able to get the install underway.

What was the problem ?

I have 4 disks (2x 9 and 2 x 18G) and the installer was not recognising the logical disk that I setup on the RAID array (2 x 8 as one, RAID1 or 0)

What was the "possible" solution ?

Apparently it is a common found problem with these MegaRAID adaptors.

Essentially I2O is a specification used in these RAID arrays.

Personally I don't care too much, I just need my server running.

Apparently, the i2o module (i2o_core) for linux loads up first and then the megaraid module can't find the disks when it loads.

A few people found ways around it by manually loading the modules in the right
order (RHE, Fedora).

My answer for Ubuntu 6.10 server:

I found a tip on the RHEL "release" notes for RHEL 5 beta 2.

http://www.linuxcompatible.org/Red_Hat_Enterprise_Linux_5_Beta_2_s76179.html

It states: Change the megaraid mode from I2O to Mass Storage.

I did that .. (Ctrl-M when it pops up) and then went back through the install. No problem.

I can see my 9G and then also my 2 x 18G's.

Nice.

Thanks Red Hat. (Sorry I left you at RE 4.2)

Saturday, 8 May 2004

Upgrading to Kernel 2.6

Due to various technicality issues arising from incompatibilities with my kernel 2.5, I was forced to upgrade to 2.6 (on the laptop here)

So a quick check, and then by force having to reboot back to 2.4 to do it,
I upgraded, and a few things didn't work. I needed to add a line in /etc/netowkr/interfaces
eth2 inet dhcp auto

# or similar and /etc/modules
psmouse

The first, (eth2) my PCMCIA wireless network card moved to eth2 (when under 2.4 and 2.5)
it was eth1.

At the psmouse, it's a new module needed for the PS2 type interfaces, of which my Trackpad on the Vaio lappy
is one.

So .. a quick, 40 mins of play and Im up to 2.6.5 .. not bad for a days work.

Thanks Linux (and debian) for making this all possible.!
(love it)

Monday, 10 November 2003

(In)Sane Scanner for Linux

I'm blogging this one because I have needed it before today (this time being the 2nd time I have needed to know this info).

I have a BENQ 4300U USB Scanner, was $70 8 months a go and is still great.

Making it work with Linux is not too hard as some might think.
install the sane drivers .. (apt-get install sane) debian-esq

apt-get install xsane (the front gui scanning tool)


and now the firmware,

The sane driver (snapscan.sf.net) needs to know
how to talk to the scanner.
This is all in the scanner driver/bios/something file (i don't care much
for these details. I just need it to work .. gosh I'm changing :-), in the past
I would investigate everything..

so .. find this file on your windows install .. reference the table at snapscan.sf.net
My file is the u176v046.bin

How do I know this ?
Easy .. the device has a number, when you plug the USB scanner in, the linux USB drivers will
detect it and throw a message in /var/log/messages about such event.

In the log message, is the device number, which will correspond to the snapscan device id they know
about.. egc:

# dmesg | grep -i usb
... skip all this to the last lines ..
hub.c: new USB device 00:07.2-1, assigned address 3
usb.c: USB device 3 (vend/prod 0x4a5/0x20b0) is not claimed by any active driver.

vendor id and product ID .. 0x4a5/0x20b0

These quite cheerily map to the table entry at the aforementioned driver website.

So Search for this file on your windows boxen.
Mine of course is u176v046.bin

So .. I created a directoy /usr/lib/sane/firmware (anyone know where else this is meant to go, seems good to me)

and then edit the /etc/sane.d/snapscan.conf file ,
at the top set the path to your firmware file.

restart xsane and hey presto ..

BUT, something has changed since I did this on the laptop.

As I understand it, previously, sane used to use an object file
scanner.o method to talk to the scanner.
now it is all via /proc/bus/usb, which debian rightly warned me,
only root has access to.

So, a quick check in /usr/src//Documentation/usb
grep usbfs reveals proc_usb.txt, in there reveals
that you set devmode=0666 for the mount and the device entry points will get
-rw-rw-rw-

so my now /etc/fstab entry for the /dev/usbfs looks like

none /proc/bus/usb usbfs defaults,devmode=0666 0 0


Hope that all helps someone (and me next time I have to do it again and forgot
how I did it last time).

cheerios.

Monday, 21 April 2003

First Sync in linux with my m505

First thing would be to get the palm pilot syncing. I have a Palm m505
and it comes with a USB cradle only. First thought was that I would need
to go out an buy a serial sync cable to get the console.

But thanks to some awesome work, there is the visor module (created from
the original HandSpring Visor as it was the first Palm to have USB
as it's syncing technology.

So .. to get syncing...
I used this site to do my first linux sync.
http://home.earthlink.net/~cleryd/

Best part of all this was simple steps. Because I run debian (any many
other distros support this also), all I had to do was



modprobe visor



This loaded the module into the kernel.
and I saw this spew up on the console, always a good sign (no errors)



usb.c: registered new driver serial

usbserial.c: USB Serial support registered for Generic

usbserial.c: USB Serial Driver core v1.4

usbserial.c: USB Serial support registered for Handspring Visor

usbserial.c: USB Serial support registered for Palm 4.0

usbserial.c: USB Serial support registered for Sony Clié 3.5

usbserial.c: USB Serial support registered for Sony Clié 4.0

visor.c: USB HandSpring Visor, Palm m50x, Sony Clié driver v1.5



next bit was to get the pilot-link

(thanks debian ...)



apt-get install pilot-link



I notice there is another 'type' of syncing software, coldsync.
Didn't / haven't tried it, will tell more when I know more I guess.

So now, the test, let's back this baby up.



mkdir somedir

cd somedir

pilot-xfer -p /dev/ttyUSB1 -b .



* Press the HotSync *



:-( didn't work..

oh wait, I need the core usb stuff loaded...
(* took a guess, ohci (either that or uhci, there is a way to
work out what type of bridge you have, it's all in the lspci
from memory) *)



modprobe usb-ohci



That worked !!

So now , try again,



pilot-xfer -p /dev/ttyUSB1 -b .

* Press the HotSync button, whammo! *



I saw this on the console..



usbserial.c: Palm 4.0 converter detected

visor.c: Palm 4.0: Number of ports: 2

visor.c: Palm 4.0: port 1, is for Generic use and is bound to ttyUSB0

visor.c: Palm 4.0: port 2, is for HotSync use and is bound to ttyUSB1

usbserial.c: Palm 4.0 converter now attached to ttyUSB0 (or usb/tts/0 for devfs)

usbserial.c: Palm 4.0 converter now attached to ttyUSB1 (or usb/tts/1 for devfs)



Now, notice a few things here, I had no idea if the Palm was on
ttyUSB0 or ttyUSB1. But I just followed what was done before,
and lo and behold, it was the right one because if you see,
The USB interface must have two logical ports, which the visor kernel module
must map to the 'serial like' devices USB0 and 1
.. and the "HotSync use and is bound to ttyUSB1" says it all.

cool!

Now on to compiling my first linux kernel into this puppy and blow it up!

Thursday, 20 March 2003

Satellite SM200D Installation Instructions for Smoothwall (and IPCop)

Okay..

After a huge delay, I have finally managed to put the smoothwall/satellite mod together...

smoothwall_sm200d_1.0.tgz - my v1.0[415k]
list_of_new_files.txt - A list of the files I have changed/added.

The original drivers.
SM200D SkyMedia Telemann v2.20 drivers - For SM200Dxx Series.

Helps to see what I did if you diff each file against the original smoothwall file.
It really wasn't that hard. Just a lot of working out. So use what I ahev done and go forth!

eg: tar cvfz /tmp/originals.tgz -T list_of_new_files.txt
diff -r

What's in there ?
  • Compiled 2.20 Text Drivers (app and module) against the 2.2.25 Kernel (smoothwall kernel in 2.2.25) (using debian of course)

  • Built for smoothwall 1.0 patch level 4.

  • Control scripts to load the module and change firewall rules (at start up)

  • A web interface to put in the settings you need.


  • How do I use them
    Backup your smoothie, (of it's a new one, don't worry you've got the CD ;)
  • patch it to level 4. (if they go beyond level 4, let me know and I'll check
    this tar file for conflictions).

  • Setup smoothwall to be a normal dialin machine. (Red Modem is Dialup)
  • Using scp (scp, WinSCP etc etc), copy the tgz to /tmp

  • Login as root.

  • cd / && tar xvfz /tmp/

  • Go to the smoothwall admin and you will see a new link under [dialup] satellite. Put your settings in there.
    I just realised that the IP address is irrelevant. leave it as 1.1.1.1 if you want. I used to use it where the dialup account was not meant for dialup (was given a different IP address via PPP)

    Email me if you have any issues - ramon_at_thebuckland.com and I'll see if I can help.

    How did I compile them
    1. Loaded up a 2.2.25 kernel in debian to match that of smoothwall. (this isn't necessary I believe)
    2. Obtained the kernel headers for 2.2.25.
    3. Downloaded the drives from telemann's site.
    4. Ran the INSTALL script once.
    5. Edited the INSTALL script and commented out the 'gzip lines for each section'
    6. edited drv/drv.mak and added -I/usr/src/kernel-headers-2.2.25/include
    to the end of CFLAGS (after the -O)
    7. Ran the INSTALL again.
    8. This did create some warnings, but all googling showed that they were okay.
    ... but I can't test these drivers as I no longer have this card. This is just a service to you :-)
    hope you appreciate it.
    9. collected the bits together (in the Release directory)
    10. Used the smoothwall 1.0 patched to level4.
    11. Added my mods created back in April last year.

    Some notes
    I have noticed that there is a mysterious 2.30 version of the driver but I was never able
    to find it. A friend pointed me to an smdstats program that someone wrote. Text based, similar to the Windows stuff, shows the signal strength. (Excercise for the reader to get it into smoothwall).

    This 'hack' is not suggested to work against a smoothwall > 1.0 pl 4.

    I don't have a card, so these drivers may not work. But they error saying they can't
    find a card okay so that is always good.

    If you want to donate me a card ;) i can test them and get them working proper.

    Extra bits
    I used to use my satellite service with a dialup ISP that did not know about it.
    What this meant was that the dialup account I used did not have the satellite IP address.
    It was dynamic.

    Basically, on top of this patch above, what I did was added some lines to the /etc/ppp/ip-up
    to create an alias interface so my packets would go out with the source address of my satellite

    Add this after
    system('/usr/bin/killall', 'dnrd');
    system @commandlist



    # change the ppp0 to ppp0:0 for satellite

    &readhash("${swroot}/satellite/settings", \%satsettings)



    if ($satsettings{'ENABLED'} eq 'on')

    {



    $localip = $satsettings{'IP_ADDRESS'};

    $interface = $interface . ':0';



    # ifconfig ppp0:0 netmask 255.255.255.255 pointopoint

    er-IP>



    &log("Satelite: < ".$interface."> is now ".$satsettings{'IP_ADDRESS'});

    system(@cmd,('/sbin/ifconfig',$interface, $localip,'netmask',

    '255.255.255.255','pointopoint',$remoteip));



    system(@cmd,('/sbin/route','del','default'));

    system(@cmd,('/sbin/route','add','default','gw',$remoteip,'dev',$interface));



    }



    Cheers!
    Ramon
  • Current 5 booksmarks @ del.icio.us/pefdus