LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file system question (http://www.linuxquestions.org/questions/linux-newbie-8/file-system-question-862297/)

jraclarke 02-12-2011 02:38 PM

file system question
 
Hi Everyone,

Not really too much of a problem but I thought I'd ask:

I've just installed Fedora 14 on a dual boot. I went with the suggested installation (first time I have done this), but I was wondering, do I have swap space? When I type "cfdisk" I get:

Code:

      Name                    Flags                Part Type            FS Type                        [Label]                      Size (MB)
 -----------------------------------------------------------------------------------------------------------------------------------------------------------
      sda1                                          Primary            vfat                            [RECOVERY]                    5099.68           
      sda2                                          Primary            ntfs                                                          26213.97
                                                                          Unusable                                                          1.04            *
      sda3                    Boot                  Primary            ext4                                                            524.29            *
      sda5                    NC                    Logical            LVM2_member                                                  28172.10            *

I cannot see any swap tagged partitions here, but when I type "swapon -s" I get:
Code:

Filename                                Type                Size        Used        Priority
/dev/dm-1                              partition        4128764        0        -1

So it says there is 4GB of swap space right?
Is this part of LVM2_member? I must admit I know very little about LVMs.
Also, where is sda4? Again is this within the LVM or something?

Thanks in advance!

James

ChrisAbela 02-12-2011 02:49 PM

look in /etc/fstab and run lvdisplay as root

jraclarke 02-12-2011 03:09 PM

That makes a lot more sense now,

Thanks!

hurryi 02-12-2011 03:36 PM

cat /proc/swa <tab> #press enter

ChrisAbela 02-14-2011 02:26 AM

Quote:

Also, where is sda4? Again is this within the LVM or something?
You can have up to 4 Primary Partitions (sda1, sda2, sda3 and sda4). If the 4th partition is a Primary Partition, then you cannot have any more partitions.

OR

You may designate a Primary Partition to an Extented Partition. You may think of this as a promotion. In your case sda4 is an Extented Partition and therefore unuseable. Consequently may have Logical Partitions (sda5, sda6, ... up to about sda64). You have an LVM partition in sda5.

Inquisitveness is the key to understanding Linux. If you want to know how Slackers do it, just read ftp://ftp.slackware.com/pub/slackwar...README_LVM.TXT

jraclarke 02-15-2011 12:35 PM

Thanks!

James


All times are GMT -5. The time now is 02:53 PM.