LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-30-2004, 07:18 PM   #1
Kyral Retsam
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 38

Rep: Reputation: 15
Help mounting a USB HD


Okay, this is a stupid question, but what do I add to my fstab so I can mount my USB HD? Linux detects both its partitions (One NTFS, the other Ext2) on /dev/sda1 and /dev/sda2, but when I type "mount /dev/sda2" I get "mount: can't find /dev/sda2 in /etc/fstab or /etc/mtab" but I don't know what to add to my fstab...
 
Old 07-30-2004, 09:00 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You don't need to put an entry in fstab if you tell the kernel where to mount it. If you make a folder /mnt/usb2 you can mount it there.
mount /dev/sda2 /mnt/usb2
if you want to automatically mount it when you reboot you could put something like this in /etc/fstab, but you might get an error if it's not plugged in when you reboot.
/dev/sda1 /mnt/usb1 ntfs umask=0 0 0
/dev/sda2 /mnt/usb2 ext2 defaults 1 1
I use the supermount patch to allow users to mount removable media. All my USB things (camera, mp3 player, portable hard disk) get mounted on /dev/sda1 so this entry in /etc/fstab catches them all
none /mnt/mp3 supermount dev=/dev/sda1,fs=auto,--, 0 0
 
  


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
usb controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 02:18 PM
Mounting USB fireedo Slackware 1 08-08-2005 12:40 PM
mounting USB issey Linux - Newbie 3 03-26-2005 12:58 PM
Mounting a USB rahul123 Red Hat 5 11-03-2004 06:02 AM
Mounting my USB external drive, USB 1.1 Devillion Linux - Hardware 4 01-04-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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