If this is your first visit, be sure to
check out the FAQ. You will have to register
before you can post. To start viewing messages,
select the forum that you want to visit from the selection below.
Please do not use the CODE tag when pasting content that contains formatting (colored, bold, underline, italic, etc).
The CODE tag displays all content as plain text, including the formatting tags, making it difficult to read.
Re: Can I add a swap partition after installation?
So all I have to do is create a partition and name it '/swap'? (details and safety aside)
I am fairly experienced with partitioning
I just need to know if it is that simple. Create it and Kubuntu will instantly start using it?
Also, I have to be booted from a separate source? (that is no prob but thought you could do it from within and a reboot)
thanks
here is my fdisk output below: (eeepc 4GB+16GB SSD)
**************************************************
Disk /dev/sda: 4034 MB, 4034838528 bytes
255 heads, 63 sectors/track, 490 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000cb2e4
Device Boot Start End Blocks Id System
/dev/sda1 * 1 461 3702951 83 Linux
/dev/sda2 462 490 232942+ 5 Extended
/dev/sda5 462 490 232911 82 Linux swap / Solaris
Disk /dev/sdb: 16.1 GB, 16139354112 bytes
255 heads, 63 sectors/track, 1962 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008196e
Device Boot Start End Blocks Id System
/dev/sdb1 1 1545 12410181 83 Linux
/dev/sdb2 1546 1839 2361555 83 Linux
/dev/sdb3 1840 1962 987997+ 5 Extended
/dev/sdb5 1840 1962 987966 82 Linux swap / Solaris
Disk /dev/sdc: 2063 MB, 2063597056 bytes
63 heads, 62 sectors/track, 1031 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Disk identifier: 0x0004f9a0
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1028 2007653 b W95 FAT32
Re: Can I add a swap partition after installation?
Now I'm in trouble.
I replaced the UUID with /dev/sdb5 and rebooted.
no problem
Ran the 'free' command again and it was clearly pointing to /dev/sdb5
so now I wanted to reclaim sda2 ext/sda5 swap
I gparted to delete the ext drive
then booted from usb to resize sda1.
now Kubuntu won't boot
it gets to the Kubuntu logo/progress bar, then blacks out and freezes
Is there some other area of Kubuntu that relied on that partition perhaps? Do you know where I go from here?
Re: Can I add a swap partition after installation?
If I understand correctly, you deleted /dev/sda2? If that is what you did, then the system will automatically renumber the remaining partitions on /dev/sda. Old /dev/sda3 is now /dev/sda2, old /dev/sda4 is now /dev/sda3, etc.
If you use "by-uuid" for mounting partitions, these problems don't happen, btw.
Re: Can I add a swap partition after installation?
Originally posted by finny388
is sdb numbering affected when sda is reconfigured?
No. But I'm concerned that you did not do what you think you did. It looks like the boot sequence is still looking for a swap partition at /dev/sda2.
I would need to see 2 things to know what's going on:
/etc/fstab
/boot/grub/menu.lst (specifically the part where the defoptions are listed)
If you can boot a Live CD, you can get to those. You might need to edit the /boot/grub/menu.lst to change the default swap location to /dev/sdb5. It also needs to be that in /etc/fstab, which I think you already did.
Comment