LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-07-2009, 02:55 AM   #1
huaihaizi3
LQ Newbie
 
Registered: Oct 2009
Location: BeiJing China
Distribution: Fedora
Posts: 19

Rep: Reputation: 0
Cool help needed:Failed to mount partitions


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.
 
Old 10-07-2009, 03:26 AM   #2
AngTheo789
Member
 
Registered: Sep 2009
Posts: 110

Rep: Reputation: 24
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'.
 
Old 10-08-2009, 12:05 AM   #3
huaihaizi3
LQ Newbie
 
Registered: Oct 2009
Location: BeiJing China
Distribution: Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
Angry

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.
 
Old 10-08-2009, 01:34 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
then add it to your /etc/fstab file
for read/wright
Code:
/dev/sdb1           /mnt/sdb1   ntfs-3g   defaults,umask=000     0 0
did oyu read the man page for mount
Code:
man mount
man fstab
 
Old 10-08-2009, 06:50 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 10-09-2009, 12:32 AM   #6
huaihaizi3
LQ Newbie
 
Registered: Oct 2009
Location: BeiJing China
Distribution: Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
Thumbs up

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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount hangs while trying to mount luks partitions after upgrade to 12.2 MeatPuppet Slackware 5 03-08-2009 07:57 AM
Can't mount partitions from HDA, But will mount partitions from HDB Colonel-1990 Linux - Hardware 13 08-09-2008 09:59 AM
mount: mount to NFS server '192.168.0.3' failed: System Error: Connection refused. fakie_flip Linux - Server 1 04-10-2008 12:28 AM
mount directories of partitions, not partitions possible? kpachopoulos Linux - General 9 09-02-2007 07:25 PM
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration