LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-14-2005, 09:39 PM   #1
sh4d0w13
Member
 
Registered: Feb 2005
Posts: 74

Rep: Reputation: 15
moutning external drive


I have been trying to mount an external scsi 200 gig drive that I have. I have tried mounting /dev/sda1 but that dir does not even seemt o exist. I am happy to give details if you ask for more in your post, but i have no idea what else to list. Thanks!
 
Old 08-14-2005, 10:29 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
What linux distribution / version you are running? Is the drive formatted and if so what filesystem?

/dev/sda1 is a device not a mount point.
You need to create a directory to mount the filesystem and then add an entry to the /etc/fstab file. Most distributions use either /mnt or /media directory for removable or other filesystems not associated with the OS but it isn't necessary.

To create a directory using console commands via root:
mkdir /mnt/scsi1 (replace /mnt to /media for your OS and scsi1 to your choosing.)

To mount via console command as root.
mount -t fs_type /dev/sda1 /mnt/scsi1 (replace /mnt to /media for your OS and scsi1 to to match above) (replace fs_type with filesystem of your drive i.e vfat for FAT32, ext2 etc.)

Add fstab entry example. exact options depend on filesystem type.
/dev/sda1 /mnt/scsi1 ext3 defaults 1 2

or for FAT32
/dev/sda1 /mnt/scsi1 vfat umask=000 0 0

See man pages for fstab and mount for additional info.
 
Old 08-15-2005, 03:13 AM   #3
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
well, if sda1 doesn't exist then it must be sda-something-else. To find out which sda(s) is picking up the external hard drive, run "fdisk -l /dev/sda"
 
Old 08-17-2005, 06:03 PM   #4
sh4d0w13
Member
 
Registered: Feb 2005
Posts: 74

Original Poster
Rep: Reputation: 15
no /dev/sda

there is no /dev/sda whatsoever. I cant tell if it is because it does not update itself or what. I am currently using debian sarge and it is a fat32 formatted external drive which I am trying to mount, so thanks for telling me how to add a fat32 to the fstab file, I just cant figure out what the mount point or whatever is (by that i mean the sda* that seems to not exist for some reason). Is it possible that I built a kernel without support for /dev/sda1 or something? Thanks though for all of your posts, and if I figure out how to mount it I will post it for everyone.
 
Old 08-17-2005, 09:23 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
WHen you plug in the device, use the dmesg command to see what the device is registered as. Once you see how it is registered, you can mount it.

Peace,
JimBass
 
Old 08-18-2005, 05:45 PM   #6
sh4d0w13
Member
 
Registered: Feb 2005
Posts: 74

Original Poster
Rep: Reputation: 15
dmesg?

I have used dmesg once or twice, but I was hoping how you might be able to give me a better explanation of how to use it locate which device the external hard drive is recognized as. Thanks!
 
Old 08-18-2005, 06:49 PM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You have to look through the entire output of dmesg. Look for the manufacturer of the device, or the device name. For example, when I plug in a motorola USB drive to my machine, I look at dmesg for motorola. You can make it easy by using pipes and grep, which searchs for whatever follows. In my case, dmesg |grep motorola does it, but you will have to see how your machine identifies your device. Usually, when you plug something in, wait about 10 seconds, then hit dmesg, and go all the way to the bottom. You should seem some info about your device, including what address your system assigned to it.

peace,
JimBass
 
  


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
Laptop DVD drive has died, will linux boot from an external drive? Stevetgn Linux - Newbie 2 05-14-2005 06:18 PM
IRQ conflict when external drive/flash-drive is put to use Nightfrost Linux - Hardware 0 10-22-2004 05:15 AM
Installing SuSE on an external FireWire drive: YaST can't edit partitions on drive kivimaki Linux - Distributions 2 09-13-2004 09:52 PM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 11:41 PM
Moutning a FAT32 Partition Bigun Linux - Newbie 2 08-31-2002 02:14 PM


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