Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-15-2005, 05:45 PM
|
#1
|
Member
Registered: Apr 2005
Posts: 108
Rep:
|
HDD Order in 'Computer'
I finally just decided instead of dealing with NTFS or ext3 as a documents hard drive just to settle for FAT32. Since I couldn't format a 250gig drive and have it work in Windows, I split it into two 125s.
Anyway, I did fstab and everything (can someone tell me what the commands unmask=???? ? ? does?), but there is a slight annoyance. I named the drives Caviar A and Caviar B in Windows (how do you do this in Linux? because for some reason, linux is making these all caps, but my 32gig raptor is in proper caps!?). It mounts the second partition first, and then the first partition, so in 'Computer' I have...
125G Hard Drive: CAVIAR B
and
125G Hard Drive (2): CAVIAR A
I'd much rather the first one be A, and the second B, and also name it so that they aren't all caps. 'Raptor' is proper caps though, and I did it the exact same way. If possible, I'd like to remove the (2) also. I know all of this is cosmetic but its really weird because it's hard enough having some things on one drive and some things on another, but having them in differing orders is kind of crazy.
PS I tried switching the order in fstab.
|
|
|
04-17-2005, 03:44 AM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Can you post your fstab so we can give you real world examples?
A generic idea:
/dev/hda1 is Caviar A in Windows. In Linux, it set it up arbitrarily to /dev/hdb1 as Caviar A. You want /dev/hda1 as Caviar A and need to tell fstab so. Your current entry would look something like:
/dev/hdb1 "/mnt/Caviar A" vfat option1,option2,and,so,on 1 1
And you would modify it (not just the order):
/dev/hda1 "/mnt/caviar A" vfat option1,option2,and,so,on 1 1
Note the /dev difference.
As for what umask does:
One way to grant permissions on any given file or directory is to run the command chmod. Umask is the 'equivilent' (not really, but for simplicity we'll take that) of chmod, but using the opposite numbers. So, a chmod of 777 will grant the earth permission on that file, while a umask of 000 will do the same thing.
Not exactly a complete definition of umask, but a usable one For more info you can always check out the docs on chmod and mount.
Cool
|
|
|
04-17-2005, 02:21 PM
|
#3
|
Member
Registered: Apr 2005
Posts: 108
Original Poster
Rep:
|
Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/dev/hdd1 /mnt/caviara vfat auto,users,exec,rw,umask=000 0 0
/dev/hdd2 /mnt/caviarb vfat auto,users,exec,rw,umask=000 0 0
/dev/sda1 /mnt/windows ntfs auto,users,exec,ro,umask=0222 0 0
/dev/hdb /media/cdrecorder auto pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
/dev/hda /media/cdrom auto pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
I'm saying that the fstab appears correct, and it does mount them to the right folders, but in 'Computer' it has them in the opposite order than I would like. They are labelled correctly, but they consider A to be the 'second' one.
It also seems like I'm sometimes having problems with the drive under Linux. For instance, I try to rename a file by right click renaming, and it blinks for a second like you can type in it, then it goes back to as if I had never even tried to rename it. This only happens in 'list' view.
|
|
|
All times are GMT -5. The time now is 11:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|