Find the answer to your Linux question:
Results 1 to 9 of 9
I have 2 hard drives wth below configuration:- device ID System sda1 83 linux sda2 8e linux LVM sdb1 83 linux I want to check what type of partition is ...
  1. #1
    Just Joined! rah_jad's Avatar
    Join Date
    Sep 2008
    Posts
    14

    How to check the type of partition?

    I have 2 hard drives wth below configuration:-
    device ID System

    sda1 83 linux
    sda2 8e linux LVM
    sdb1 83 linux

    I want to check what type of partition is there. is it ext2 or ext3?
    Is there any command to check the typw of partition?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    this isn't the type of partition, just the filesystem type, the easiest way I can see to figure it out is to
    Code:
    cat /etc/fstab

  3. #3
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Code:
    df -T
    will show you file system type in the second column of output (for mounted partitions).

  4. #4
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Quote Originally Posted by Thrillhouse View Post
    Code:
    df -T
    will show you file system type in the second column of output (for mounted partitions).
    Very cool Thrillhouse, me likey!
    Thanks.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  5. #5
    Just Joined! rah_jad's Avatar
    Join Date
    Sep 2008
    Posts
    14
    Here my real issue:-
    I ahve added new hard drive in the machine
    I used fdisk to create partion and mkfs to initilze it now when I use "mount -t ext3 /dev/sdb1 /jadon/hdd" it fails. So I have to mount it manually and did the entry in fstab? I want to know why "mount -t ext3 /dev/sdb1 /jadon/hdd" is not working?

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Could you post exact error message here? Which code did you add in /etc/fstab for it?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined! rah_jad's Avatar
    Join Date
    Sep 2008
    Posts
    14
    There is no such error message. It show thw option to use with "mount". The entry which is done is fstab is :-
    /dev/sdb1 /jadon/hdd ext3 default 1 1

  8. #8
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Are you attempting to mount it as root or a normal user?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  9. #9
    Just Joined! rah_jad's Avatar
    Join Date
    Sep 2008
    Posts
    14
    Here is the A to Z of my issue.

    I am running a RHEL 5 on vmware workstation 6.5. I have added another virtual drive in it. so there 2 virtual drives of 6 GB each. I tried to add the new VD by running "fdisk /dev/sdb" and then "mkfs" and then "mount -t ext3 /dev/sdb1 /jadon/hdd", but the mount command didnt ran and gave no output. Then I did a manual entry in "fstab". I am doing all this as root.

    Question:- Why "mount -t ext3 /dev/sdb1 /jadon/hdd" didnt worked?

    Now when I rebooted the VM, I found that new virtual hard drive (hdb) is not mounted on its folder, then I check the "fstab". The file was as it is and "sdb" information was there in it. Then I ran "mount -t ext3 /dev/sdb1 /jadon/hdd" and it worked this time. the new hard drive (sdb) got mounted on it folder.

    Question:- Why the new hard drive(sdb) unmounted automatically and when I ran "mount -t ext3 /dev/sdb1 /jadon/hdd" It got mounted? Why?

Posting Permissions

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