Results 1 to 8 of 8

Thread: Debian spoiled my partitions

  1. #1
    Join Date
    Sep 2011
    Beans
    46

    Debian spoiled my partitions

    Hi!

    I've just installed Debian Squeeze along with Ubuntu 12.04 and I'm already having problems...

    Ubuntu won't start. While booting, it eventually stops and tells me that it is unable to mount /tmp. Same thing happens with the rest of partitions, except /home and / (which were not used on Debian installation). I checked Debian's fstab and it turns out that the UUID of the devices differ from those on Ubuntu's fstab.

    Has Debian changed my devices UUID? Can I just edit Ubuntu's fstab so the UUIDs are those on Debian's fstab?

    Thank you for your time.

  2. #2
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: Debian spoiled my partitions

    Yes, I think that Debian probably reformatted the partitions which would have changed their UUID. If that's the case, anything that was on them is gone.

    Yes, you should be able to use a live CD (or Debian) to edit and correct /etc/fstab on the Ubuntu root partition.

    You will be dependent on Debian's installation of GRUB. If you want to revert to Ubuntu's GRUB, the two commands in Ubuntu are:
    Code:
    sudo update-grub
    sudo grub-install /dev/sda
    but I would probably leave Debian's GRUB on there unless there is a reason to change again.

  3. #3
    Join Date
    Sep 2011
    Beans
    46

    Re: Debian spoiled my partitions

    Quote Originally Posted by The Cog View Post
    Yes, you should be able to use a live CD (or Debian) to edit and correct /etc/fstab on the Ubuntu root partition.
    Ok, just to be sure: it is safe to rewrite ubuntu's fstab UUIDs to the ones on Debian, right?

    Thank you very much.

  4. #4
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: Debian spoiled my partitions

    Ok, just to be sure: it is safe to rewrite ubuntu's fstab UUIDs to the ones on Debian, right?
    Not sure what that means. So here's the procedure I would use. It assumes that I know exactly what is on which partition already:

    Boot Debian or a live CD
    Use sudo blkid to get the current UUID of all partitions
    Mount the Ubuntu root partition at /mnt : sudo mount /dev/sdaX /mnt
    Edit /mnt/etc/fstab and edit it : sudo nano /mnt/etc/fstab
    Correct the UUIDs, save and reboot

    Out of interest, you could compare the Debian fstab with the blkid output, but I expect that they match so no surprises.
    Last edited by The Cog; February 17th, 2013 at 01:14 PM.

  5. #5
    Join Date
    Sep 2011
    Beans
    46

    Re: Debian spoiled my partitions

    Quote Originally Posted by The Cog View Post
    Not sure what that means. So here's the procedure I would use. It assumes that I know exactly what is on which partition already:

    Boot Debian or a live CD
    Use sudo blkid to get the current UUID of all partitions
    Mount the Ubuntu root partition at /mnt : sudo mount /dev/sdaX /mnt
    Edit /mnt/etc/fstab and edit it : sudo nano /mnt/etc/fstab
    Correct the UUIDs, save and reboot

    Out of interest, you could compare the Debian fstab with the blkid output, but I expect that they match so no surprises.

    Thanks, worked like a charm!

  6. #6
    Join Date
    Sep 2011
    Beans
    46

    Re: Debian spoiled my partitions

    Quote Originally Posted by The Cog View Post
    Not sure what that means. So here's the procedure I would use. It assumes that I know exactly what is on which partition already:

    Boot Debian or a live CD
    Use sudo blkid to get the current UUID of all partitions
    Mount the Ubuntu root partition at /mnt : sudo mount /dev/sdaX /mnt
    Edit /mnt/etc/fstab and edit it : sudo nano /mnt/etc/fstab
    Correct the UUIDs, save and reboot

    Out of interest, you could compare the Debian fstab with the blkid output, but I expect that they match so no surprises.
    Thanks, worked like a charm!

  7. #7
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: Debian spoiled my partitions

    Oh good.

    You can mark the thread solved using the Thread Tools pull-down at the top.

  8. #8
    Join Date
    Sep 2011
    Beans
    46

    Re: Debian spoiled my partitions

    Quote Originally Posted by The Cog View Post
    Oh good.

    You can mark the thread solved using the Thread Tools pull-down at the top.

    Thanks again, I didn't know how to do it xD

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
  •