Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
i have just swapped all the HDDs around in my linux box originally i had a IDE drive for / and a 160GB SATA for data storage
i got a new 1TB SATA drive for data storage and i moved all my data to it.
then i reformatted my 160GB and copied / to it updated the MBR and grub and it now boots fine from from my 160GB the problem is i can't get it to mount the 1TB drive using Labels /etc/fstab looks like cat /etc/fstab
now if i swap the comments on the last to lines of fstab it will mount but with the LABEL when i type mount /mnt/sdb i get:
Code:
ntfs-3g: Failed to access volume 'LABEL=1TB': No such file or directory
ntfs-3g 2009.4.4 integrated FUSE 27 - Third Generation NTFS Driver
Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2009 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson
Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), remove_hiberfile, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).
Example: ntfs-3g /dev/sda1 /mnt/windows
Ntfs-3g news, support and information: http://ntfs-3g.org
i have rebooted many times but nothing has changed.
is there an error in the way i configured the Labels.
something else i questioned was if ntfs-3g didn't support the LABEL=<label> syntax?
my system is Centos 5.3
Kernel 2.6.18-128.1.10.el5
I can tell you that should work because I mount my Windows partition with this method. If I'm not mistaken, mount resolves the label and passes the device file to ntfs-3g - looks like your problem is that mount isn't doing that and is just passing the raw thing, which poor ntfs-3g obviously can't do shit with. So I'm not sure what's wrong here. Try `ntfslabel /dev/sdb1` and make sure it returns what we think it should. By the way, try the [ CODE ] tags - makes this kind of thing infinitely easier to read.
On another note, jesus christ, do you have 160 GB of swap?
well i had tried to check that with the ls -l /dev/disk/by-label
but as predicted: ntfslabel -f /dev/sdb1
Code:
The device /dev/sdb1, is mounted.
Forced to continue.
1TB
so the label is "1TB" like i had set it
i can see what you are saying about it not changing LABEL=1TB to /dev/sdb1 for ntfs-3g
i will do some more Googling to see if i can get any more info on this
also i don't have 160GB of swap i have a 160GB drive with 2 partitions the / and a swap it is really only about 1.5GB
Unfortunately, I can't see anything wrong with your configs - thought there might be an extra space or something, but nope, all looks clean. One other thing I can suggest you try that may help you figure this out and is (IMHO) a superior alternative to LABEL= mounting is UUID= mounting. You can find your drive's UUID (which for NTFS isn't a real UUID, but whatever) under /dev/disk/by-uuid. Perhaps if you try that, whether it works or fails will tell you something about the problem. Best of luck, and please come back to this thread and let us know when you figure it out. You never know who might have the exact same problem some day.
I suggest use EXT3 unless you desperately need NTFS. Since there is already an IFS driver for Windows that supports EXT2, there is no need to use NTFS. IMHO using ntfs-3g in Linux is still experimental because some Linux programs has some problems with NTFS.
If you insist on using NTFS for the file system for your terabyte hard drive, you can try to change the mount script for ntfs-3g. It might be called mount.ntfs-3g. I suggest double check if the label 1TB is proper label.
thanks Electro really the only reason i am using NTFS is that depending on how things work out i might put it back in one of my XP boxes
now that you have pointed out the Windows can support EXT3 i will reformat tonight YAYA more wasted time!
just a question regarding mount should it turn LABEL=1TB into /dev/sdb1 or should that be done by the ntfs-3g command that is called
also i checked /sbin/mount.ntfs-3g and it is linked to /usr/bin/ntfs-3g and that looks all good
The ntfs-3g should be able to mount using labels if it is written properly. If it is not remove the symbolic link for mount.ntfs-3g and write a bash script named mount.ntfs-3g that translates the label into the device node and then mounts using ntfs-3g utilities.
I think you specify an illegal label for your NTFS partition. When I specify labels, I do not use a number as the first character in the label. I suggest change the label, so it does not have a number for the first character. If it works after you change the label to not have a number for the first character, then you should send a bug report to ntfs-3g about the label limitation. At this point, you should upgrade ntfs-3g to the latest stable version.
Actually the EXT2 IFS is a Windows drivers that provides support for EXT2 that gives the ability to access EXT2 partitions. Since EXT3 is EXT2 plus journal, formatting partition as EXT3 is OK when using in Windows which has EXT2 IFS installed. When you boot into Linux, run the file system utility to update the journal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.