Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
HI,i have a problem when i want to mount my patrtions of my mobile hard disk normally.
My clien Operating System is rhel5.4 that i installed without the serial number few days ago.
I executed the commands below
Quote:
[root@huaihaizi3 ~]# /sbin/fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 c W95 FAT32 (LBA)
/dev/sda2 1306 5222 31463302+ f W95 Ext'd (LBA)
/dev/sda3 5223 10444 41945715 83 Linux
/dev/sda4 10445 10705 2096482+ 82 Linux swap / Solaris
/dev/sda5 1306 5222 31463271 b W95 FAT32
Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 5099 40957686 7 HPFS/NTFS
/dev/sdb2 5100 10198 40957717+ 7 HPFS/NTFS
/dev/sdb3 * 10199 14593 35302837+ 7 HPFS/NTFS
and then
Quote:
[root@huaihaizi3 ~]# mount /dev/sdb1 /mnt/sdb1
it showed the errors below
Quote:
[root@huaihaizi3 ~]# mount /dev/sdb1 /mnt/sdb1
mount: unknown filesystem type 'ntfs'
Only one method to mount my partitions is to mount by force :
Quote:
[root@huaihaizi3 ~]# sudo mount -t ntfs-3g /dev/sdb1 /mnt/sdb1 -o force
[root@huaihaizi3 ~]#
Notice:i have installed the package ntfs-3g, Only by this way i can mount my partitions ,what i wanted is to how to configure that can mount my partitions automaticly everytime .
Is there anyone who can come up with a good idea to achieve my goals?
Thanks a lot.
I'm waiting for your reply!:-P:-P:-P
Last edited by huaihaizi3; 10-07-2009 at 02:58 AM.
In your failed mounting attempts you didn't define any filesystem at all. I assume that you do not need force if you specify '-t ntfs'. Note that 'ntfs-3g is the name of package that provides the code for mounting NTFS drives, but the filesystem type still remains plain 'ntfs'.
Thanks a lot
The partitions i want to mount are formatted in form of ntfs,which can work perfect in windows ,i have tried your method ,but the problem is also the same.
AFAIK, AngTheo789 is right, the pkg is ntfs-3g (means the one that can write as well as read ntfs), but type spec is just ntfs: http://linux.die.net/man/8/mount
Quote:
-t vfstype
The argument following the -t is used to indicate the file system type. The file system types which are currently supported include: adfs, affs, autofs, cifs, coda, coherent, cramfs, debugfs, devpts, efs, ext, ext2, ext3, hfs, hpfs, iso9660, jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4, ramfs, reiserfs, romfs, smbfs, sysv, tmpfs, udf, ufs, umsdos, usbfs, vfat, xenix, xfs, xiafs. Note that coherent, sysv and xenix are equivalent and that xenix and coherent will be removed at some point in the future -- use sysv instead. Since kernel version 2.1.21 the types ext and xiafs do not exist anymore. Earlier, usbfs was known as usbdevfs.
Thanks all for your help.You're kind hearted!
I made it by all of your methods finally.
yeah,it's really an exciting things to get help here.
Wish you all the best and make a higher progress in LINUX skills!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.