CygnusX1 Posted January 8, 2009 Share Posted January 8, 2009 (edited) i just noticed that my /swap partition isn't being mounted at boot. i can go into mcc/local disks/manage disk partitions and mount it, but it will be unmounted after i reboot. i tried deleting it and recreating but that didn't help. this might have started after using gparted to resize my / and /home partitions i'm not sure. any help is greatly appreciated. Edited January 8, 2009 by CygnusX1 Link to comment Share on other sites More sharing options...
K Bergen Posted January 8, 2009 Share Posted January 8, 2009 It sound like the swap entry is not getting written to fstab. Please post the contents of your /etc/fstab file. Ken Link to comment Share on other sites More sharing options...
CygnusX1 Posted January 9, 2009 Author Share Posted January 9, 2009 here's the output of fstab: # Entry for /dev/sdc1 : UUID=311d0180-ec4d-4cdc-bcc7-0dac30acc8a1 / reiserfs defaults 1 1 # Entry for /dev/sdc6 : UUID=9e5f1f08-a18b-4cb6-aee1-857a745c4dd0 /home ext3 defaults 1 2 /dev/mapper/nvidia_dbfdchcfp1 /mnt/windows ntfs-3g defaults 0 0 none /proc proc defaults 0 0 # Entry for /dev/sdc5 : UUID=9ceaa64c-60c3-4528-9d4d-2d7e4e575051 swap swap defaults 0 0 thanks for the help Link to comment Share on other sites More sharing options...
K Bergen Posted January 9, 2009 Share Posted January 9, 2009 Does the out put of blkid /dev/sdc5 match the entry in fstab? Ken Link to comment Share on other sites More sharing options...
CygnusX1 Posted January 9, 2009 Author Share Posted January 9, 2009 blkid command doesn't return anything. Link to comment Share on other sites More sharing options...
ffi Posted January 9, 2009 Share Posted January 9, 2009 you have to be root to issue blkid. Anyway do you dualboot and share a swap partition? Link to comment Share on other sites More sharing options...
CygnusX1 Posted January 9, 2009 Author Share Posted January 9, 2009 (edited) i was logged at root at konsole. if i wasn't wouldn't i get a command not found error? the command doesn't return anything. just drops to the prompt. no i don't share the swap partition. i just noticed that under kdiskfree, the partitions are listed as dev/sda* not sdc*. could this be the problem? output from blkid [root@localhost ~]# blkid /dev/sda5 /dev/sda5: TYPE="swap" UUID="163c7144-e2a4-4065-8ae4-ee60b6e15cc5" Edited January 9, 2009 by CygnusX1 Link to comment Share on other sites More sharing options...
K Bergen Posted January 9, 2009 Share Posted January 9, 2009 blkid command doesn't return anything.That means that /dev/sdc5 which fstab thinks is swap does not exist. It's strange that diskdrake is not rewriting fstab when you delete and recreate the swap, possibly a bug. There is probably a command to get the information you need out of /dev/disk/by-uuid but I don't know it. As the only way to copy the UUID from diskdrake is pen and paper then manually enter it in fstab which would be pron to mistakes, you could try blkid again. This time try blkid /dev/sdc7 it should return something like this /dev/sdc1: TYPE="swap" UUID="d0c1d6ae-d00f-4273-ad85-a2625d2a12f1"if not increment the dev number until you find the swap. Once you've found the swap it should be easy to change the UUID in fstab using copy and paste and an editor. @ ffi, if he wasn't root he would have got "command not found" not nothing. Ken Link to comment Share on other sites More sharing options...
ffi Posted January 9, 2009 Share Posted January 9, 2009 just do blkid without any parameters and it will list all drives Link to comment Share on other sites More sharing options...
K Bergen Posted January 9, 2009 Share Posted January 9, 2009 i was logged at root at konsole. if i wasn't wouldn't i get a command not found error? the command doesn't return anything. just drops to the prompt. no i don't share the swap partition. i just noticed that under kdiskfree, the partitions are listed as dev/sda* not sdc*. could this be the problem?output from blkid [root@localhost ~]# blkid /dev/sda5 /dev/sda5: TYPE="swap" UUID="163c7144-e2a4-4065-8ae4-ee60b6e15cc5" I'm a slow typist :D but I see you found swap.It should be easy to edit fstab now. It isn't mandatory to change the dev name in fstab only the UUID but wouldn't hurt. Ken Link to comment Share on other sites More sharing options...
CygnusX1 Posted January 9, 2009 Author Share Posted January 9, 2009 (edited) pasting the uuid from blkid into fstab worked. thanks for the help. with 2 gigs of ram, the swap doesn't really seem to get used much for what i do on the computer but it was bugging me that it wasn't working properly. Edited January 9, 2009 by CygnusX1 Link to comment Share on other sites More sharing options...
K Bergen Posted January 9, 2009 Share Posted January 9, 2009 just do blkid without any parameters and it will list all drivesYes I forgot to KISS. Ken Link to comment Share on other sites More sharing options...
K Bergen Posted January 9, 2009 Share Posted January 9, 2009 pasting the uuid from blkid into fstab worked. thanks for the help.Your welcome, I'm glad you got it sorted. Ken Link to comment Share on other sites More sharing options...
CygnusX1 Posted January 9, 2009 Author Share Posted January 9, 2009 (edited) while i've got ur attention, any idea why kdiskfree looks like this? is it normal? Edited January 9, 2009 by CygnusX1 Link to comment Share on other sites More sharing options...
pindakoe Posted January 9, 2009 Share Posted January 9, 2009 Most likely the same issue -- the partitions defined by these last UUID's do not actually exist. Kdiskfree does see the entries, but as they do not exist, nothing gets mounted, meanign size zero and no max size available. Your /etc/fstab is out of line with hardware. Suggest you again look at the output of fdisk -l /dev/sda to see which partitions exist (screenshot suggests sda1 and sda6) and then blkid to see what UUID's match to these partitions. Use that to update fstab. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now