Add swap partiiton manually?
I've installed Slackware 11 and Solaris 10 last night. During Solaris installation I deleted the swap partition for some reason, but now I can't add my swap partition in Slackware.
How can I add swap partition in Slackware manually? partition table: /dev/hda1 1 1824 14651248+ 83 Linux /dev/hda2 * 1825 3737 15366172+ bf Solaris /dev/hda3 3738 3924 1502077+ 82 Linux swap Thanks in advance. |
Code:
mkswap /dev/hda3 |
Quote:
But why I need to update fstab? Because It works fine and shows the swap partition after reboot. If something else is there then plz tell me how will I update fstab? |
It's showing because there is probably an entry for /dev/hda3 as swap. You may confirm for the same, cat /etc/fstab
If you want to create and use a new swap partition, the information has to be entered in /etc/fstab to permanently make use of it when the system boots. |
dign:
I also add my thanks...I didn't ask, but found this post doing search. I had same problem when I got an error on boot one day. This worked great for getting swap going for the current session... sudo mkswap /dev/hda5 sudo swapon /dev/hda5 But, what are the edits for /etc/fstab to make the swap permanent so that its there everytime I reboot? Right now when I run cat /etc/fstab I get: {quote} # /etc/fstab: static file system information # #<file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/hda1 -- converted during upgrade to edgy UUID=a5549dd-f158-447f-81b2-20c33965d / ext3 defaults,errors=remount-ro 0 1 # /dev/hda5 -- converted during upgrade to edgy UUID=6e58e1a4-1742-46d4-a5b1-bd279b77441c none swap sw 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 {end quote} |
The line is:
Code:
#<file system> <mount point> <type> <options> <dump> <pass> |
General F: Worked like a champ! Thanks!
|
You're welcome :)
You might want to comment out the other swap entry in fstab (the one that doesn't work): Code:
#UUID=6e58e1a4-1742-46d4-a5b1-bd279b77441c none swap sw 0 0 |
All times are GMT -5. The time now is 11:29 PM. |