Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-07-2004, 02:25 PM   #1
Registered: Jun 2004
Location: Ascension Island SAO
Distribution: FC2 2.6.8 Kernel, FreeBSD Unix, Gentoo 2004-2, WinXP SP2
Posts: 46

Rep: Reputation: 15
Lightbulb USB Harddrive - NTFS

First you plug your USB hard drive in your USB port. Then open a terminal. Type su, to switch to root user. Once you are root, do a fdisk -l to see where the hard drive is. It should produce results in form of /dev/hda1 /dev/hda2 /dev/hda3 (these are the lines of your primary harddisk. The USB harddrive should be /dev/sda1 or seomthing starting with sd. If it's not, just analyse what the harddrives in your computer are.

Like for example. You know you only have one harddisk in your computer. That one is certainly /dev/hdax (where x are the numbers of partitions). IF you have two harddisks in your computer, then the second one is /dev/hdbx and the third one is /dev/hdc..... and so on.

Just eliminate the ones you know are not the USB harddrive. But as I said, the USB harddrive should be like /dev/sda1. Also in the line of that, you see the filesystem type of that drive. In your case it should say FAT something.

SO remember, just switch to root, and "fdisk -l" to see where it is.

Once you know where it is, and what filesystem type it is, you just have to mount it. To do that, you first need to create a directory.

mkdir /myusbdisk (this creates the directory)

and then just mount it there with the command:

mount -t vfat /dev/sda1 /myusbdisk

This is true, if you find it at /dev/sda1 and it is FAT filesystem.

Then just navigate to the directory /myusbdisk and there is your data. If you want to make it auto mount, just edit your /etc/fstab file. Just follow the examples already in it. Copy a line and change it to suit your needs.
I want to thank "marghorp" for the excellent way he/she laid the mounting process out. It now make sense. I have only one problem; My USB Harddrive is NTFS, and I get a error that say my 2.66 kernel donesn't support it:

I think it said this "fs doesn't support NTFS". I am at work so it is hard to remember all of it, I can reproduce it if it is required to fix the problem.

Old 07-07-2004, 05:26 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
The Fedora kernel doesn't support ntfs. I think you can download the ntfs module as an .rpm, or recompile the kernel to enable support for ntfs (that's what I'd do). But then again, you can't write to an ntfs disk, so maybe it would be better to format it? I formatted mine ext3, but I think I'd do it reiserfs if there wasn't stuff on it now.


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
can't mount external usb ntfs harddrive etienne.navarro Mandriva 1 10-27-2005 01:54 PM
Can access Harddrive (NTFS) but not WRITE. barton Slackware 5 11-28-2004 10:04 PM
Macromedia on NTFS harddrive jwjody Linux - Software 5 06-05-2004 10:39 PM
I have an ntfs harddrive how can I ... lramos85 Linux - Newbie 8 10-22-2003 12:21 AM
Sharing a harddrive partition (NTFS) on Linux with Windows XP Home. squall14716 Linux - General 21 10-07-2003 06:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration