LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-20-2007, 10:04 AM   #1
gsuresh_01
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Smile How to mount usb thumb drive second partition


Hi,

Iam facing a problem with USB thumbdrive. I wanted to know how do i access the second partition of my USB 4GB pen drive.

If i have a single continuous partition in the usb stick, i can mount using

"mount /dev/sda /mnt/jet"
where sda is the detected device name for my usb stick.

as far as i have single partitioned usb stick this works ok.

when i formatted my usb stick into two partitions of size 2GB each,
using windows format tool. I have now two partitions on the stick.

now when i connect the usb stick to linux pc and mount it i can only
view the first partition of 2GB. I donot know how to mount or access the second partition of the usb stick.

Hope i am clear what i want to convey!


Any help is appreciated.

Suresh Guduru
 
Old 12-20-2007, 11:29 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
mkdir /mnt/sda2
mount /dev/sda2 /mnt/sda2

The first command to to create a mounting point. You can make a directory like /mmt/mount_here_please and mount any device on it. I use /mnt/sda2 because it tells us what it is from. You always mount a device on a point in the filing system tree, as though hanging a decoration on a christmas tree.

You mount a drive because you want to read or write files inside, right? This means a drive can only be mounted if it has a filing system or formatted previously.

Last edited by saikee; 12-20-2007 at 11:33 AM.
 
Old 12-20-2007, 11:40 AM   #3
vstoykov
LQ Newbie
 
Registered: Dec 2007
Location: Bulgaria
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
First partition of your USB drive is /dev/sda1. Second partition maybe is /dev/sda5 (or /dev/sda2?).

Append this to /etc/fstab:
Code:
/dev/sda1 /media/usb_sda1 vfat auto,users,noatime,async,iocharset=utf8,codepage=855,fmask=111,dmask=000 0 0
/dev/sda5 /media/usb_sda5 vfat auto,users,noatime,async,iocharset=utf8,codepage=855,fmask=111,dmask=000 0 0
make directory and mount:
Code:
# mkdir /media/usb_sda1
# mkdir /media/usb_sda5
# mount /media/usb_sda1
# mount /media/usb_sda5
Options „noatime“ and „async“ will extend memory life.

Before removing memory you must type:
Code:
# umount /media/usb_sda1
# umount /media/usb_sda5
If you prefer not edit /etc/fstab:
Code:
# mount /dev/sda1 /media/usb_sda1 -o noatime,async
# mount /dev/sda5 /media/usb_sda5 -o noatime,async

Last edited by vstoykov; 12-20-2007 at 11:45 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
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 12:09 PM
how to mount USB thumb drive in Knoppix? bezdomny Linux - Newbie 3 03-31-2009 08:34 PM
Mount usb thumb drive in my laptop DanielTan Linux - General 2 12-20-2007 11:44 AM
How do you mount a usb thumb drive? stakhous Linux - Hardware 16 03-04-2006 03:41 AM
USB Thumb Drive Will Not Mount Unless Present During Boot. IamI Slackware 21 02-21-2006 02:40 PM

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

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