how to archive or make hidden files on a FAT microSD?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

how to archive or make hidden files on a FAT microSD?

Postby friedtofu on Mon Jan 29, 2007 8:57 pm

how do i do this?

i asked some slackware user and he replied "chmod +ah" or something, using a hacked chmod...

is there any other way? :) and if not, where can i find this script/file? ...
friedtofu
Level 2
Level 2
 
Posts: 50
Joined: Wed Nov 22, 2006 9:36 pm

Linux Mint is funded by ads and donations.
 

Postby clem on Tue Jan 30, 2007 8:18 am

hidden to whom? to Linux? or to external devices?
User avatar
clem
Level 15
Level 15
 
Posts: 5553
Joined: Wed Nov 15, 2006 8:34 am

Postby friedtofu on Tue Jan 30, 2007 6:29 pm

what i mean by hidden or archive is this...

in Windows, if you right click the file, under properties there are checkboxes, and among them are Hidden and Archive...

what i want to do is to make the file Archived under the Fat partition (on a microSD) so that the device i use will not see that folder, or ignore it...
friedtofu
Level 2
Level 2
 
Posts: 50
Joined: Wed Nov 22, 2006 9:36 pm

Postby scorp123 on Tue Jan 30, 2007 6:56 pm

You want the mtools package ... Contained in that package is a program called mattrib ... It will allow your Linux system to manipulate DOS file attributes. Please make sure you read the man page (man mattrib) and the documentation, e.g. here: http://www.mtools.linux.lu/

EDIT:
the man page of the mattrib command is also available online: http://www.linuxcommand.org/man_pages/mattrib1.html
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby friedtofu on Tue Jan 30, 2007 11:29 pm

anyways, i installed mtools package via apt-get install, and i try the option..

mattrib +a testing (its a folder)

in a terminal of the folder its located...

i get this error

"Can't open /dev/fd0: No such file or directory
Cannot initialize 'A:'"

how can i change that to something that i see under "/media/usbdisk" or "/dev/sdb1"?

(would symlink work? is there another workaround?)
friedtofu
Level 2
Level 2
 
Posts: 50
Joined: Wed Nov 22, 2006 9:36 pm

Postby scorp123 on Wed Jan 31, 2007 9:59 am

You did read the documentation, right? And you did edit the mtools config file as suggested there? ... :wink:
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby friedtofu on Wed Jan 31, 2007 8:34 pm

blah, i use mtools i get this...

# # Linux floppy drives
drive a: file="/dev/fd0" exclusive
drive b: file="/dev/fd1" exclusive

# # First SCSI hard disk partition
drive c: file="/dev/sda1"

# # First IDE hard disk partition
# drive c: file="/dev/hda1"

# # dosemu hdimage.
drive m: file="/var/lib/dosemu/hdimage.first" partition=1 offset=128

# # dosemu floppy image
drive n: file="/var/lib/dosemu/fdimage"

# # SCSI zip disk
# drive z: file="/dev/sda4"

# # uncomment the following line to display all file names in lower
# # case by default
# mtools_lower_case=1

... blah, i cant find anything that looks like a FAT for MicroSD...
... and i was reading the documentation, seems to be all about floppies...

when i change the SCSI or IDE configuration to "/dev/sdc1" it keeps giving me the error of

Cannot initialize "A:"

when i change the configuration under floppy in

drive a: file="/dev/fd0" exclusive

to

drive a: file="/dev/sdc1" exclusive

i get another error message when running mattrib...

~$ mattrib +a <file>

Total number of sectors not a multiple of sectors per track!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test


hm, dont seem to be getting this "mattrib [-p] [-a|+a] [-h|+h] [-r|+r] [-s|+s] msdosfile [msdosfiles...]" syntax


-----
ok, typing up all this seemed like a waste of time..
after adding "mtools_skip_check=1" it worked...

haha, thanks for the feedback scorp123
friedtofu
Level 2
Level 2
 
Posts: 50
Joined: Wed Nov 22, 2006 9:36 pm

Linux Mint is funded by ads and donations.
 

Return to Other topics

Who is online

Users browsing this forum: No registered users and 5 guests