LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-10-2005, 02:24 AM   #1
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
can't mount fs on external hard drive


I've never done this before, so I am probably doing something wrong here.

I am following this tutorial from linux questions. I'm using the same external hard drive that the tutorial uses, the 80gb maxtor IDE. Gentoo linux is my distribution.

/dev/sda exists in my computer, but there are no directories inside of it (as there are in the tutorial)

I added THIS line to my fstab
Code:
/dev/sda   /home/duck/bak  vfat   noauto,user,ro   0 0
after creating the /bak directory in my home directory

/bak is not mounted at boot
when I try to
Code:
mount -t vfat /dev/sda /home/duck/bak
the command line tells me that the fs type is wrong and that there is a "bad superblock on /dev/sda or there are too many mounted filesystems"

how do I get this hard drive mounted?
 
Old 06-10-2005, 05:00 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
run
fdsik -l /dev/sda

ths way u get to know the partitions then u can mount those partitons
u cannot mount sda but u need to mount different partitions in sda
 
Old 06-10-2005, 05:06 AM   #3
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
ok. fdisk -l /dev/sda yields

Code:
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9964    80035798+   b  W95 FAT32
 
Old 06-10-2005, 05:53 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
so u should try mounting
sda1 instaead of sda

mount -t vfat /dev/sda1 /home/duck/bak

will work for u

regards
 
Old 06-10-2005, 06:12 AM   #5
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
when I
"ls /dev/sda1" or "ls /dev/bak"
the directories are empty, yet I have files on them ( which I can see on window's partition)
 
Old 06-10-2005, 06:39 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,362

Rep: Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454
If the partition was mounted then your files are in the directory
/home/duck/bak
 
Old 06-10-2005, 06:51 AM   #7
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
when I write "ls /home/duck/bak" the command line returns nothing; blank. nada. zero. zip.

shouldn't the files that I saved to the hard drive appear there?

Last edited by fatblueduck; 06-10-2005 at 07:29 AM.
 
Old 06-10-2005, 07:26 AM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
what do u get for
running

df

regards
 
Old 06-10-2005, 07:30 AM   #9
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
df

Quote:

Filesystem.............1K-blocks.........Used.............Available........Use%......Mounted on
/dev/hda4..............26217272.........9530996......16686276.......37%........./
/dev/hda2..............54444................8061.............43572..............16%........./boot
none........................452228..............0....................452228............0%.........../dev/shm

Last edited by fatblueduck; 06-10-2005 at 07:33 AM.
 
Old 06-10-2005, 08:01 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,362

Rep: Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454Reputation: 5454
The output indicates that sda1 is not mounted.
 
Old 06-10-2005, 09:41 AM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by fatblueduck
df
yes u need to mount ur sda1 as i mentioned that in my last post

mount -t vfat /dev/sda1 /home/duck/bak


regards
 
Old 06-10-2005, 03:03 PM   #12
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
thank you. that did the trick.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to RH9 please help me to mount? a external usb hard drive ginda Linux - Newbie 7 05-29-2006 07:11 PM
How to mount external USB hard drive? zyzyis Linux - Newbie 6 02-01-2006 09:37 PM
Can't mount external hard drive...HELP! Stevetgn Linux - Hardware 4 10-18-2005 07:38 PM
how to mount a external hard drive in ext3 format? kuertensun Linux - Newbie 12 09-06-2005 06:51 PM
external hard drive mount omarbohsali Linux - Newbie 4 04-27-2005 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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