LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2016, 05:49 PM   #1
learningcomputerstuff
LQ Newbie
 
Registered: Jan 2016
Posts: 1

Rep: Reputation: Disabled
commands to use a flash drive are invalid


I'm using a Linux mint system.
All I want to do is plug in and use a flashdrive.
I was given these commands :
$ sudo fdisk -1 ( told Invalid )
$ sudo mkdir ( told an operant was needed )
I guessed on first command and changed -1 to -l. It worked!
Are the -whatevers the operants?
As you may surmise I know very little about Linux.
Cannot say at the moment I'm that pleased with it. I mean , all this typing just to use a flashdrive ?
Hopefully , your group may bring me around to the joys of Linux.
- oh , where will I find your response ? somewhere on this site or
do you e-mail me ?
thanks
 
Old 01-19-2016, 08:16 AM   #2
huffdad
Member
 
Registered: Jan 2006
Location: Missouri
Distribution: Slackware & LFS
Posts: 31

Rep: Reputation: 6
I've never used Mint, so if this information is wrong, I apologize. Often when a USB device is plugged in, it will be detected but not mounted. It may show up on the desktop. If it does, right click the icon for it and select "mount the device" or "open" or something similar. That's the easy way to get the job done.

If that doesn't work, you will have to do it the hard way, via typing in commands manually, as you were describing.
Code:
fdisk -l
is used to display partition information. If you do not specify a device then it will report the info of the main hard drive, and will not give you the info you need for mounting the USB. The device you are looking for would be something like /dev/usb0 or similar. Without being familiar with your setup, I don't know exactly which item you are looking for, but it will probably be found somewhere in the /dev directory.

As for 'mkdir', that probably isn't necessary. If you have a directory called /media or a directory called /mnt those are usually reserved for mounting devices. You can make a new directory with 'mkdir' if you want, though. It wouldn't hurt anything.

Once you know the device, the file type (all? flashdrives are of type fat32), and the mount point, then you could issue your mount command.
Code:
mount -t fat32 /dev/usb1 /media
After mounted, it could then be accessed in the /media directory. Please note these are very general instructions and will not be exactly what you need to type in for this to work. If you need more details, someone who has experience with Mint will have to help you.

As for loving or hating Linux, I'm glad I stuck with it. There is a learning curve, but in my opinion, it's rewarding.
 
Old 01-19-2016, 08:20 AM   #3
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
$ sudo mkdir

this command is to make a directory in the current working directory, you would need a name for the new directory (folder) after the command mkdir, for example:

[erik@topaz ~]$ mkdir testdir


BUT, this has nothing to do with mounting a USB drive...

Last edited by erik2282; 01-19-2016 at 08:22 AM.
 
Old 01-19-2016, 09:06 AM   #4
siery
Member
 
Registered: Dec 2015
Posts: 34

Rep: Reputation: Disabled
You need first to 'mount' your device to some directory at your disk.

If you don't know file system of you disk then simply use:
Code:
$ sudo mount -t auto /dev/device_partition /path_to_your_device
And remember, you are not mounting whole device just a partition. So for example 'sdb1' not 'sdb'.

To check how is your device called on your system you can use 'lsblk' command. Usually devices are mounted to 'mnt' directory. There you can create a directory for mounting point. If for example you are mounting sdb1, just write this command to create a directory for it:

Code:
$ sudo mkdir /mnt/sdb1
I hope it helps .

Last edited by siery; 01-19-2016 at 09:08 AM.
 
  


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
Cloning bootable USB flash drive onto larger flash drive - best method? cilbuper Linux - General 5 02-26-2014 09:51 AM
USB Flash Drive, write protect, and flash file system questions storkus Linux - Hardware 4 12-01-2008 04:32 AM
Terminal commands: how to create a directory in ext2 partition on flash drive gordon__1 Linux - Newbie 6 01-14-2008 10:57 PM
linux on flash drive, is this possible and flash writes, where?? lizzie_jianne Linux - General 1 01-04-2007 12:12 PM
LXer: EDGE Tech Corp Announces Portable Flash Drive With Muscle - the New 8GB DiskGO!(TM) Now Available; Swap and Go With This Secure Thumb-Sized Flash Drive LXer Syndicated Linux News 0 12-14-2005 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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