LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-27-2011, 03:31 PM   #1
shahin_belly
LQ Newbie
 
Registered: Jan 2011
Location: algeria
Distribution: ubuntu 11.04
Posts: 19

Rep: Reputation: 0
change the mount point of flash drives


hi all , i've a small problem with my flash drive :
when i plug it it mount's like /dev/sdb
that's a litte odd ? i want to change it to something like /dev/sdb1 or just like that
i've opened the mtools.conf
and that's what's written within it:
# Debian default mtools.conf file.
# "info mtools" or "man mtools.conf" for more detail.

# # 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


and that's the output of the command sudo fdisk -l ;
Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x01180118

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sda2 2551 9730 57665672 f W95 Ext'd (LBA)
/dev/sda5 2551 8761 49889795+ 7 HPFS/NTFS
/dev/sda6 8762 9369 4882432 83 Linux
/dev/sda7 9370 9430 487424 82 Linux swap / Solaris
/dev/sda8 9430 9730 2403328 83 Linux

Disk /dev/sdb: 2020 MB, 2020904448 bytes
63 heads, 62 sectors/track, 1010 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


so you see ? the flash drive is recognized as /dev/sdb but i want to change that , please i need help ...............and thank's in advance
 
Old 08-27-2011, 03:51 PM   #2
allwimb
Member
 
Registered: Aug 2011
Posts: 47

Rep: Reputation: Disabled
/dev/sdb is the device file you cannot change it. It's not the mount point to check where it's mounted use the mount command. you'll get something like this :
/dev/sda3 on / type ext4 (rw,errors=remount-ro,commit=600)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,size=5242880,mode=755,size=5242880,mode=755)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=755,size=10%,mode=755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode=1777)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620,gid=5,mode=620)
/dev/sda6 on /home type ext4 (rw,commit=600)
debugfs on /sys/kernel/debug type debugfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

as you can see the first column says what device and after that where it is mounted.

spring logout

Last edited by allwimb; 12-12-2011 at 06:49 AM.
 
Old 08-27-2011, 03:58 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,965

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
I've owned several flash drives (Imation) that were not partitioned. They worked just fine and were mounted as /dev/sdx verses sdx1. The simplest fix would be to to add a partition but be sure to save any data since anything existing will be overwritten by the partition table and subsequent formating.
 
Old 08-27-2011, 07:59 PM   #4
shahin_belly
LQ Newbie
 
Registered: Jan 2011
Location: algeria
Distribution: ubuntu 11.04
Posts: 19

Original Poster
Rep: Reputation: 0
thank's guys , i've fixed the problem by using gparted tool ,i've changed the label to sdc1 , that fit my need ,
but can anyone please explain to us what's the meaning of what's written in mtools.conf file ??????
thanks to all
 
Old 08-27-2011, 10:03 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,367
Blog Entries: 12

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
man 5 mtools
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Usb flash drive mount point not found hewjr1000 Linux - Hardware 2 11-24-2010 08:32 AM
Create one mount point / partition from 2 drives sir-lancealot Linux - Server 1 08-11-2009 08:29 PM
Using ext4 with lvm and making multiple drives have /home mount point cjae Ubuntu 2 07-24-2009 03:06 PM
Help! I want one mount point to span several drives. hrp2171 Ubuntu 10 03-16-2007 02:46 PM
Can't change mount point. RoaCh Of DisCor SUSE / openSUSE 9 05-09-2005 02:51 PM


All times are GMT -5. The time now is 02: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration