LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-09-2003, 03:44 AM   #1
blueleft
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE
Posts: 15

Rep: Reputation: 0
Newbie can't mount drive as 777


Hi,

I am trying to mount a drive off / using SuSE, but can't alter its permissions. I'm v new to all this stuff so sorry if its something dumb I'm doing.

I created a directory with my desired name off the root directory, and set it to chmod 777 -> all works AOK.

Then I go to the SuSE YaST partitioner tool, and create a primary partition for the drive => hdb1 and mount it on the directory that I created, plus then commit changes, which all appears to work fine.

But the permissions on the directory are now set to 755 and I can't change them. I run the chmod command to _set it to 777, and it doesn't error, running with verbose says it has set it to 777, but doing a listing shows it hasn't changed anything.

The /etc/fstab and /etc/mtab look ok.

Any help is of course greatly appreciated,

Dave
 
Old 08-09-2003, 06:11 AM   #2
clemensp
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Hi,

I am referred as a newbie to, so sorry if I am terribly wrong, but I got an idea on your prob:

Maybe you are trying to mount a ntfs partition - they can be mounted read only as far as I know. vfat partitions can be mounted read and writeable.

Hope that helps.

cya around!

Clemens
 
Old 08-09-2003, 06:22 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Re: Newbie can't mount drive as 777

Quote:
Originally posted by blueleft
...{SNIP}

The /etc/fstab and /etc/mtab look ok.

Any help is of course greatly appreciated,

Dave
Can you post em up just for kicks? Also can you post up:
mount
And finally, what filesystem are they formatted as, you said you used Yast to create the partitions, but what did they get formatted as?

Cool
 
Old 08-09-2003, 07:01 AM   #4
blueleft
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Choice !! Thanks for checking this out cause its got me mystified:

The file systems are FAT32 cause one drive is in a cage and may be placed into a windows machine so I chose a compatible format - Arrr !! but they may actually be NTFS as stands at the moment even tho the partition tool had format as Fat clicked. I'll try and force a format of them to something cause even tho FAT was selected for format, it only took seconds to create it all which surely can't mean that it phyically reformatted from NTFS to Fat ?

The_drive with this problem is a seagate 40Gb mounted as storage_fixd.

The /etc/fstab amnd mtab looks like:
ssstorage:/ # more /etc/fstab
/dev/hda2 / reiserfs defaults 1 1
/dev/hda1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
/dev/hdb1 /storage_fixd vfat defaults 0 0


ssstorage:/ # more /etc/mtab
/dev/hda2 / reiserfs rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
shmfs /dev/shm shm rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hdb1 /storage_fixd vfat rw 0 0
ssstorage:/ #


Thanks,
Dave
 
Old 08-09-2003, 07:02 AM   #5
blueleft
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Also the mount command output:

ssstorage:/ # mount
/dev/hda2 on / type reiserfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
shmfs on /dev/shm type shm (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hdb1 on /storage_fixd type vfat (rw)
ssstorage:/ #

Thanks,
Dave
 
Old 08-09-2003, 07:33 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
of course you can't chmod files on a fat32 drive.... where does that information get held? remember that fat32 is a kindergarten file system. you need to set umask=000 as an option in fstab to set ALL the attributies on the drive to that.

if you'd said it was fat32 in your first post people would have realised that immediatley, please try to provide more complete information.
 
Old 08-09-2003, 07:48 AM   #7
blueleft
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for the assistance.

Sorry about the lack of info, I am 3 daze into linux and have got a textbook and am doing a lot of head scratching.

What file system can I use that would allow a drive to be physically swapped between windows and linux machines and be read by both ?

Thanks,
Dave
 
Old 08-09-2003, 11:19 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Fat32 But you'll just have to work with it a bit more. The man page for mount will be your friend as well as simple trial and error. For Fat32 you'll need to supply a umask upon mount up that will determine your permissions for the files on the drive. Something like umask=000 will give you all the needed ones.



Post back if I have confused you I'll be happy to break it down a bit better.

Cool
 
Old 08-10-2003, 12:48 AM   #9
blueleft
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks !

I have kind of got a functional system going now, by running FAT32 and setting the samba guest user to be root user which is letting me see the drive AOK for write as well as read. Probably a security risk I spose tho? umask I was looking at but got confused. Can it force the permissions for everything on that mount to be 777 by masking 000 overriding what appears to be a default for the FAT32 systems ?

Thanks again :-)
 
Old 08-10-2003, 01:08 AM   #10
blueleft
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE
Posts: 15

Original Poster
Rep: Reputation: 0
BING !

Sorted - thanks for all the assistance. The umask option is cool - I was seeing it by default under man umask => displays bash, but I see umask under mount => more control than offered thru the SuSE gui tool.

Cheers,
Dave
 
  


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
Newbie - Mount USB Drive RedHat 9 goodboy Linux - Hardware 2 04-21-2005 11:28 PM
user cant mount after chmod 777 /bin/mount misterwiddle Linux - General 2 04-06-2005 05:36 PM
mount vfat hd in 777 Ravo Linux - General 2 02-22-2005 04:21 PM
Mount built in Memory Stick Drive -newbie- nlx Linux - Hardware 1 02-24-2004 07:05 PM
mount doesn't work as non su even after chmod 777 dokterneo Slackware 5 08-08-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:03 AM.

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