LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-21-2009, 07:06 PM   #16
elsheepo
Member
 
Registered: Feb 2008
Distribution: Slackware -current
Posts: 77

Rep: Reputation: 18

Code:
sudo mount -a /dev/sda /mnt/externalHDD
okay use that and it should mount the volume. once its mounted
Code:
cd /mnt/externalHDD/
to view its contents.
To not have to do this all again, edit your /etc/fstab
Code:
sudo pico /etc/fstab
add this line to the bottom
Code:
/dev/sda /mnt/externalHDD ntfs acl,user_xattr 1 2
replace ntfs with w/e the file system is on the HDD

Last edited by elsheepo; 03-21-2009 at 07:12 PM.
 
Old 03-21-2009, 09:40 PM   #17
Hardcor3
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Nope, I keep getting:
Code:
mount: you must specify a filesystem type

Last edited by Hardcor3; 03-21-2009 at 09:41 PM. Reason: forgot a code tag
 
Old 03-21-2009, 10:31 PM   #18
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
try auto as file system type..

Last edited by stratotak; 03-21-2009 at 10:39 PM.
 
Old 03-21-2009, 10:58 PM   #19
Hardcor3
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I can't get past the

Code:
sudo mount -a /dev/sda /mnt/externalHDD
to even put in a filesystem
 
Old 03-22-2009, 12:12 AM   #20
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
mount -a auto /dev/sda /mnt/externalHDD
 
Old 03-22-2009, 12:44 AM   #21
Hardcor3
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Again, specify filesystem type
 
Old 03-22-2009, 04:00 AM   #22
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
what file system do you have on there?Is this a brand new drive that has never been formated?If it already has been formated with a file system..what did you use?
 
Old 03-22-2009, 07:49 AM   #23
Hardcor3
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I believe it's ext, but don't quote me on that.
 
Old 03-22-2009, 09:46 AM   #24
elsheepo
Member
 
Registered: Feb 2008
Distribution: Slackware -current
Posts: 77

Rep: Reputation: 18
here try this
Code:
sudo mount /dev/sda1/ /mnt/externalHDD

Last edited by elsheepo; 03-22-2009 at 10:13 AM.
 
Old 03-22-2009, 10:04 AM   #25
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
A few things: First, install pmount and then you can mount drives as a regular user without messing with /etc/fstab. Second, on a default Debian installation, sudo is not enabled. (Debian is not Ubuntu. They don't share that default behavior.) Third, I think the problem is that you are trying to mount /dev/sda, but you need a more specific label.

In my experience, entering pmount /dev/sdb1 (where sdb1 is whatever the actual mount label is) should automagically pick up the filetype for a normal usb drive.

If you're unsure what the exact mount label is, here's an easy trick. Plug the device in, and then give it a minute. Open a terminal and enter dmesg. At the bottom of the output you get, you should see a description of how the kernel reacted to the device. Here's an example from my laptop just now:
Code:
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Mini      0.1  PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 1000944 512-byte hardware sectors: (512 MB/488 MiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 1000944 512-byte hardware sectors: (512 MB/488 MiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg2 type 0
If you filter through that, the key bit is sdb: sdb1. That tells me what label to feed to pmount. Hope this helps.

Last edited by Telemachos; 03-22-2009 at 10:07 AM.
 
Old 03-22-2009, 10:17 AM   #26
Hardcor3
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Original Poster
Rep: Reputation: 0
My dmesg:
Code:
[100208.688786] scsi3 : SCSI emulation for USB Mass Storage devices
[100208.697211] usb 2-1: New USB device found, idVendor=1058, idProduct=1100
[100208.697226] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[100208.697231] usb 2-1: Product: My Book         
[100208.697235] usb 2-1: Manufacturer: Western Digital 
[100208.697239] usb 2-1: SerialNumber: 57442D574341554830333031343331
[100208.698009] usb-storage: device found at 6
[100208.698021] usb-storage: waiting for device to settle before scanning
[100213.697526] usb-storage: device scan complete
[100213.700419] scsi 3:0:0:0: Direct-Access     WD       5000AAV External 1.75 PQ: 0 ANSI: 4
[100213.720140] sd 3:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB)
[100213.722472] sd 3:0:0:0: [sda] Write Protect is off
[100213.722484] sd 3:0:0:0: [sda] Mode Sense: 23 00 00 00
[100213.722489] sd 3:0:0:0: [sda] Assuming drive cache: write through
[100213.727446] sd 3:0:0:0: [sda] 976773168 512-byte hardware sectors (500108 MB)
[100213.730456] sd 3:0:0:0: [sda] Write Protect is off
[100213.730468] sd 3:0:0:0: [sda] Mode Sense: 23 00 00 00
[100213.730474] sd 3:0:0:0: [sda] Assuming drive cache: write through
[100213.730485]  sda: sda1 sda2 < sda5 >
[100213.769828] sd 3:0:0:0: [sda] Attached SCSI disk
Running pmount /dev/sda5
Comes back with:
Code:
Error: invalid file system name 'swap'
mount: wrong fs type, bad option, bad superblock on /dev/sda5,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

mount: wrong fs type, bad option, bad superblock on /dev/sda5,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
I get the feeling we're getting close.
 
Old 03-22-2009, 01:32 PM   #27
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Did you try pmount /dev/sda1?
 
Old 03-22-2009, 01:59 PM   #28
Hardcor3
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Error: invalid file system name 'swap'
 
Old 03-22-2009, 02:26 PM   #29
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Quote:
Originally Posted by Hardcor3 View Post
Error: invalid file system name 'swap'
Damn. And I'm assuming you tried /dev/sda2 as well?

This is a shot in the dark, but are you sure that the external hard drive is a properly formatted drive? (That is, can you plug it in just fine on other machines?)
 
Old 03-22-2009, 02:40 PM   #30
Hardcor3
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Original Poster
Rep: Reputation: 0
How do I format it?
 
  


Reply

Tags
debian, external, hdd, usb


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
Is there a DVD that can read usb flash drives/external HDD? swalker23 General 2 11-21-2008 10:58 PM
External ubuntu install on external USB HDD th3_tr00p3r Linux - Newbie 1 05-11-2008 02:56 PM
USB External HDD Read Only!!! Mandriva 2005 LE ivancauso Linux - Newbie 4 12-01-2005 05:13 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
Installing Debian on External HDD h0meb0y25 Debian 2 04-29-2004 12:15 PM


All times are GMT -5. The time now is 03:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration