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 ...
- 02-24-2009 #1
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?
- 02-24-2009 #2
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
- 02-25-2009 #3will show you file system type in the second column of output (for mounted partitions).Code:
df -T
- 02-25-2009 #4I 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.
- 02-25-2009 #5
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?
- 02-25-2009 #6
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
- 02-25-2009 #7
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
- 02-25-2009 #8
Are you attempting to mount it as root or a normal user?
- 02-26-2009 #9
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?


Reply With Quote
