Search:

Type: Posts; User: jdix123; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Mounting and copying /home folder when I boot from a live CD

    I broke my /boot partition and after a week or so of fiddling with it, its probably just time to copy the /home folder and reinstall.

    So I poked around around and found some questions and threads,...
  2. Re: accidentally deleted most of my /boot partition

    Any suggestions or should I start a new thread for the grub issue / USB drive transfer?
  3. Re: accidentally deleted most of my /boot partition

    I wonder if I could get anyone else to help with the Grub issue? Or even the mounting issue so I can get my home folder onto this USB drive and just do a fresh install.

    Either would be wonderful.
  4. Re: accidentally deleted most of my /boot partition

    ubuntu@ubuntu:~$ sudo fdisk -l

    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector...
  5. Re: accidentally deleted most of my /boot partition

    ubuntu@ubuntu:~$ sudo mount /dev/mapper/edubuntu--vg--root /mnt
    mount: special device /dev/mapper/edubuntu--vg--root does not exist
    ubuntu@ubuntu:~$ dpkg -l | grep grub
    ii grub-common ...
  6. Re: accidentally deleted most of my /boot partition

    And actually its proving harder than I thought to just copy my /home folder. I'm guessing I need to chroot into the system to do so?

    Unfortunately I have been unable to glean just what pieces are...
  7. Re: accidentally deleted most of my /boot partition

    Both pieces of advice are excellent, I might just be looking at copying the contents of my /home to a thumbdrive and reinstalling. Kind of obnoxious but might be my best bet at this point.
    ...
  8. Re: accidentally deleted most of my /boot partition

    ubuntu@ubuntu:~$ sudo umount /dev/mapper/edubuntu--vg-root
    umount: /dev/mapper/edubuntu--vg-root: not mounted
    ubuntu@ubuntu:~$ sudo umount /dev/sda1
    umount: /dev/sda1: not mounted...
  9. Re: accidentally deleted most of my /boot partition

    every one of them gives an error message



    Loading Linux 3.13.0-29-generic ...
    error: file '\vmlinuz-3.13.0-29-generic' not found.
    Loading initial ramdisk ...


    the filename changes with...
  10. Re: accidentally deleted most of my /boot partition

    No go on the reboot. Grub seems to hang, then just back to the system splash and grub comes up again.
  11. Re: accidentally deleted most of my /boot partition

    Think I'm learning, I actually caught that one and knew the fix :)

    Ok, everything ran. Here's this again



    root@ubuntu:/# ls -l /boot
    total 61372
    -rw-r--r-- 1 root root 1164720 Dec 15...
  12. Re: accidentally deleted most of my /boot partition

    Whoops.



    root@ubuntu:/# apt-get linux-image-extra-3.16.0-29-generic
    E: Invalid operation linux-image-extra-3.16.0-29-generic
  13. Re: accidentally deleted most of my /boot partition

    Hooray! Looks like everything ran, no errors.

    This looks good too:


    root@ubuntu:/# ls -l /boot
    total 51309
    -rw-r--r-- 1 root root 1164720 Dec 15 19:17 abi-3.13.0-44-generic
    -rw-r--r-- 1...
  14. Re: accidentally deleted most of my /boot partition

    Syntax error maybe?



    root@ubuntu:/# dpkg --ignore-depends --purge linux-image-3.13.0-24-generic
    dpkg: error: --ignore-depends needs a valid package name but '--purge' is not: illegal package...
  15. Re: accidentally deleted most of my /boot partition

    root@ubuntu:/# dpkg -l | grep linux-image-
    ii linux-image-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel image for version...
  16. Re: accidentally deleted most of my /boot partition

    root@ubuntu:/# apt-get -o DPkg::Options::="--force-confmiss" install --reinstall linux-image-3.16.0-29-generic grub-common grub linux-image-3.13.0-44-generic
    Reading package lists... Done
    Building...
  17. Re: accidentally deleted most of my /boot partition

    Couple more errors.



    ubuntu@ubuntu:~$ sudo mount --bind /dev/pts /mnt/dev/pts
    ubuntu@ubuntu:~$ sudo chroot /mnt
    root@ubuntu:/# apt-get -o DPkg::Options::="--force-confmiss" install...
  18. Re: accidentally deleted most of my /boot partition

    looks like it mostly ran, with some errors.



    root@ubuntu:/# apt-get -o DPkg::Options::="--force-confmiss" install --reinstall linux-image-3.16.0-29-generic grub-common grub
    Reading package...
  19. Re: accidentally deleted most of my /boot partition

    Uh oh, got an error here



    root@ubuntu:/# apt-get -o DPkg::Options::="--force-confmiss" install --reinstall linux-image-3.16.0-29-generic grub-common grub linux-image-generic
    Reading package...
  20. Re: accidentally deleted most of my /boot partition

    Nope. Got the magic pound sign.



    ubuntu@ubuntu:~$ sudo chroot /mnt
    root@ubuntu:/#
  21. Re: accidentally deleted most of my /boot partition

    ubuntu@ubuntu:~$ ls -l /mnt
    total 103
    drwxr-xr-x 2 root root 4096 Jan 9 17:13 bin
    drwxr-xr-x 4 root root 3072 Jan 13 19:21 boot
    drwxrwxr-x 2 root root 4096 Jun 3 2014 cdrom...
  22. Re: accidentally deleted most of my /boot partition

    Almost made it! Everything looks good til the last.


    ubuntu@ubuntu:~$ sudo umount /dev/mapper/edubuntu--vg-root
    ubuntu@ubuntu:~$ sudo umount /dev/sda1
    ubuntu@ubuntu:~$ sudo mount...
  23. Re: accidentally deleted most of my /boot partition

    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes /...
  24. Re: accidentally deleted most of my /boot partition

    I've never used chroot before.

    I'm looking at the man page right now. Basically I run



    sudo chroot /media/ubuntu apt-get install linux-image-generic(whatever the current version is)

    ...
  25. accidentally deleted most of my /boot partition

    I was getting all sorts of memory low messages about my /boot partition in edubuntu 14.04, so I decided to delete some duplicates/obsolete archives in the /boot partition, but it looks like I deleted...
Results 1 to 25 of 67
Page 1 of 3 1 2 3