Sign in to follow this  

Is GParted supposed to be able to recognize a Linux-swap partition? Cause

Recommended Posts

moeburn    53

So I have an old 80GB HD, attached to a USB enclosure, which is attached to my router.  I used a GParted live usb to format the drive to have a 250mb linux-swap partition in the beginning, and then the rest 79GB to be a FAT32 file storage partition.  Then I plugged the drive into the router, and ran the mkswap command, and now the router is (sort of) happily chugging along with about 2-10mb of the swap partition in use.


Then I decided I wanted to reformat the FAT32 partition to an EXT4 partition.  I plug the drive into my linux computer, run GParted, and it says that the 250mb partition at the beginning of the drive is "unrecognized", and it has no idea that its a linux-swap partition!  Yet the router is able to use it just fine, sort of, at least it says it is.


Well I'm getting some weird bugs on the router ever since I added the swap file.  Nothing router-crashing, just strange, annoying bugs, like now there are two instances of in the bandwidth-usage graph on the router's web UI gateway page, or that the bandwidth graph shows 200-Petabyte spikes every now and then.


So I'm wondering, is GParted supposed to be able to recognize a linux-swap partition after mkswap has been run on it?  Or is my swap partition semi-corrupted, and could be the cause of all these strange bugs that started showing up after I added the swap?


Also, how the heck do I un-mkswap/remove a swap partition/disable the automounting of a swap partition?  All the guides I've read on the internet say to either use swapoff -a, which returns the following error:

root@Gargoyle:~# swapoff -a
swapoff: /etc/fstab: open failed: No such file or directory

...or they say to edit the /etc/fstab file.  Well I ran ls /etc/fstab, and it came up blank:

root@Gargoyle:~# ls /etc/fstab
ls: /etc/fstab: No such file or directory

So I don't have an fstab file.  So how do I disable the swap file without just unmounting the entire drive?

Share this post

Link to post
Share on other sites
Aergan    621

It's likely because it's being reported as a USB-Flash Drive (Should be a single partition, no MBR) but mkswap has treated it like a USB-HDD.


I've got around this before by creating a new file system on the device (You'll loose your data though) as MS-DOS + MBR then partitioned it correctly in gparted. You should notice that after it presents itself as a USB-HDD.

Never had an issue since (Except keep it away from any Windows Disk Management services because it wont be properly manageable with multi partitions).

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.