Announcement

Collapse
No announcement yet.

delete partition with Gos

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    delete partition with Gos

    Hi there,

    I recently passed from XP to Kubuntu Gutsy Gibbon and I am very happy with my choice.

    While switching I also installed Gos. I used it for a while then tried Kubuntu, really loved it and decided to delete Gos.

    now I'd like to erase the partition with Gos on. I've messed up with partitions and I am not able to understand which partition is which.

    this is the fdisk -l /dev/sda

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 2784 22362448+ c W95 FAT32 (LBA)
    /dev/sda2 2785 5467 21551197+ f W95 Ext'd (LBA)
    /dev/sda5 3767 5381 12972456 b W95 FAT32
    /dev/sda6 5382 5382 8001 82 Linux swap / Solaris
    /dev/sda7 * 2785 3717 7494259+ 83 Linux
    /dev/sda8 3718 3766 393561 82 Linux swap / Solaris

    In the process I deleted an ext2 and ext3 which QtParted allowed me to delete and which i was almost sure were from Gos.

    My suspect is sda 8?

    What do you guys reckon?



    #2
    Re: delete partition with Gos

    My suspect is sda 8?
    You have two Linux swap partitions: /dev/sda6 and /dev/sda8.

    Look at your Kubuntu /etc/fstab. I have there:
    Code:
    # /dev/sda3
    UUID=f505860a-9d5e-4386-b6a8-9b6b97134f23 none      swap  sw       0    0
    So my swap is at the /dev/sda3.


    Note
    You can remove both. Kubuntu will work without swap and you can add swap partition or swap file later:
    Swap Partition FAQ
    https://help.ubuntu.com/community/SwapFaq
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: delete partition with Gos

      Many thanks for your reply

      my etc/fstab looks like this

      # /etc/fstab: static file system information.
      #
      # <file system> <mount point> <type> <options> <dump> <pass>
      proc /proc proc defaults 0 0
      # /dev/sda7
      UUID=209604bd-a85a-472e-a7e2-bcc49fbee6c7 / ext3 defaults,errors=remount-ro 0 1
      # /dev/sda8
      UUID=ae2b8996-994f-4bb4-8a17-56d74cf6b895 none swap sw 0 0
      /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0


      therefore I suppose it is the swap 6 to be deleted.

      I tried to delete it with QTparted

      but it says that the sda is mounted! I got lost after that

      cheers

      Comment


        #4
        Re: delete partition with Gos

        Your / is sda 7
        Your swap is sda 8

        It may be mounted or not but generally you can not "fool around" with partitions on a running system (OS)

        For partitioning I do not suggest using qtparted. Please use the gparted live cd here:
        http://gparted-livecd.tuxfamily.org/

        There is also a lot of info on partitioning on that page.

        Be very careful with deleting / changing the size of partitions because you will then change the UUID. I won't go into that too much. Suffice to say that as of feisty kubuntu does not use /dev/sdax for booting but a special Partition ID (UUID) for booting and assigning partition addresses.

        These will be changed when deleting/changing size of a partition.

        So after doing your partitioning spree I would do this:
        Reboot into a live cd of your choice and mount your / partition. You can do this with a feisty or gutsy live cd with:
        kmenu->system stiings->advanced->filesystems and Harddisks->administrator mode. Right click on your / partition chose edit and give it a mount point like /media/sda7 then enable it. Now you can go to /media/sda7 in konqueror and open that up. Go to /etc/fstab and open that in root (right click on the file fstab->actions->edit as root).

        Now do:
        Code:
        ls -l /dev/disk/by-uuid/
        in a terminal and you will have a listing of all your partitions with thier new UUID's. Copy and paste the relevant UUID's to the relevant partitions in your fstab.
        Save that.

        Now go to /boot/grub/menu.lst open that in root as well and scroll down to the line that looks something like this:

        title Ubuntu 7.10, kernel 2.6.22-14-generic
        root (hd0,6)
        kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=b26109ae-62fb-4f2b-a5af-823cbdeac6f3 ro quiet splash acpi=off
        initrd /boot/initrd.img-2.6.22-14-generic
        quiet

        title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
        root (hd0,6)
        kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=b26109ae-62fb-4f2b-a5af-823cbdeac6f3 ro single
        initrd /boot/initrd.img-2.6.22-14-generic
        Now change those UUID's for the new ones for sda7 (that is your / ).

        Save that and reboot.

        I know this sounds very complicated and it is overly so because of this (in my humble opinion) very stupid UUID policy.

        There probably is a more elegant CLI way of doing this but I don't know of one, so if anyone does please speak up

        I hope this helps and good luck
        HP Pavilion dv6 core i7 (Main)
        4 GB Ram
        Kubuntu 18.10

        Comment


          #5
          Re: delete partition with Gos

          wow there's a lot of info for me to read. I'll try to figure out everything you're telling me here and follow your instructions.

          Thanks for the moment and I'll keep you posted with developments

          thanx

          julius

          Comment

          Working...
          X