Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: How to install (only) a kernel from an installation CD

  1. #11
    Join Date
    Mar 2009
    Location
    York, UK
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to install (only) a kernel from an installation CD

    Quote Originally Posted by bribera View Post
    Hmm... two thoughts on that:

    1. Your networking probably isn't running, so you won't be able to download stuff
    2. /var might be mounted elsewhere (!?)


    For the first, try running this:
    Code:
    ubuntu@ubuntu:~$ sudo /etc/init.d/networking start
    For the second, post your mount -l and /etc/fstab. It could be that one of your other partitions needs to be mounted in order to access /var.
    Hmm. I have only /home located on a different partition. The rest of the filesystem is on sda1.

    Code:
    root@ubuntu:/# sudo /etc/init.d/networking start
    sudo: unable to resolve host ubuntu
    Will try to do things all over again, maybe I missed something.

  2. #12
    Join Date
    Mar 2009
    Location
    York, UK
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to install (only) a kernel from an installation CD

    I commented the /sda3 part of /etc/fstab. Still get a
    Code:
    root@ubuntu:/# mount -a
    mount: special device /dev/disk/by-uuid/9c30c2b1-7423-48c7-86c5-eceddd6d41f6 does not exist
    which I don't know where it comes from

  3. #13
    Join Date
    Mar 2009
    Location
    York, UK
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Question Re: How to install (only) a kernel from an installation CD

    Quote Originally Posted by tg1w View Post
    I commented the /sda3 part of /etc/fstab. Still get a
    Code:
    root@ubuntu:/# mount -a
    mount: special device /dev/disk/by-uuid/9c30c2b1-7423-48c7-86c5-eceddd6d41f6 does not exist
    which I don't know where it comes from
    Anyone with an idea about the above? What does "special device" mean... it's not in /etc/fstab.

    Thanks

  4. #14
    Join Date
    Nov 2004
    Location
    Seattle, WA
    Beans
    93
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: How to install (only) a kernel from an installation CD

    It actually is in /etc/fstab - looks like it's your /dev/sda6 device's UUID.

    What does mount with the -l flag output?

    Code:
    root@ubuntu:/# mount -l
    That will show currently mounted devices. Not having a /home could be screwing things up.
    "To make a statue needs skill: to view a statue aright needs skill also." -Epictetus

  5. #15
    Join Date
    Mar 2009
    Location
    York, UK
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to install (only) a kernel from an installation CD

    As far as I can see, there is a /dev/disk/by-uuid/9c30...f6 entry. I deleted it but I get the same error.

    There is something interesting here:

    Code:
    ubuntu@ubuntu:/$ sudo chroot /mnt/system /bin/bashroot@ubuntu:/# cd /dev/
    root@ubuntu:/dev# ls
    agpgart   dsp2	 i2c-7	midi0	mixer3	    ram11  ram7       smpte1   tty3
    apm_bios  dsp3	 kmem	midi00	mpu401data  ram12  ram8       smpte2   tty4
    audio	  fd	 loop0	midi01	mpu401stat  ram13  ram9       smpte3   tty5
    audio1	  full	 loop1	midi02	null	    ram14  random     sndstat  tty6
    audio2	  i2c-0  loop2	midi03	port	    ram15  rmidi0     stderr   tty7
    audio3	  i2c-1  loop3	midi1	ptmx	    ram16  rmidi1     stdin    tty8
    audioctl  i2c-2  loop4	midi2	pts	    ram2   rmidi2     stdout   tty9
    console   i2c-3  loop5	midi3	ram	    ram3   rmidi3     tty      urandom
    core	  i2c-4  loop6	mixer	ram0	    ram4   sequencer  tty0     xconsole
    dsp	  i2c-5  loop7	mixer1	ram1	    ram5   shm	      tty1     zero
    dsp1	  i2c-6  mem	mixer2	ram10	    ram6   smpte0     tty2
    then

    Code:
    root@ubuntu:/dev# exit
    exit
    ubuntu@ubuntu:/$ cd /dev/disk/by-uuid/
    ubuntu@ubuntu:/dev/disk/by-uuid$ ls
    3B9630BF428D460C  c1448a6e-04eb-46a1-80f0-5154db00f923
    5AB5-4E84         ca1de354-fe68-4bb4-8258-29481db9f3e5
    AEA23EEAA23EB6A5
    Where is the error coming from... I don't know now. That file doesn't even exist any more.

    Code:
    root@ubuntu:/# sudo mount -a
    sudo: unable to resolve host ubuntu
    mount: special device /dev/disk/by-uuid/9c30c2b1-7423-48c7-86c5-eceddd6d41f6 does not exist

  6. #16
    Join Date
    Mar 2009
    Location
    York, UK
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to install (only) a kernel from an installation CD

    Networking is not working...and not willing to work.

    Code:
    ubuntu@ubuntu:/$ sudo chroot /mnt/system /bin/bash
    root@ubuntu:/# service networking start
    root@ubuntu:/# sudo apt-get install linux-image
    sudo: unable to resolve host ubuntu
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libboost-regex1.34.1 ...
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
      linux-image-2.6.28-16-generic linux-image-generic
    Suggested packages:
      fdutils linux-doc-2.6.28 linux-source-2.6.28
    The following NEW packages will be installed:
      linux-image linux-image-2.6.28-16-generic ...
    0 upgraded, 3 newly installed, 0 to remove and 10 not upgraded.
    Need to get 24.7MB of archives.
    After this operation, 96.1MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Err http://gb.archive.ubuntu.com jaunty-updates/main 
    linux-image-2.6.28-16-generic 2.6.28-16.55
      Could not resolve 'gb.archive.ubuntu.com'
    Err http://security.ubuntu.com jaunty-security/main 
    linux-image-2.6.28-16-generic 2.6.28-16.55
    ...
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    
    root@ubuntu:/# sudo /etc/init.d/networking start
    sudo: unable to resolve host ubuntu

  7. #17
    Join Date
    Nov 2004
    Location
    Seattle, WA
    Beans
    93
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: How to install (only) a kernel from an installation CD

    You just need to mount it using the device name instead of the UUID. The UUID isn't working because you didn't go through the normal bootup procedure, so it isn't set up.

    Try this:
    Code:
    ubuntu@ubuntu:/$ sudo mount -t ext3 /dev/sda6 /home
    Your "sudo: unable to resolve host ubuntu" error has to do with your hostname, I believe.

    Try doing this:
    Code:
    ubuntu@ubuntu:/$ cat /etc/hostname
    ubuntu@ubuntu:/$ sudo hostname ##### whatever the second entry for 127.0.0.1 is
    In other words, your host name is currently set to "ubuntu", but /etc/hosts is expecting a different name. My computer has the following entries:
    Code:
    127.0.0.1	localhost
    127.0.1.1	scylla
    So I'd do:

    Code:
    ubuntu@ubuntu:/$ sudo hostname scylla
    Then check whether you're connected to the internet:
    Code:
    ubuntu@ubuntu:/$ ping -c 3 google.com
    "To make a statue needs skill: to view a statue aright needs skill also." -Epictetus

  8. #18
    Join Date
    Mar 2009
    Location
    York, UK
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Exclamation Re: How to install (only) a kernel from an installation CD

    I will try to install the linux-image from the Ubuntu CD. If anyone can provide help, it will be highly appreciated.

    Thank you very much all.

  9. #19
    Join Date
    Mar 2009
    Location
    York, UK
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to install (only) a kernel from an installation CD

    Quote Originally Posted by bribera View Post
    It actually is in /etc/fstab - looks like it's your /dev/sda6 device's UUID.

    What does mount with the -l flag output?

    Code:
    root@ubuntu:/# mount -l
    That will show currently mounted devices. Not having a /home could be screwing things up.
    Indeed, I missed that. It is the /home partition. mount -l doesn't show /home as it is not mounted.

    Code:
    ubuntu@ubuntu:/$ sudo mount -t ext3 /dev/sda6 /mnt/system/home
    ubuntu@ubuntu:/$ cd mnt/system/home
    ubuntu@ubuntu:/mnt/system/home$ ls
    lost+found  x  y
    (x and y are the two usernames)

    Code:
    ubuntu@ubuntu:/$ sudo chroot /mnt/system /bin/bash
    root@ubuntu:/# mount -a
    mount: special device /dev/disk/by-uuid/9c30c2b1-7423-48c7-86c5-eceddd6d41f6 does not exist

  10. #20
    Join Date
    Nov 2004
    Location
    Seattle, WA
    Beans
    93
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: How to install (only) a kernel from an installation CD

    Yeah, mount -a won't work in this situation. I think it's because your real UUIDs are in the *livecd's* /dev, but you've chrooted into another /dev. It doesn't matter, now that you've mounted your home directory as well.

    Just out of curiosity, can you start your window manager? I.e.

    Code:
    root@ubuntu:/# /etc/init.d/gdm start
    If so, you can probably add your CD as an apt source and install a kernel from there. That's assuming you still can't get networking started...
    "To make a statue needs skill: to view a statue aright needs skill also." -Epictetus

Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •