Re: recover data from damaged msdos fat32 partition

2009-03-19 Thread Polytropon
On Fri, 20 Mar 2009 10:05:57 +0800, Fbsd1  wrote:
> I have installed these ports
> 
> autopsy
> dd_rescue
> ddrescue
> fatback
> formost
> sleuthkit
> 
> If my understanding of reading their documentation is correct, they all 
> need a empty disk to copy the bad disk sectors to in sequence.
> Is this a correct understanding?

It is. These tools work in a non-destructive way, this means
their (eventually failing) attempts to recover data do not do
any damage to the original (defective) disk. The defective
disk isn't repaired, that would be too dangerous to try.

I would even mention to first make a 1:1 dd copy of the defective
FAT partition and using those tools with the copy, not with the
original.



> msdos fat32 file system has a backup fat table as stated in the docs. Do 
> any of the sectors rescue programs read the backup fat table?

dd_rescue - No, does simply copy the partition 1:1.
ddrescue - The same.
sleuthkit - Usually work on a lower level.
formost - Works on a lower level and extracts data files by magic.
autopsy - Offers a "server" for forensic browsing.
fatback - Kind of "undelete tool", no.

The TSK's tools dls, fls and ils don't seem to offer the option
in question.

I read about using alternate superblocks, but that refers to the
UFS file system and not the 2nd FAT. Maybe it's possible to
exactly locate and extract this backup FAT first and then replace
the defective FAT with this copy, using tools like dd?



> Not interested in the XP system or programs directors. Just want user 
> data files created by adobe pagemaker. Dont know what the file extension 
> is for sure or if there are any way to ID the file from internal 
> content. Best guess I have on file extension is .cv5  Do not have a file 
> to examen.

The recovery utilities that act by magic aren't interested in the
file name extension. From the manuals of the programs listed above
that mention such a functionality, there's no word about "Adobe
Pagemaker". Would it have been generic files (such as JPG files
for images, TeX / text files for text), or some kind of ODF archive,
it would be much easier.



> What are the general steps I need to do to recover data from this msdos 
> FAT32 disk with corrupted fat table and maybe corrupted data?

First, copy the partition:

% ddrescue /dev/ad0s2 fat.dd

I'm not sure how the msdosfs formatted disk / the FAT partition
will show up as device file in FreeBSD. In the result, you can
unplug the disk / remove it and only work with the copy.

Then, you can start extracting data from it, for example with

% mkdir retrieve
% foremost -i fat.dd -v -o retrieve -t all

The manpage of foremost has some examples, too.

The manpage of fatback isn't great, "info fatback" has more
details.

For TSK, use something like this:

% dls -t raw -f fat -v fat.dd

I've got no FAT partitions (defective or intact) at hand so I
cannot check if this really works as I think it should. :-)



-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: recover data from damaged msdos fat32 partition

2009-03-19 Thread Fbsd1

Polytropon wrote:

On Sat, 20 Dec 2008 16:16:38 +0800, Fbsd1  wrote:
I know i can mount fat32 partition using mount_msdos command. But my 
msdos fat32 partition is a bad disk with corrupted fat table.


Question is can i use freebsd to recover data from this msdos fAT32 disk


Oh yes, you can! As a side product of my attempt to restore data
from an UFS partition with orphaned inodes, I found some good
utilities that might be helpful fo you.




What tools do you suggest to use?


Check 'em out!

System:
dd
fsck_ffs
clri
fsdb
fetch -rR 
recoverdisk

Ports:
ddrescue
dd_rescue
ffs2recov
magicrescue
testdisk
The Sleuth Kit:
fls
dls
ils
autopsy
scan_ffs
recoverjpeg
fatback

Especially magicrescue can do wonders. If everything fails,
The Sleuth Kit is a good tool.

Don't forget to try mtools.




I have installed these ports

autopsy
dd_rescue
ddrescue
fatback
formost
sleuthkit

If my understanding of reading their documentation is correct, they all 
need a empty disk to copy the bad disk sectors to in sequence.

Is this a correct understanding?

msdos fat32 file system has a backup fat table as stated in the docs. Do 
any of the sectors rescue programs read the backup fat table?


Not interested in the XP system or programs directors. Just want user 
data files created by adobe pagemaker. Dont know what the file extension 
is for sure or if there are any way to ID the file from internal 
content. Best guess I have on file extension is .cv5  Do not have a file 
to examen.


What are the general steps I need to do to recover data from this msdos 
FAT32 disk with corrupted fat table and maybe corrupted data?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: recover data from damaged msdos fat32 partition

2008-12-21 Thread Polytropon
On Sat, 20 Dec 2008 16:16:38 +0800, Fbsd1  wrote:
> I know i can mount fat32 partition using mount_msdos command. But my 
> msdos fat32 partition is a bad disk with corrupted fat table.
> 
> Question is can i use freebsd to recover data from this msdos fAT32 disk

Oh yes, you can! As a side product of my attempt to restore data
from an UFS partition with orphaned inodes, I found some good
utilities that might be helpful fo you.



> What tools do you suggest to use?

Check 'em out!

System:
dd
fsck_ffs
clri
fsdb
fetch -rR 
recoverdisk

Ports:
ddrescue
dd_rescue
ffs2recov
magicrescue
testdisk
The Sleuth Kit:
fls
dls
ils
autopsy
scan_ffs
recoverjpeg
fatback

Especially magicrescue can do wonders. If everything fails,
The Sleuth Kit is a good tool.

Don't forget to try mtools.



-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: recover data from damaged msdos fat32 partition

2008-12-20 Thread michael



Jeff Laine wrote:

On Sat, Dec 20, 2008 at 04:16:38PM +0800, Fbsd1 wrote:
  
I know i can mount fat32 partition using mount_msdos command. But my 
msdos fat32 partition is a bad disk with corrupted fat table.


Question is can i use freebsd to recover data from this msdos fAT32 disk

What tools do you suggest to use?




I believe it's a job for fsck_msdosfs(8) 

  

google "foremost"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: recover data from damaged msdos fat32 partition

2008-12-20 Thread Jeff Laine
On Sat, Dec 20, 2008 at 04:16:38PM +0800, Fbsd1 wrote:
> I know i can mount fat32 partition using mount_msdos command. But my 
> msdos fat32 partition is a bad disk with corrupted fat table.
> 
> Question is can i use freebsd to recover data from this msdos fAT32 disk
> 
> What tools do you suggest to use?
> 

I believe it's a job for fsck_msdosfs(8) 

-- 
Best regards,
Jeff

() X-mas ribbon campaign
/\

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


recover data from damaged msdos fat32 partition

2008-12-20 Thread Fbsd1
I know i can mount fat32 partition using mount_msdos command. But my 
msdos fat32 partition is a bad disk with corrupted fat table.


Question is can i use freebsd to recover data from this msdos fAT32 disk

What tools do you suggest to use?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Users unable to write to mounted FAT32 partition

2007-03-02 Thread Michael G.

Chris,
A mod of your suggestion did the trick.  I was unable to finally 
"chown Michael /mydos" and then change permissions using chmod.  Seems 
pretty simple but kinda strange that as root I could not change the 
permissions.


Thanks to you and Jerry for all the help!

Michael G.

Chris Hill wrote:

On Fri, 2 Mar 2007, Michael G. wrote:

Owner of /mydos is root and Group is wheel.  User has rwx while Group 
and Other only have r-x


Well, there it is. I think users who want to write to this filesystem 
need to have write permission on the mountpoint. How about creating a 
group, perhaps "users", of which all users are members, then chown 
root:users /mydos, then chmod 775 /mydos



Jerry McAllister wrote:

On Fri, Mar 02, 2007 at 05:14:14PM -0600, Michael G. wrote:

OK, I've scoured the archives for an answer with no results.  I'm 
sharing a FAT32 partition between XP and 6.2 Release.  The problem 
is I can mount the drive but only root can write to it (users can 
just read).  I have the following in fstab:


/dev/asd42/mydosmsdosfs rw  0 0

I've tried adding the -u or -g option with no luck.  I understand 
that since FAT has no inherent permissions chmod has no effect 
either (tried it just to be sure) so it must be set from fstab. Any 
help?


What are the owner and permissions on the mount point  (/mydos)?



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Users unable to write to mounted FAT32 partition

2007-03-02 Thread Jerry McAllister
On Fri, Mar 02, 2007 at 07:30:50PM -0500, Chris Hill wrote:

> On Fri, 2 Mar 2007, Michael G. wrote:
> 
> >Owner of /mydos is root and Group is wheel.  User has rwx while Group 
> >and Other only have r-x
> 
> Well, there it is. I think users who want to write to this filesystem 
> need to have write permission on the mountpoint. How about creating a 
> group, perhaps "users", of which all users are members, then chown 
> root:users /mydos, then chmod 775 /mydos

That would be my thinking.
Maybe make a mydos group and only put users in that you want to
be able to r/w the mydos slice instead of everybody and then chown 
it to root:mydos would seem 'safer' if there are a bunch of users 
on the machine.

jerry

> 
> >Jerry McAllister wrote:
> >>On Fri, Mar 02, 2007 at 05:14:14PM -0600, Michael G. wrote:
> >>
> >>>OK, I've scoured the archives for an answer with no results.  I'm 
> >>>sharing a FAT32 partition between XP and 6.2 Release.  The problem 
> >>>is I can mount the drive but only root can write to it (users can 
> >>>just read).  I have the following in fstab:
> >>>
> >>>/dev/asd42/mydosmsdosfs rw  0 0
> >>>
> >>>I've tried adding the -u or -g option with no luck.  I understand 
> >>>that since FAT has no inherent permissions chmod has no effect 
> >>>either (tried it just to be sure) so it must be set from fstab. 
> >>>Any help?
> >>
> >>What are the owner and permissions on the mount point  (/mydos)?
> 
> --
> Chris Hill   [EMAIL PROTECTED]
> ** [ Busy Expunging <|> ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Users unable to write to mounted FAT32 partition

2007-03-02 Thread Chris Hill

On Fri, 2 Mar 2007, Michael G. wrote:

Owner of /mydos is root and Group is wheel.  User has rwx while Group 
and Other only have r-x


Well, there it is. I think users who want to write to this filesystem 
need to have write permission on the mountpoint. How about creating a 
group, perhaps "users", of which all users are members, then chown 
root:users /mydos, then chmod 775 /mydos



Jerry McAllister wrote:

On Fri, Mar 02, 2007 at 05:14:14PM -0600, Michael G. wrote:

OK, I've scoured the archives for an answer with no results.  I'm 
sharing a FAT32 partition between XP and 6.2 Release.  The problem 
is I can mount the drive but only root can write to it (users can 
just read).  I have the following in fstab:


/dev/asd42/mydosmsdosfs rw  0 0

I've tried adding the -u or -g option with no luck.  I understand 
that since FAT has no inherent permissions chmod has no effect 
either (tried it just to be sure) so it must be set from fstab. 
Any help?


What are the owner and permissions on the mount point  (/mydos)?


--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging <|> ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Users unable to write to mounted FAT32 partition

2007-03-02 Thread Michael G.

Jerry,

Owner of /mydos is root and Group is wheel.  User has rwx while Group 
and Other only have r-x


M.G.



Jerry McAllister wrote:

On Fri, Mar 02, 2007 at 05:14:14PM -0600, Michael G. wrote:

  
OK, I've scoured the archives for an answer with no results.  I'm 
sharing a FAT32 partition between XP and 6.2 Release.  The problem is I 
can mount the drive but only root can write to it (users can just 
read).  I have the following in fstab:


/dev/asd42/mydosmsdosfs rw  0 0

I've tried adding the -u or -g option with no luck.  I understand that 
since FAT has no inherent permissions chmod has no effect either (tried 
it just to be sure) so it must be set from fstab.  Any help?



What are the owner and permissions on the mount point  (/mydos)?

jerry

  

Thanks!

M.G.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Users unable to write to mounted FAT32 partition

2007-03-02 Thread Jerry McAllister
On Fri, Mar 02, 2007 at 05:14:14PM -0600, Michael G. wrote:

> OK, I've scoured the archives for an answer with no results.  I'm 
> sharing a FAT32 partition between XP and 6.2 Release.  The problem is I 
> can mount the drive but only root can write to it (users can just 
> read).  I have the following in fstab:
> 
> /dev/asd42/mydosmsdosfs rw  0 0
> 
> I've tried adding the -u or -g option with no luck.  I understand that 
> since FAT has no inherent permissions chmod has no effect either (tried 
> it just to be sure) so it must be set from fstab.  Any help?

What are the owner and permissions on the mount point  (/mydos)?

jerry

> 
> Thanks!
> 
> M.G.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Users unable to write to mounted FAT32 partition

2007-03-02 Thread Michael G.
OK, I've scoured the archives for an answer with no results.  I'm 
sharing a FAT32 partition between XP and 6.2 Release.  The problem is I 
can mount the drive but only root can write to it (users can just 
read).  I have the following in fstab:


/dev/asd42/mydosmsdosfs rw  0 0

I've tried adding the -u or -g option with no luck.  I understand that 
since FAT has no inherent permissions chmod has no effect either (tried 
it just to be sure) so it must be set from fstab.  Any help?


Thanks!

M.G.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shell script cannot run on FAT32 partition

2006-05-20 Thread Kyrre Nygard

At 21:11 18.05.2006, Lorin Lund wrote:

Kyrre Nygard wrote:



Hello!

I have this nice renaming script here.
It sanitizes badly named parts of files and folders.

But when I run it on my FAT32, dual boot transition partition 
(hehe), it causes

my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing some
message before it freezes saying "Locking from myself" or something 
like that,

this is not recorded into /var/log/messages.

It is very annoying actually because to rename a bunch of files I 
first have to
copy them to my UFS2 partition, run the script, and then copy them 
back to the

FAT32 partition.

Does this problem sound familiar to anyone?

Thanks!

Anyway here is the script.


FAT32 seems to have some limitations on moving and renaming files.

Several years ago I had wrote a program (which ran under Win98) which received
files by UDP in pieces.  Once fully assembled it would "MOVE"  the 
files to another director.


That process would bog down.  When I tried the same application 
under WinNT on an NTFS
drive it worked OK.  I don't know if the problem was in Win 98 or if 
it is a weakness of the FAT32
design.  If the problem is in the FAT32 design there could be 
problems that even show up under

FreeBSD.

That's my $0.02


To a man of my poverty, $0.02 is a lot more than what it seems :)

I guess there' s no way around it.

I notice when I copy files, manually one by one, to or from FAT32,
the files end up in uppercase. This is also very annoying,
but something I guess I have to live with.

Take care,
Kyrre

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shell script cannot run on FAT32 partition

2006-05-20 Thread Kyrre Nygard

At 19:47 18.05.2006, Simon Olofsson wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

FAT32 can't distinguish between upper and lowercase. You need to use an
intermediate filename to do so.
Take a look at lcra:
http://membled.com/work/apps/lcra/lcra-1.0.1/lcra
HTH


Thanks man! I appreciate it!

-- Kyrre 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shell script cannot run on FAT32 partition

2006-05-18 Thread Lorin Lund

Kyrre Nygard wrote:



Hello!

I have this nice renaming script here.
It sanitizes badly named parts of files and folders.

But when I run it on my FAT32, dual boot transition partition (hehe), 
it causes
my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing 
some
message before it freezes saying "Locking from myself" or something 
like that,

this is not recorded into /var/log/messages.

It is very annoying actually because to rename a bunch of files I 
first have to
copy them to my UFS2 partition, run the script, and then copy them 
back to the

FAT32 partition.

Does this problem sound familiar to anyone?

Thanks!

Anyway here is the script.


FAT32 seems to have some limitations on moving and renaming files.

Several years ago I had wrote a program (which ran under Win98) which 
received
files by UDP in pieces.  Once fully assembled it would "MOVE"  the files 
to another director.


That process would bog down.  When I tried the same application under 
WinNT on an NTFS
drive it worked OK.  I don't know if the problem was in Win 98 or if it 
is a weakness of the FAT32
design.  If the problem is in the FAT32 design there could be problems 
that even show up under

FreeBSD.

That's my $0.02

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shell script cannot run on FAT32 partition

2006-05-18 Thread Simon Olofsson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

FAT32 can't distinguish between upper and lowercase. You need to use an
intermediate filename to do so.
Take a look at lcra:
http://membled.com/work/apps/lcra/lcra-1.0.1/lcra
HTH

on 05/18/2006 12:40 Kyrre Nygard said the following:
> 
> Hello!
> 
> I have this nice renaming script here.
> It sanitizes badly named parts of files and folders.
> 
> But when I run it on my FAT32, dual boot transition partition (hehe), it
> causes
> my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing some
> message before it freezes saying "Locking from myself" or something like
> that,
> this is not recorded into /var/log/messages.
> 
> It is very annoying actually because to rename a bunch of files I first
> have to
> copy them to my UFS2 partition, run the script, and then copy them back
> to the
> FAT32 partition.
> 
> Does this problem sound familiar to anyone?
> 
> Thanks!
> 
> Anyway here is the script.
> 
> #!/usr/local/bin/bash
> #
> #   Rename files and folders in MP3 releases.
> #   $MERHABA: mp3_rename.sh,v 1.0 2007/11/11 15:09:05 kyrre Exp $
> #
> 
> if [ $1 ]; then mv="echo"; else mv="mv"; fi
> 
> function do_folders () {
> 
> for old in *; do
> 
> if [ -f "$old" ]; then do_files "$old"
> elif [ -d "$old" ]; then
> 
> new=`echo "$old" | tr "[:upper:]" "[:lower:]"`
> new=`echo "$new" | sed -e "s/ /_/g" \
> -e "s/)//g" \
> -e "s/-(/-/g" \
> -e "s/_(/-/g" \
> -e "s/(//g" \
> -e "s/_-_/-/g" \
> -e "s/---*/-/g" \
> -e "s/___*/-/g" \
> -e "s/\./_/g" \
> -e "s/,/-/g" \
> -e "s/'//g" \
> -e "s/___*/_/g" \
> -e "s/_-/-/g" \
> -e "s/-_/-/g" \
> -e "s/&/and/g" \
> -e "s/\([-_]\)ft[_-]/\1feat_/g" \
> -e "s/\([-_]\)featuring[_-]/\1feat_/g" \
> -e "s/[][]//g"`
> 
> if [ "$old" != "$new" ]; then $mv "$old" "$new"; fi
> 
> echo "Renaming $old"
> 
> cd "$new"; do_folders "$new"; cd ..
> 
> else echo "Directory invalid."; fi
> 
> done
> }
> 
> function do_files () {
> 
> old=$1
> 
> new=`echo "$old" | tr "[:upper:]" "[:lower:]"`
> 
> if [[ "$old" == *.* ]]; then
> 
> extension=${new##*.}
> new=${new%.*}
> 
> new=`echo "$new" | sed -e "s/ /_/g" \
> -e "s/)//g" \
> -e "s/-(/-/g" \
> -e "s/_(/-/g" \
> -e "s/(//g" \
> -e "s/_-_/-/g" \
> -e "s/---*/-/g" \
> -e "s/___*/-/g" \
> -e "s/\./_/g" \
> -e "s/,/-/g" \
> -e "s/'//g" \
> -e "s/___*/_/g" \
> -e "s/_-/-/g" \
> -e "s/-_/-/g" \
> -e "s/\&/and/g" \
> -e "s/\([-_]\)ft[_-]/\1feat_/g" \
> -e "s/\([-_]\)featuring[_-]/\1feat_/g" \
> -e "s/^\([0-9]\{2,3\}\)_/\1-/g" \
> -e "s/[][]//g"`
> 
> new=`echo "$new"."$extension"`
> 
> $mv "$old" "$new"; fi
> }
> 
> do_folders .

- --
Mit freundlichem Gruß,
With best regards,

Simon Olofsson
http://olofsson.de

GPG-Key: 0x3D001BE0
http://olofsson.de/simon/keys/simon_olofsson.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEbLNARM/k9z0AG+ARAsy/AKCTZ74GYB9lQbVshtB/RiMSbWoShQCg85Nr
A2iRe7zu3GOyrya3J8QtUm4=
=Av5z
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Shell script cannot run on FAT32 partition

2006-05-18 Thread Norberto Meijome
On Thu, 18 May 2006 12:40:08 +0200
Kyrre Nygard <[EMAIL PROTECTED]> wrote:

> It is very annoying actually because to rename a bunch of files I first have
> to copy them to my UFS2 partition, run the script, and then copy them back to
> the FAT32 partition.

Hi Kyrre,
not a solution to the problem, but why not install cygwin or minGW and run the
same script there?
Beto
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Shell script cannot run on FAT32 partition

2006-05-18 Thread Kyrre Nygard


Hello!

I have this nice renaming script here.
It sanitizes badly named parts of files and folders.

But when I run it on my FAT32, dual boot transition partition (hehe), it causes
my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing some
message before it freezes saying "Locking from myself" or something like that,
this is not recorded into /var/log/messages.

It is very annoying actually because to rename a bunch of files I first have to
copy them to my UFS2 partition, run the script, and then copy them back to the
FAT32 partition.

Does this problem sound familiar to anyone?

Thanks!

Anyway here is the script.

#!/usr/local/bin/bash
#
#   Rename files and folders in MP3 releases.
#   $MERHABA: mp3_rename.sh,v 1.0 2007/11/11 15:09:05 kyrre Exp $
#

if [ $1 ]; then mv="echo"; else mv="mv"; fi

function do_folders () {

for old in *; do

if [ -f "$old" ]; then do_files "$old"
elif [ -d "$old" ]; then

new=`echo "$old" | tr "[:upper:]" "[:lower:]"`
new=`echo "$new" | sed -e "s/ /_/g" \
-e "s/)//g" \
-e "s/-(/-/g" \
-e "s/_(/-/g" \
-e "s/(//g" \
-e "s/_-_/-/g" \
-e "s/---*/-/g" \
-e "s/___*/-/g" \
-e "s/\./_/g" \
-e "s/,/-/g" \
-e "s/'//g" \
-e "s/___*/_/g" \
-e "s/_-/-/g" \
-e "s/-_/-/g" \
-e "s/&/and/g" \
-e "s/\([-_]\)ft[_-]/\1feat_/g" \
-e "s/\([-_]\)featuring[_-]/\1feat_/g" \
-e "s/[][]//g"`

if [ "$old" != "$new" ]; then $mv "$old" "$new"; fi

echo "Renaming $old"

cd "$new"; do_folders "$new"; cd ..

else echo "Directory invalid."; fi

done
}

function do_files () {

old=$1

new=`echo "$old" | tr "[:upper:]" "[:lower:]"`

if [[ "$old" == *.* ]]; then

extension=${new##*.}
new=${new%.*}

new=`echo "$new" | sed -e "s/ /_/g" \
-e "s/)//g" \
-e "s/-(/-/g" \
-e "s/_(/-/g" \
-e "s/(//g" \
-e "s/_-_/-/g" \
-e "s/---*/-/g" \
-e "s/___*/-/g" \
-e "s/\./_/g" \
-e "s/,/-/g" \
-e "s/'//g" \
-e "s/___*/_/g" \
-e "s/_-/-/g" \
-e "s/-_/-/g" \
-e "s/\&/and/g" \
-e "s/\([-_]\)ft[_-]/\1feat_/g" \
-e "s/\([-_]\)featuring[_-]/\1feat_/g" \
-e "s/^\([0-9]\{2,3\}\)_/\1-/g" \
-e "s/[][]//g"`

new=`echo "$new"."$extension"`

$mv "$old" "$new"; fi
}

do_folders .

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Extended fat32 partition, how to mount ?

2004-12-13 Thread Liu Haixiao

Dear sir:

I meet two hard disks:
one is ad0, freebsd file system.
the other is ad2, 
Name   PType   DescSubtype
ad2s1  1   NTFS/HPFS/QNX   7
ad2s2  4   extended15
In fact, the "ad2s2" has two partition: 
in W2K view:
D: fat32
E: fat32
or in Linux fdisk view:
hdc5: vfat
hdc6: vfat

In /dev/:
FreeBSD# ls ad2*
ad2 ad2cad2fad2s1   ad2s1c  ad2s1f  ad2s2
ad2aad2dad2gad2s1a  ad2s1d  ad2s1g  ad2s3
ad2bad2ead2had2s1b  ad2s1e  ad2s1h  ad2s4
Please tell me how to mount the "hdc5" partition( or
D: )?

Many thanks.

Happy Christmas!


  
  
 
  
  
  
   
  
 



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Extended fat32 partition, how to mount ?

2004-12-13 Thread Karel Miklav
Have you:
 1. tried mounting ad2s5 and ad2s6?
 2. checked the http://www.freebsd.org/search/search.html#mailinglists?
 3. searched the web (extended logical fat ad0s5 freebsd...)?
--
Be well,
Karel Miklav
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FAT32 Partition?

2004-12-09 Thread Lowell Gilbert
Phusion <[EMAIL PROTECTED]> writes:

> I'm having problems accessing a shared FAT32 partition in FreeBSD 5.3.
> When I try to mount the partition, it says: bad FAT32 filesystem. I'll
> explain what I'm trying to do, and what I've tried. I have one hard
> drive, and I'm trying to get Windows XP Pro, FreeBSD 5.3, and Fedora
> on it. I want to have one FAT32 partition that is shared between all
> three operating systems. Here's the steps I've followed.
> 
> - Install Windows XP Pro
>   create a primary partition, NTFS
> - Install FreeBSD 5.3
>   create a primary partition, UFS2
> - Install Fedora
>   manually partition with disk druid, create a boot partition, FAT
> partition, and swap drive
> 
>   Here's what the partitions look like to Fedora.
> hdc1   ntfs (Primary)
> hdc2   bsd (Primary)
> hdc3 / ext3 (Primary)
> hdc4   Extended
>   hdc5   /share vfat
>   hdc6 swap
> 
> When tried this way, the FAT32 partition is created by Fedora. The
> partition can be read + written to in Windows XP, and Fedora. In
> FreeBSD I can't mount it. Can FreeBSD 5.3 read FAT32 partitions on
> extended partitions? When I create the FAT32 partition as a primary
> partition I can read and write to it in FreeBSD fine. Does anyone have
> advice on how I can do this. If so let me know. Thanks.

It should work fine.  What device are you using to mount it from
FreeBSD, and does that device exist in /dev?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FAT32 Partition?

2004-12-08 Thread Phusion
I'm having problems accessing a shared FAT32 partition in FreeBSD 5.3.
When I try to mount the partition, it says: bad FAT32 filesystem. I'll
explain what I'm trying to do, and what I've tried. I have one hard
drive, and I'm trying to get Windows XP Pro, FreeBSD 5.3, and Fedora
on it. I want to have one FAT32 partition that is shared between all
three operating systems. Here's the steps I've followed.

- Install Windows XP Pro
  create a primary partition, NTFS
- Install FreeBSD 5.3
  create a primary partition, UFS2
- Install Fedora
  manually partition with disk druid, create a boot partition, FAT
partition, and swap drive

  Here's what the partitions look like to Fedora.
hdc1   ntfs (Primary)
hdc2   bsd (Primary)
hdc3 / ext3 (Primary)
hdc4   Extended
  hdc5   /share vfat
  hdc6     swap

When tried this way, the FAT32 partition is created by Fedora. The
partition can be read + written to in Windows XP, and Fedora. In
FreeBSD I can't mount it. Can FreeBSD 5.3 read FAT32 partitions on
extended partitions? When I create the FAT32 partition as a primary
partition I can read and write to it in FreeBSD fine. Does anyone have
advice on how I can do this. If so let me know. Thanks.

Phusion
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Creating NTFS or FAT32 partition

2004-06-29 Thread Toni Schmidbauer
On Mon, Jun 28, 2004 at 01:39:53PM -0700, Alexander Kanchev wrote:
> I have a HDD attached to my computer and I need to format it with windows compatible 
> filesystem, like NTFS or FAT32. Is this possible to make this under FreeBSD ?

/usr/ports/emulators/mtools supports fat32

hth
toni
-- 
Wer es einmal so weit gebracht hat, dass er nicht | toni at stderror dot at
mehr irrt, der hat auch zu arbeiten aufgehoert| Toni Schmidbauer
-- Max Planck |


pgpZoYD9RkbER.pgp
Description: PGP signature


Re: Creating NTFS or FAT32 partition

2004-06-28 Thread dvv
Alexander Kanchev writes: 

Hello,
 
I have a HDD attached to my computer and I need to format it with windows compatible filesystem, like NTFS or FAT32. Is this possible to make this under FreeBSD ?
 
I'm running FreeBSD 5.2.1 and the HDD device is  /dev/ad1 (also /dev/ad1s1)
 
regards,
alexander 

man newfs_msdos:
http://www.freebsd.org/cgi/man.cgi?query=newfs_msdos&apropos=0&sektion=0&man 
path=FreeBSD+5.2-RELEASE+and+Ports&format=html 

Didn't it work yesterday?If not get a freedos disk and try with it
ad1s1 is your 1st slice of disk.ad1 is the whole thing.
Please don't waste community resource. Do you homework - read.
Best regards,
Dimitar Vassilev 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Creating NTFS or FAT32 partition

2004-06-28 Thread Alexander Kanchev
Hello,
 
I have a HDD attached to my computer and I need to format it with windows compatible 
filesystem, like NTFS or FAT32. Is this possible to make this under FreeBSD ?
 
I'm running FreeBSD 5.2.1 and the HDD device is  /dev/ad1 (also /dev/ad1s1)
 
regards,
alexander


-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: howto mount logical fat32 partition? (Invalid argument error...)

2004-03-30 Thread Shantanoo
+++ Tamas ZADORI [freebsd] [30-03-04 00:24 +0200]:
| Hi!
| 
| After browsing and googleing a lot I have no other idea how to mount my
| logical partition. I'm using RELEASE-5.2.1 with a freshly compiled
| kernel (yes, with msdosfs included).
| 
| The output of fdisk is here:
| 
| #fdisk ad0
| *** Working on device /dev/ad0 ***
| parameters extracted from in-core disklabel are:
| cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)
| 
| Figures below won't work with BIOS for partitions not in cyl 1
| parameters to be used for BIOS calculations are:
| cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)
| 
| Media sector size is 512
| Warning: BIOS sector numbering starts with sector 1
| Information from DOS bootblock is:
| The data for partition 1 is:
| sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
| start 63, size 16386237 (8001 Meg), flag 80 (active)
|   beg: cyl 0/ head 1/ sector 1;
|   end: cyl 1019/ head 254/ sector 63
| The data for partition 2 is:
| sysid 15 (0x0f),(Extended DOS (LBA))
| start 16386300, size 100840005 (49238 Meg), flag 0
|   beg: cyl 1020/ head 0/ sector 1;
|   end: cyl 1023/ head 254/ sector 63
| 
| # file -s /dev/ad0s5
| /dev/ad0s5: x86 boot sector, extended partition table
| 
| After I try to mount it brings up the following error:
| 
| [EMAIL PROTECTED]:~# mount -t msdos /dev/ad0s5 /mnt
| msdosfs: /dev/ad0s5: Invalid argument
| [EMAIL PROTECTED]:~# mount -t msdosfs /dev/ad0s5 /mnt
| msdosfs: /dev/ad0s5: Invalid argument
| [EMAIL PROTECTED]:~# mount_msdosfs /dev/ad0s5 /mnt
| mount_msdosfs: /dev/ad0s5: Invalid argument
| 
| Is there a workaround for this? As I mentioned I found nothing on the
| web that could help me.
| 
| Thanks,
| Thomas
| 
| ps: I'm not on the list, please cc it to me as well.

try 'scandisk' through windows and then try re-mounting.
This type of prob. is faced when you have Win2k and FBSD dual booted.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


howto mount logical fat32 partition? (Invalid argument error...)

2004-03-29 Thread Tamas ZADORI
Hi!

After browsing and googleing a lot I have no other idea how to mount my
logical partition. I'm using RELEASE-5.2.1 with a freshly compiled
kernel (yes, with msdosfs included).

The output of fdisk is here:

#fdisk ad0
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
start 63, size 16386237 (8001 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1019/ head 254/ sector 63
The data for partition 2 is:
sysid 15 (0x0f),(Extended DOS (LBA))
start 16386300, size 100840005 (49238 Meg), flag 0
beg: cyl 1020/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63

# file -s /dev/ad0s5
/dev/ad0s5: x86 boot sector, extended partition table

After I try to mount it brings up the following error:

[EMAIL PROTECTED]:~# mount -t msdos /dev/ad0s5 /mnt
msdosfs: /dev/ad0s5: Invalid argument
[EMAIL PROTECTED]:~# mount -t msdosfs /dev/ad0s5 /mnt
msdosfs: /dev/ad0s5: Invalid argument
[EMAIL PROTECTED]:~# mount_msdosfs /dev/ad0s5 /mnt
mount_msdosfs: /dev/ad0s5: Invalid argument

Is there a workaround for this? As I mentioned I found nothing on the
web that could help me.

Thanks,
Thomas

ps: I'm not on the list, please cc it to me as well.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Error while mounting Fat32-Partition

2003-08-15 Thread Lowell Gilbert
Stefan Malte Schumacher <[EMAIL PROTECTED]> writes:

> > /dev/ad4s1  /mnt/I  msdos   rw  0   0

Yes, that should work okay.  Assuming, of course, that you have the
device and directory names correct.

> Oh and another thing : What entries do I have to make so that users can
> access these partitions and read/write on them ? 

RTFM (mount_msdos(8)), but the easy thing is to change the permissions
on the mount point.

Keep in mind, though, that *all* users will have the same access
unless you play games with the group ownership of the mount point.
This is *not* a filesystem type that supports any kind of local
security.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Error while mounting Fat32-Partition

2003-08-15 Thread Stefan Malte Schumacher
> /dev/ad4s1  /mnt/I  msdos   rw  0   0


Oh and another thing : What entries do I have to make so that users can
access these partitions and read/write on them ? 

Bye
Stefan 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Error while mounting Fat32-Partition

2003-08-15 Thread Stefan Malte Schumacher
Hi

Before adding my Fat32-Partitions to /etc/fstab I have tried to mount them
manually. All Partitions work except one whis is a primary fat16 partition
on my first drive. 

This is the error message :

[EMAIL PROTECTED] /mnt mount -t msdos /dev/ad0s1 C
Next free cluster in FSInfo (4294967295) exceeds maxcluster (1034161)
msdosfs: /dev/ad0s1: Invalid argument

Another question : Is the following entry in fstab correct ? I don't want to
kill my filesystems or something :

/dev/ad4s1  /mnt/I  msdos   rw  0   0

Bye
Stefan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Mounting large FAT32 partition truncates filesystem?

2002-11-01 Thread Derrick Ryalls
Win2k has a limitation when it comes to FAT32, it will not format/deal
with partitions that are larger than a set number which I believe is
roughly 30gig.  This is not a limitation of FAT32, just a limit with
Win2k and FAT32.

It should also be noted that with large partitions or lots of files,
FAT32 performance rapidly degrades.


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:owner-freebsd-questions@;FreeBSD.ORG] On Behalf Of Ceri Davies
> Sent: Friday, November 01, 2002 3:45 AM
> To: William Rose
> Cc: [EMAIL PROTECTED]
> Subject: Re: Mounting large FAT32 partition truncates filesystem?
> 
> 
> On Fri, Nov 01, 2002 at 11:22:00PM +1100, William Rose wrote:
> > Hi,
> > 
> > I recently tried to mount a FAT32 file system (formatted to 80GB, 
> > under Windows 2K) under FreeBSD.  The only problem is that the 
> > filesystem has been truncated to 20GB!  Now, booting into Windows 
> > shows it has also been truncated.  Help!
> 
> Sounds strange.
> I tried to format a 50GB partition to FAT32 under Windows 2K 
> just last week, and Windows told me that the partition was 
> too big and refused to do anything with it.
> 
> > Does FreeBSD trash volumes that it assumes are 'too big'?
> 
> I seriously doubt it.
> 
> Ceri
> -- 
> you can't see when light's so strong
> you can't see when light is gone
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Mounting large FAT32 partition truncates filesystem?

2002-11-01 Thread Ceri Davies
On Fri, Nov 01, 2002 at 11:22:00PM +1100, William Rose wrote:
> Hi,
> 
> I recently tried to mount a FAT32 file system (formatted to 80GB, under
> Windows 2K) under FreeBSD.  The only problem is that the filesystem has
> been truncated to 20GB!  Now, booting into Windows shows it has also
> been truncated.  Help!

Sounds strange.
I tried to format a 50GB partition to FAT32 under Windows 2K just last week,
and Windows told me that the partition was too big and refused to do anything
with it.

> Does FreeBSD trash volumes that it assumes are 'too big'?

I seriously doubt it.

Ceri
-- 
you can't see when light's so strong
you can't see when light is gone

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Mounting large FAT32 partition truncates filesystem?

2002-11-01 Thread William Rose
Hi,

I recently tried to mount a FAT32 file system (formatted to 80GB, under
Windows 2K) under FreeBSD.  The only problem is that the filesystem has
been truncated to 20GB!  Now, booting into Windows shows it has also
been truncated.  Help!

Does FreeBSD trash volumes that it assumes are 'too big'?

cheers,
Will




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: How to chmod on FAT32 partition?

2002-10-25 Thread C J Michaels
Some time in the recent past David Gerard scribbled:
>
> OK, got disk up. (Problem was I didn't know its make. ad3s1 eventually
> worked.)
>
> Now it seems I can't make it writable by anyone but root:
>
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
> diva# chmod g+w viv.html
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
> diva# chmod a+w viv.html
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
>
> Same for any files. Is this some sort of FAT32 limitation? Is this
> documented anywhere?

I know it's documented somewhere but I'm too lazy to look right now.  I
know for a fact if you search the archives you'll find more detail.

The short answer is that FAT32 has no concept of permissions there's not
way to 'change them' on a per file/dir basis.  When you mount a FAT{32}
partition it'll inherrit the permissions of the mount point.  So
chown/chmod that directory and re-mount.

>
> - d.
>

-- 
Chris



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: How to chmod on FAT32 partition?

2002-10-25 Thread Mike Hogsett

Since FAT32 has no concept of users and only a rudimetary concept of file
meta-data (permission bits, etc) all files will be owned by the owner of
the directory on which it is mounted.  You can make the entire filesystem
contents own by one particular user and/or group. Read mount_msdos(8)

 HTH,

 - Mike Hogsett




> 
> OK, got disk up. (Problem was I didn't know its make. ad3s1 eventually
> worked.)
> 
> Now it seems I can't make it writable by anyone but root:
> 
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
> diva# chmod g+w viv.html
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
> diva# chmod a+w viv.html 
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
> 
> Same for any files. Is this some sort of FAT32 limitation? Is this
> documented anywhere?
> 
> 
> - d.
> 
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: How to chmod on FAT32 partition?

2002-10-25 Thread Dan Nelson
In the last episode (Oct 26), David Gerard said:
> OK, got disk up. (Problem was I didn't know its make. ad3s1 eventually
> worked.)
> 
> Now it seems I can't make it writable by anyone but root:
> 
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
> diva# chmod g+w viv.html
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
> diva# chmod a+w viv.html 
> diva# ls -l viv.html
> -rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
> 
> Same for any files. Is this some sort of FAT32 limitation? Is this
> documented anywhere?

FAT32 has no concept of file ownerships or permissions.  All files by
default inherit the attributes of the directory the filesystem was
mounted on.  You can override this by mounting with -u, -g and -m
options.  See the mount_msdos manpage for more info.
 
-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



How to chmod on FAT32 partition?

2002-10-25 Thread David Gerard

OK, got disk up. (Problem was I didn't know its make. ad3s1 eventually
worked.)

Now it seems I can't make it writable by anyone but root:

diva# ls -l viv.html
-rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
diva# chmod g+w viv.html
diva# ls -l viv.html
-rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html
diva# chmod a+w viv.html 
diva# ls -l viv.html
-rwxr-xr-x  1 root  wheel  1987 Jul  4 05:21 viv.html

Same for any files. Is this some sort of FAT32 limitation? Is this
documented anywhere?


- d.




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Can't mount my fat32 partition

2002-09-20 Thread twig les

Yes, I'm running 2000 and the first partition is NTFS.
 Yes, I made a seperate fat32 partition and yes, I did
not do a MAKEDEV for ad0s5.

As soon as I did that I was able to mount the drive. 
Thank you for the quick and accurate help...off to rip
Blade 2!!!

--- Matt Smith <[EMAIL PROTECTED]> wrote:
> Are you running Windows 2000?  It looks like you
> have an NTFS partition
> on ads02, which would probably be your C: drive in
> Windows.  Is that
> what you are trying to mount?  If so, you really
> need:
> mount -tntfs /dev/ad0s2 /mnt
> which will mount that drive read-only (NTFS is not
> writable yet, AFAIK)
> 
> OR did you create a different FAT32 partition?  If
> you created your own
> separate FAT32 partition, did you create a logical
> partition, IN the
> extended partition?  if so, try:
> 
> cd /dev
> sh MAKEDEV ad0s5
> mount_msdos /dev/ad0s5 /mnt
> 
> Hope that helps,
> -Matt
> 
> 
> On Fri, 2002-09-20 at 13:57, twig les wrote:
> > Hey all, for some reason I'm having a lot of
> trouble
> > mounting a fat 32 partition, even though the book
> I
> > have and the web site I found both said that it's
> a
> > snap.  The man page didn't help and a google
> search
> > didn't either so here goes.
> > 
> > I keep getting an invalid argument response when I
> try
> > to mount my windoze partition (as root):
> > 
> > L# mount_msdos /dev/ad0s3 /mnt
> > mount_msdos: /dev/ad0s3: Invalid argument
> > 
> > Here is my hard drive according to fdisk:
> > 
> > Disk name:  ad0   
>
> > FDISK Partition Editor
> > DISK Geometry:  1467 cyls/255 heads/63 sectors =
> > 23567355 sectors (11507MB)
> > 
> > Offset   Size(MB)End Name  PType  
>
> > Desc  SubtypeFlags
> > 
> >  0  0 62-  6  
>  
> > unused0
> > 63   29966136829ad0s1  1
> > NTFS/HPFS/QNX7
> >6136830   5498   17398394ad0s2  3  
> 
> > freebsd  165C
> >   17398395   3012   23567354ad0s3  4  
> > extended   15
> >   23567355  5   23579135-  6  
>  
> > unused0
> > 
> > 
> > And here is my OS:
> > 
> > L# uname -a
> > FreeBSD L.liza.com 4.6.2-RELEASE-p2 FreeBSD
> > 4.6.2-RELEASE-p2 #0: Mon Sep 16 13:41:26 PDT 2002 
>   
> > [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FW.safe  i386
> > 
> > 
> > As you can see, fdisk (and partition magic 5.0)
> thinks
> > that the fat32 partition is extended, but it is
> > numbered as 3, when extended partitions are
> supposed
> > to start at 5 (so I've read).  Well ad0s5 doesn't
> > exist and ad0s3 is clearly the 3gig fat32 I just
> > formatted.  Please help a poor confused soul.
> > 
> > =
> >
>
---
> > Heavy metal made me do it.
> >
>
---
> > 
> > __
> > Do you Yahoo!?
> > New DSL Internet Access from SBC & Yahoo!
> > http://sbc.yahoo.com
> > 
> > To Unsubscribe: send mail to [EMAIL PROTECTED]
> > with "unsubscribe freebsd-questions" in the body
> of the message
> > 
> 
> 


=
---
Heavy metal made me do it.
---

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Can't mount my fat32 partition

2002-09-20 Thread Matt Smith

Are you running Windows 2000?  It looks like you have an NTFS partition
on ads02, which would probably be your C: drive in Windows.  Is that
what you are trying to mount?  If so, you really need:
mount -tntfs /dev/ad0s2 /mnt
which will mount that drive read-only (NTFS is not writable yet, AFAIK)

OR did you create a different FAT32 partition?  If you created your own
separate FAT32 partition, did you create a logical partition, IN the
extended partition?  if so, try:

cd /dev
sh MAKEDEV ad0s5
mount_msdos /dev/ad0s5 /mnt

Hope that helps,
-Matt


On Fri, 2002-09-20 at 13:57, twig les wrote:
> Hey all, for some reason I'm having a lot of trouble
> mounting a fat 32 partition, even though the book I
> have and the web site I found both said that it's a
> snap.  The man page didn't help and a google search
> didn't either so here goes.
> 
> I keep getting an invalid argument response when I try
> to mount my windoze partition (as root):
> 
> L# mount_msdos /dev/ad0s3 /mnt
> mount_msdos: /dev/ad0s3: Invalid argument
> 
> Here is my hard drive according to fdisk:
> 
> Disk name:  ad0   
> FDISK Partition Editor
> DISK Geometry:  1467 cyls/255 heads/63 sectors =
> 23567355 sectors (11507MB)
> 
> Offset   Size(MB)End Name  PType  
> Desc  SubtypeFlags
> 
>  0  0 62-  6
> unused0
> 63   29966136829ad0s1  1
> NTFS/HPFS/QNX7
>6136830   5498   17398394ad0s2  3   
> freebsd  165C
>   17398395   3012   23567354ad0s3  4  
> extended   15
>   23567355  5   23579135-  6
> unused0
> 
> 
> And here is my OS:
> 
> L# uname -a
> FreeBSD L.liza.com 4.6.2-RELEASE-p2 FreeBSD
> 4.6.2-RELEASE-p2 #0: Mon Sep 16 13:41:26 PDT 2002    
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FW.safe  i386
> 
> 
> As you can see, fdisk (and partition magic 5.0) thinks
> that the fat32 partition is extended, but it is
> numbered as 3, when extended partitions are supposed
> to start at 5 (so I've read).  Well ad0s5 doesn't
> exist and ad0s3 is clearly the 3gig fat32 I just
> formatted.  Please help a poor confused soul.
> 
> =
> ---
> Heavy metal made me do it.
> ---
> 
> __
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Can't mount my fat32 partition

2002-09-20 Thread twig les

Hey all, for some reason I'm having a lot of trouble
mounting a fat 32 partition, even though the book I
have and the web site I found both said that it's a
snap.  The man page didn't help and a google search
didn't either so here goes.

I keep getting an invalid argument response when I try
to mount my windoze partition (as root):

L# mount_msdos /dev/ad0s3 /mnt
mount_msdos: /dev/ad0s3: Invalid argument

Here is my hard drive according to fdisk:

Disk name:  ad0   
FDISK Partition Editor
DISK Geometry:  1467 cyls/255 heads/63 sectors =
23567355 sectors (11507MB)

Offset   Size(MB)End Name  PType  
Desc  SubtypeFlags

 0  0 62-  6
unused0
63   29966136829ad0s1  1
NTFS/HPFS/QNX7
   6136830   5498   17398394ad0s2  3   
freebsd  165C
  17398395   3012   23567354ad0s3  4  
extended   15
  23567355  5   23579135-  6
unused0


And here is my OS:

L# uname -a
FreeBSD L.liza.com 4.6.2-RELEASE-p2 FreeBSD
4.6.2-RELEASE-p2 #0: Mon Sep 16 13:41:26 PDT 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/FW.safe  i386


As you can see, fdisk (and partition magic 5.0) thinks
that the fat32 partition is extended, but it is
numbered as 3, when extended partitions are supposed
to start at 5 (so I've read).  Well ad0s5 doesn't
exist and ad0s3 is clearly the 3gig fat32 I just
formatted.  Please help a poor confused soul.

=
---
Heavy metal made me do it.
---

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message