LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 08-09-2004, 02:15 PM   #1
krajzega
Member
 
Registered: Jan 2004
Location: Poland
Distribution: FreeBSD 5.1
Posts: 92

Rep: Reputation: 15
FreeBSD+fstab+fat partition


I've got FreeBSD 5.1 and one FAT partition. I would like to mount it and allow normal user to write and delete files there. I know that FAT doesnt support permissions such as UFS or EXT*. My previous system was Slack 9.1 and there i had to add one line to fstab including there "user" argument. So how to make the same with *BSD ? Let's see my /etc/fstab :

[krajzega][krajzega@FreeBSD]# cat /etc/fstab | grep ad1s1
/dev/ad1s1 /d msdos rw,user 1 1

And another question: does something like mkfs ufs exists on BSD? Where could I find it?
 
Old 08-09-2004, 02:32 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
mkfs has been replaced with the newfs utility.

As for the FAT partition:
man mount_msdosfs

Pay special attention to the -m mask option. Hint:
/dev/ad1s1 /d msdos rw,-m=777 0 0

I am not sure of what the "user" option did for you in Linux. If you would tell me there probably is something similar. You don't want to dump or check this partition so keep the last two numbers as 0s.

This line will mount it so that every file is readable, writable, and executatable by everyone on the system. Very good security I assure you.
 
Old 08-09-2004, 02:40 PM   #3
krajzega
Member
 
Registered: Jan 2004
Location: Poland
Distribution: FreeBSD 5.1
Posts: 92

Original Poster
Rep: Reputation: 15
But what to do, when I've some data on that partition and I dont want to lose it!?
 
Old 08-09-2004, 02:53 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
/dev/ad1s1 /d msdos rw,-u=1000 0 0

Replace 1000 with the UID of the user who need the permission to write the drive. If you want a bunch of people to be able to write the partition create a group for them then use:

/dev/ad1s1 /d msdos rw,-g=3000,-m775 0 0

Replace 3000 with the number of the group of people who can write to the drive, and add all the users who need that permissions to that group. The man page covers all this and is worth the read.
 
Old 08-09-2004, 03:05 PM   #5
krajzega
Member
 
Registered: Jan 2004
Location: Poland
Distribution: FreeBSD 5.1
Posts: 92

Original Poster
Rep: Reputation: 15
Big thanks!
And another problem: how to resize existing partition without loosing data?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
having fstab-sync mount fat case-insensitive eliotstock Linux - General 9 06-05-2005 12:55 PM
Can't get at FAT partition Boffy Linux - General 5 02-21-2005 11:27 AM
/etc/fstab MOUNTING FAT PARTITION cb951303 Slackware 7 08-30-2004 08:07 PM
/fat-c permissions in fstab Ops Slackware 2 07-08-2004 10:43 AM
Mounting fat drives in fstab.. subnet Linux - Newbie 3 10-10-2003 03:02 AM


All times are GMT -5. The time now is 09:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration