FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2005
    Location
    Southern California
    Posts
    48

    command to query fs type of all partitions

    hello,

    Using #fdisk -l /dev/hda1
    I can see much of the info I need, except fs type.

    In FC4 I've installed gpart and qtparted. These show everything shown by fdisk plus fs type.

    What CLI command can I use to give the fs type of a partition? I especially need to detect reiserfs.

    tia,
    tlviewer

  2. #2
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    380
    how about parted?

    example:

    # parted /dev/hda print

  3. #3
    Join Date
    Oct 2005
    Location
    Southern California
    Posts
    48

    solved

    thank you!

    #parted /dev/sda print

    [root@LMP-7053DF1FAFC me]# parted /dev/sda print
    Disk geometry for /dev/sda: 0.000-238475.179 megabytes
    Disk label type: msdos
    Minor Start End Type Filesystem Flags
    1 0.031 9467.995 primary ntfs boot
    2 9467.996 58470.952 primary fat32 lba
    3 58470.952 59467.170 primary linux-swap
    4 59467.170 162124.716 extended lba
    5 59467.201 79462.133 logical ext3
    6 79462.165 91455.974 logical reiserfs
    7 91456.005 96578.261 logical reiserfs
    8 96578.292 108870.183 logical ext3
    9 108870.214 112972.719 logical ext3
    10 112972.750 125264.641 logical ext3
    11 125264.672 129367.177 logical ext3
    12 129367.208 141659.099 logical ext3
    13 141659.130 145761.635 logical ext3
    14 145761.667 158022.180 logical ext3
    15 158022.211 162124.716 logical ext3
    Information: Don't forget to update /etc/fstab, if necessary.

    ------------------ end snip ----------------
    regards,
    tlviewer

  4. #4
    Join Date
    Oct 2005
    Posts
    1,952
    When I run qtparted it doesn't give the option to format a drive as reiserfs. I know that FC5 doesn't officially support reiserfs but is there a way to get qtparted to format a partition as reiserfs?

Similar Threads

  1. Can "stock" Fedora copy partitions from command line?
    By joe.pelayo in forum Using Fedora
    Replies: 10
    Last Post: 31st May 2009, 04:57 AM
  2. Converting primary partitions into logical partitions
    By lpsavoie in forum Using Fedora
    Replies: 2
    Last Post: 16th September 2008, 04:14 PM
  3. error: array type has incomplete element type
    By jattoo in forum Using Fedora
    Replies: 4
    Last Post: 7th October 2005, 05:18 AM
  4. Linux equivalence to dos command type?
    By toffe in forum Linux Chat
    Replies: 3
    Last Post: 11th January 2005, 01:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •