LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-18-2005, 10:12 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
How to get Ubuntu to read Windows/USB drive?


I am new to Ubuntu, but how do you get Ubuntu to see the Windows partition and a USB memory stick? With Mandriva and SuSE, it just automatically mounted it for me and all I had to do was
Code:
cd /mnt/windows
or

[code]
cd /mnt/usb
[code]

I tried to mount it manually but it did not work. I'm guessing I have to edit my /etc/fstab file? What do I do in there?
 
Old 08-18-2005, 10:44 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Depends a bit on the filesystem that you're using on windows and on the usb stick. But, assuming NTFS for the former, and VFAT for the latter, you could add two entries to /etc/fstab as follows
Code:
/dev/hda2     /mnt/windows      ntfs    ro,noauto,user,umask=0022     0     0
/dev/sda      /mnt/usbdrive     vfat    rw,user,noauto,umask=0000     0     0
Obviously, you will have to be root to edit this file. Then, after creating the two mount points (i.e. the two directories at /mnt/windows and /mnt/usbdrive) you should just then be able to issue "mount /mnt/usbdrive" to mount your usb stick, and the equivalent for windows.

There is a catch, of course. You need to have both the filesystem and the partition correct, in both cases. The easiest way to do this is to issue fdisk -l /dev/hdx (changing the x to whichever drive you have your windows on), and fdisk -l /dev/sd* for the usbstick (after inserting it). The reason for this is that often there is a small 'utility' partition at the start of some drives - unless you've formatted them since buying them.

Good luck !

Cheers,

mj
 
Old 08-19-2005, 11:38 AM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Thank you mj! This was the information I was looking for.
 
Old 08-19-2005, 04:49 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
No worries

Cheers.
 
Old 08-20-2005, 12:05 PM   #5
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
Ubuntu can also mount automatically.

Look in Fstab if it did and where.

In my case it mounted a dos drive under /dos

I have a 4GB stick, If I connect it before starting it appears on the desktop.

To my opinion there is a hotplug mounting mechanism.

CloudBuilder
 
Old 08-21-2005, 01:17 AM   #6
rejser
Member
 
Registered: Jan 2004
Distribution: Ubuntu dapper/breezy
Posts: 102

Rep: Reputation: 15
there is a hotplug mechanism for usb, but not for the win-drive.
the usb would aotu-mount in /media/*name of device*
my san-disk mp3 player mounts automaticly as
/media/san512
 
  


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
nagging problem --sharing USB drive with Windows for read/write 1kyle SUSE / openSUSE 2 09-25-2005 03:35 AM
9.3(Here's how to Read Windows NTFS files on ext USB drive as user 1kyle SUSE / openSUSE 0 09-01-2005 03:59 AM
Ubuntu on USB drive? ampfp@yahoo.com Ubuntu 2 08-17-2005 06:58 PM
USB Hard drive in Ubuntu NeoChaosX Linux - Hardware 1 06-26-2005 11:37 AM
New Ubuntu install hasn't mounted windows hd or usb drive trempel Ubuntu 7 05-26-2005 04:58 PM

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

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