LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-02-2016, 05:40 PM   #1
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Formating a USB Stick to Fat32 so that it can have folders created, files added and read by Windows


I have a 4G stick that has been used for installation media. This has always been done by formatting to fat32(LBA) and then simply using dd to copy the ISO file to the stick.

Now I need to transfer some data to a Windows system. Have the stick formated, my user owns the device (/dev/sde), my user owns the single partion (/dev/sde1). I can mount this in a directory in my /home.

I can open the empty stick in Thunar, use menu to select "Create Folder". Permission is denied.

Can anyone give me some clue as to what I am doing wrong?
 
Old 08-02-2016, 05:58 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Original Poster
Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
To add to that a bit I can also attempt, with better output, to make the directory in the cli;
Code:
tom@stoned:~$ mkdir /home/tom/Mount/stuff
mkdir: cannot create directory ‘/home/tom/Mount/stuff’: Permission denied
Dismounting the stick from ~/Mount adn trying that command again simply in that directory works fine;
Code:
tom@stoned:~$ mkdir /home/tom/Mount/stuff
tom@stoned:~$
as one would expect.

As an aside the @stoned in full would read @stoned.lizard. I also have lounge lizard on here. Everyone needs pets.
 
Old 08-02-2016, 09:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Guess the mount command or ls command may be of some use.

Not sure if it is an oddity of hotplug or usb timings. Guess it could happen.

When you unmount and unplug and the replug in doesn't it automount?


"This has always been done by formatting to fat32(LBA) and then simply using dd to copy the ISO file to the stick"
Format really not needed. When you dd you destroy all dev/sdx info.

I tend to like ntfs but that has nothing to do with this issue.
 
Old 08-03-2016, 01:18 AM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Original Poster
Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by jefro View Post
Guess the mount command or ls command may be of some use.

Not sure if it is an oddity of hotplug or usb timings. Guess it could happen.

When you unmount and unplug and the replug in doesn't it automount?


"This has always been done by formatting to fat32(LBA) and then simply using dd to copy the ISO file to the stick"
Format really not needed. When you dd you destroy all dev/sdx info.

I tend to like ntfs but that has nothing to do with this issue.
I am running testing on this install and have actually somehow screwed automount. But it will mount if I switch over to Lounge Lizard (Sid). Makes no difference in dealing with the stick as far as creating a directory or adding a text file.

If I formatted to ntfs would the stick be readable by a Windows 7 install?

Pretty sure I tried that once and it didn't work. I could well be wrong. I have not run Win since 08 when we switched. I many times don't even format sticks to fat when cleaning for another Gnu/Linux ISO.

Yes I am a serial multi booter probably in need of a 12 step program.

But I don't do windows. Except for data recovery jobs for Windows victims.

If ntfs will work I would actually prefer it. Crappy file system but it is, at least compared to fat, a modern fs.

Actually I have repaired a number of Win installs. Do it the same way we repaired ours. Save data, format hdd, install Gnu/Linux. People never have a problem with Win ever again.

This situation is actually embarrassing. I really have as more years of experience running on fat than any Linux fs. Started with MSDos. But never used a usb stick on either it, was a bit early for that, or Windows because I just didn't use them. A bit late on the uptake of sticks. Grumpy geezers can be that way at times. Have several now but none formated to fat.

Security issue. Most boxes are Win. Loose a stick and no one in this area will ever read it. County population density of 0.5 people per sq/mile. 6 known, to me, Gnu/Linux users including me. 3 others are family members including my 80 year old Dreaded Mother in Law. Other 2 are people I have personally perverted.

One of them dual boots. Am working on that.

But need to use IE for a training session, believe it or not (US Fed Gov department), on safe data handling. Requires IE to take. For a security lesson. For a musician there should be a Country song in that. Will accept IE 8. Now there is a secure Web Browser if there ever was one.

In 10 years of running Win I opened IE a max of 6 times. To download the newest Netscape for a fresh re install of Win. Did that because such radical Win hating publications such as PCWorld, in 1998, said running IE was for idiots.

Fast forward 18 years and I need IE for a data security lesson.

Wow.
 
Old 08-03-2016, 11:43 AM   #5
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,130
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
If your mounting the stick manually, you'll need to add some mount options

Code:
mount -t vfat -o uid=1000,gid=1000,umask=0000 /source /destination
Assuming your user ID is 1000

Last edited by replica9000; 08-03-2016 at 11:46 AM.
 
Old 08-03-2016, 12:28 PM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Original Poster
Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by replica9000 View Post
If your mounting the stick manually, you'll need to add some mount options

Code:
mount -t vfat -o uid=1000,gid=1000,umask=0000 /source /destination
Assuming your user ID is 1000
Thanks a bunch.

Worked like magic.

Always something new to learn. Gnu/Linux is really fun.

The more I learn the more my awareness of my ignorance increases. So I suppose this latest tidbit increases my ignorance some more.

Appears that I am going to have to spend more time with man mount.

Hopefully have a chance to get to the Win box soon. Will see if this thing will work there. Will report results.
 
Old 08-03-2016, 02:07 PM   #7
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,130
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by widget View Post
Thanks a bunch.

Worked like magic.

Always something new to learn. Gnu/Linux is really fun.

The more I learn the more my awareness of my ignorance increases. So I suppose this latest tidbit increases my ignorance some more.

Appears that I am going to have to spend more time with man mount.

Hopefully have a chance to get to the Win box soon. Will see if this thing will work there. Will report results.
I've been using Linux as my primary OS for over 10 years now, and I still learn some things here and there that are pretty basic.
 
Old 08-17-2016, 10:58 PM   #8
kiyop
Member
 
Registered: Jun 2015
Distribution: Debian, Arch
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by replica9000 View Post
Code:
mount -t vfat -o uid=1000,gid=1000,umask=0000 /source /destination
Assuming your user ID is 1000
It must work. But Why do you let all users read, write and execute, even if you use "uid=1000"?
Code:
man mount
 
  


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
How To Add Folders/Files To ISO For USB Stick? Ned Radd Linux - Software 8 06-09-2016 05:55 PM
Formating FAT32, but linux created FAT32 is not like win created FAT32?? Difference? boki15 Linux - Newbie 19 07-21-2010 04:41 AM
Undeleting files from a USB stick, FAT32 Josh000 Linux - Software 5 05-01-2010 03:16 PM
Recover files after formating partition in fat32 immortaltechnique Linux - Software 1 12-21-2009 02:53 AM
Zipslack wont read files created in windows? Stuartb21 Slackware 7 11-30-2003 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:27 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