LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-13-2011, 01:25 PM   #1
sin667
Member
 
Registered: Jul 2011
Posts: 59

Rep: Reputation: Disabled
Mounting USB flash drive in Mandrake 9.2


I am having issues with networking on my mandrake box, though everything appears to be configured properly.

So a workaround I have found that works is to burn my files to a disk and transferring them to that machine that way. This is time consuming and wasteful. I would prefer to copy them to a flash drive, and not waste the disks as I send multiple files a week over that that box.

I have tried something I found on another forum:
Code:
[imdeemvp@localhost imdeemvp]$ cd /mnt/ <-as user cd yourself to the mnt folder and become root to create directory
[imdeemvp@localhost mnt]$ su
Password:
[root@localhost mnt]# mkdir usbflash <- this created a directory in the mnt folder

[root@localhost mnt]# ls /mnt/ <-this command listed all my directories the mnt folder
cdrom cdrom1 floppy usbflash

[root@localhost mnt]# mount /dev/sda1 /mnt/usbflash <-this is the command to mount flash card reader
When I run the command "mount /dev/sda1 /mnt/usbflash" I get a error on the return:

Code:
/dev/sda1 looks like swapspace - not mounted
mount: you must specify the filesystem type
Not sure what that means as I am not too versed in linux, but I would assume my flash drive is not located at sda1, and unsure how to check that. The only other usb device I have connected is my mouse.

Any help would be great. I know this is a forum for Mandriva, but it seems the closest to my mandrake 9.2.

Thanks.

Last edited by sin667; 09-14-2011 at 10:16 AM.
 
Old 09-13-2011, 01:55 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The original distribution name was called Mandrake and was changed to Mandriva due to legal issues.

Mandrake 9.2 being release in 2003 is a bit on the old side. Are you using IDE(PATA), SCSI or SATA drives?

Look at the output of the command with the USB drive connected
fdisk -l (that is a small L and you must be root)

You should see a list of all disks even the flash drive and then you can determine the device ID.

The flash drive is probably FAT32 and so will be mounted:
mount -t vfat /dev/sdxy /mnt/usbflash
 
Old 09-13-2011, 02:06 PM   #3
sin667
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
The original distribution name was called Mandrake and was changed to Mandriva due to legal issues.

Mandrake 9.2 being release in 2003 is a bit on the old side. Are you using IDE(PATA), SCSI or SATA drives?
Yea, sadly it's the only distro I can use with this scsi printer, and ancient rip software.

Quote:
Originally Posted by michaelk View Post
Look at the output of the command with the USB drive connected
fdisk -l (that is a small L and you must be root)

You should see a list of all disks even the flash drive and then you can determine the device ID.
This only shows my 2 hard drives, one scsi, one ide.

Quote:
Originally Posted by michaelk View Post
The flash drive is probably FAT32 and so will be mounted:
mount -t vfat /dev/sdxy /mnt/usbflash
It is fat32, i just formatted it with my PC. That command returned an error

Code:
 mount: special device /dev/sdxy does not exist
 
Old 09-13-2011, 02:24 PM   #4
sin667
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Whoops, my bad it was not plugged in when I ran the fdisk -l.

It showed up under dev/scsi/host3/bus()/target()/lun()/part1

Not sure why it's under scsi...
 
Old 09-13-2011, 02:41 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
sdxy where x = a-z and y from 1-16. Look at the output of the fdisk command to get the exact numbers.

What is the output for the command.
ls -l /dev/scsi/host3/bus()/target()/lun()/part1

You should be able to mount the device as
mount -t vfat /dev/scsi/host3/bus()/target()/lun()/part1 /mnt/usbflash
 
1 members found this post helpful.
Old 09-14-2011, 10:16 AM   #6
sin667
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
You should be able to mount the device as
mount /dev/scsi/host3/bus0/target0/lun0/part1 /mnt/usbflash

This worked. Thanks. I would assume I just use the umount command to remove the drive.
 
Old 09-14-2011, 10:20 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Either
umount /mnt/usbflash
or
umount /dev/scsi/host3/bus0/target0/lun0/part1
 
1 members found this post helpful.
  


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
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 08:58 AM
Mounting a USB Flash drive carlgulliver100 Linux - Software 2 11-13-2006 11:51 AM
mounting a usb flash drive chodeman07 Linux - Hardware 1 02-09-2006 08:59 AM
USB Flash Drive not Mounting Kentara Linux - Hardware 1 03-12-2005 08:59 AM
Mounting a USB Flash Drive Garibaldi3489 Slackware 3 01-04-2005 09:09 PM

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

All times are GMT -5. The time now is 03:02 PM.

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