LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-07-2006, 01:40 PM   #1
SMGEG
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
Can't mount /dev/hda1


I recently had to re-install Linux and had this particular disk working fine before. But for some reason, I can't mount it. I am not positive of the file system type I had created prior (it was a very long time ago) but I think it is ext3. My /etc/ fstab looks like the following:

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/hda1 /storage1 ext3 defaults 1 1


# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
none /dev/shm tmpfs nodev,nosuid,noexec

I have several other drives I haven't tried to mount yet...but I know Linux does see the drives based on the output from fdisk -l:

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 19457 156288321 83 Linux

Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 269 1959930 82 Linux swap / Solaris
/dev/sda3 270 48641 388548090 83 Linux

Disk /dev/hde: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hde1 1 30401 244196001 83 Linux

Disk /dev/hdg: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdg1 * 1 24321 195358401 a5 FreeBSD

Disk /dev/hdh: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdh1 * 1 9729 78148161 a5 FreeBSD

Not sure why those two drives are showing up as FreeBSD. That might be another thread

But when I try to mount /dev/hda1:
mount: /dev/hda1 already mounted or /storage1 busy

Also, do any of you know how to tell what file system is on a partition? Thank you for your help! It is much appreciated. Never had this issue before.
 
Old 05-07-2006, 01:51 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
How do you know it's not mounted? Can you cd to /storage1?
 
Old 05-07-2006, 02:33 PM   #3
SMGEG
LQ Newbie
 
Registered: May 2006
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you for the reply. I can change to the directory, but there is no data listed. Also, when i issue the mount -l command I get:

/dev/sda3 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)

So it is not shown as being mounted.

<edit> As a update to my first post, I realized by mounting a partition, even when the file system type is not known passing the -l option to mount will list the file system type. For whatever reason, I still can't get /dev/hda1 mounted.

Last edited by SMGEG; 05-07-2006 at 03:08 PM.
 
Old 05-07-2006, 03:11 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Try cfdisk - it'll tell you the partition type(s).
 
Old 05-07-2006, 03:16 PM   #5
SMGEG
LQ Newbie
 
Registered: May 2006
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks. Here is the output of cfdisk:

cfdisk 2.12r

Disk Drive: /dev/hda1
Size: 160039240704 bytes, 160.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 19456

Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
Pri/Log Free Space 160031.05
 
Old 05-07-2006, 05:07 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
What are the error messages if any when you try to mount the filesystem from the command line. Are you positive it is ext3?
 
Old 05-07-2006, 05:38 PM   #7
SMGEG
LQ Newbie
 
Registered: May 2006
Posts: 20

Original Poster
Rep: Reputation: 0
I get the following:

mount: /dev/hda1 already mounted or /storage1 busy

I even went so far as to just toast my data and make a new reiserfs file system on the partition. I was able to do this without any problems. However I still can't mount it. Get the same message. So then I try to unmount it:

umount: /dev/hda1: not mounted

So I try to mount again:

# mount /dev/hda1 /storage1
mount: /dev/hda1 already mounted or /storage1 busy

Last edited by SMGEG; 05-07-2006 at 05:43 PM.
 
Old 05-07-2006, 06:12 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Make sure your not accessing /storage1 when trying to mount /dev/hda1. Also type in the entire mount command just to make sure there are no errors in your /etc/fstab file i.e.
mount -t reiserfs /dev/hda1 /storage1
 
Old 05-08-2006, 03:15 AM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Maybe make another directory and try to mount it there.
 
Old 05-08-2006, 11:27 AM   #10
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
hda1 is the whole drive. If it's unformatted (which I suspect it is) it may explain why it doesn't show up in mount -l. I also suspect it's automounted at boot (might be worth checking messages and/or syslog) because it's in fstab as 1 1 which should cause automount.

If you can't resolve this maybe you should go to distrowatch.com and try to find a good forensics live CD and maybe you can unravel this mystery.

Last edited by Randux; 05-08-2006 at 11:29 AM.
 
Old 05-08-2006, 12:41 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
FYI:
The 1 1 in /etc/fstab is for dump and fsck.
defaults mount options:
Use default options: rw, suid, dev, exec, auto, nouser, and async.
 
Old 05-08-2006, 01:09 PM   #12
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Thanks Michael, I checked my fstab and misunderstood something.
 
Old 05-08-2006, 04:31 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Let's have a look at the output from the following
Code:
dd if=/dev/hda bs=1 skip=446 count=66 | hexdump
That'll tell us if a partition actually defined (successfully).

Edit: Added pipe to hexdump.

Last edited by syg00; 05-08-2006 at 04:34 PM.
 
Old 05-08-2006, 06:26 PM   #14
SMGEG
LQ Newbie
 
Registered: May 2006
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Randux
Maybe make another directory and try to mount it there.
Tried that...no luck there. Thanks though.
 
Old 05-08-2006, 06:27 PM   #15
SMGEG
LQ Newbie
 
Registered: May 2006
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk
Make sure your not accessing /storage1 when trying to mount /dev/hda1. Also type in the entire mount command just to make sure there are no errors in your /etc/fstab file i.e.
mount -t reiserfs /dev/hda1 /storage1
Appreciate the suggestion. To reduce the risk of problems with /etc/fstab, I have removed all mention from it and rebooted and tried to mount but again it gives me the same error.
 
  


Reply



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
-set mount point of /dev/hda1 to/windows /C spoonbender Linux - Newbie 3 08-07-2006 12:44 AM
mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab timalan SUSE / openSUSE 24 08-20-2005 09:41 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM
can't mount /dev/hda1 (my WindowsXP partition) ZoeNStC Linux - General 3 09-18-2004 11:40 AM
My mount point of /dev/hda1(win98) is /mnt/c,but now it says input/output error whepin Linux - General 2 12-20-2001 12:41 PM

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

All times are GMT -5. The time now is 11:19 PM.

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