LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-16-2006, 11:08 PM   #1
Pablo88
LQ Newbie
 
Registered: Feb 2006
Location: Argentina
Distribution: Debian GNU/Linux 9.7 (stretch) x86_64
Posts: 7

Rep: Reputation: 0
partitions mount problem


Hi!
I have two partitions on my hard disk. Both are fat 32 formated.
The problem is that I can't mount them. I get this error:
Code:
root:/mnt# mount /mnt/hda1
mount: can't find /mnt/hda1 in /etc/fstab or /etc/mtab
Is something wrong?

Any help appreciated.
 
Old 02-16-2006, 11:27 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I suspect that they're not listed in /etc/fstab. Post your /etc/fstab and also the output of fdisk -l
 
Old 02-16-2006, 11:32 PM   #3
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
Are the device nodes stored in /mnt? I think they are in /dev

Here's what I would do.

# mkdir /mnt/hda1
# mount -t vfat /dev/hda1 /mnt/hda1


If that works, then add a line to /etc/fstab as root...


/dev/hda1 /mnt/hda1 vfat user,defaults 0 0


First column tells the system the device to be mounted. Second tells where. Third tells FS type. Fourth tells options, in this case, users will be able to control it, and it will have default properties. And I honestly don't know what the 5th and 6th columns do. I just know that they are needed.

Hope this helps

Last edited by johndoe0028; 02-16-2006 at 11:39 PM. Reason: Provide more info
 
Old 02-17-2006, 08:13 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"Sorry for the bad English. I'm Argentinian"

Your english is better than many who have it as their first language.......

Summary of advice already given:
"mount" is normally in the form:
mount <partition> <mountpoint>
You can delete one of these IF the desired mapping is already in fstab or mtab (I'm fuzzy on the latter since I thought mtab was supposed to be the list of what was already mounted...)
This will help fill in the details..
man mount
man fstab
 
Old 02-17-2006, 09:36 AM   #5
Pablo88
LQ Newbie
 
Registered: Feb 2006
Location: Argentina
Distribution: Debian GNU/Linux 9.7 (stretch) x86_64
Posts: 7

Original Poster
Rep: Reputation: 0
This one is fdisk -l:

Code:
Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot   Start     End    Blocks   Id System
/dev/hda1  *       1     650    5221093+  b W95 FAT32
/dev/hda2        651    2434   14329980   f W95 Ext'd(LBA)
/dev/hda5        651    2434   14329948+  b W95 FAT32
This one is fstab:

Code:
/dev/fd2        /           umsdos  defaults         0 0
/root/swapfile  swap        swap    defaults         0 0
/dev/hdb        /mnt/cdrom  iso9660 noauto,owner,ro  0 0
/dev/fd0        /mnt/floppy auto    noauto,owner     0 0
devpts          /dev/pts    devpts  gid=5,mode=620   0 0
proc            /proc       proc    defaults         0 0
Quote:
Are the device nodes stored in /mnt? I think they are in /dev

Here's what I would do.

# mkdir /mnt/hda1
# mount -t vfat /dev/hda1 /mnt/hda1


If that works, then add a line to /etc/fstab as root...


/dev/hda1 /mnt/hda1 vfat user,defaults 0 0
When I try that it tells me this:

mount: /dev/hda1 already mount or /mnt/hda1 busy

and /mnt/hda1 is empty
 
Old 02-17-2006, 08:58 PM   #6
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
Hm...What is the output of 'mount'?

'mount' will tell what is mounted, where it is, and it's FS type.
 
Old 02-18-2006, 09:42 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Your fdisk output shows only FAT32 partitions---what OS are you running? And from what partition?
If you are running from within hda, then it is already mounted.
I'm confused........
 
Old 02-18-2006, 11:38 PM   #8
Pablo88
LQ Newbie
 
Registered: Feb 2006
Location: Argentina
Distribution: Debian GNU/Linux 9.7 (stretch) x86_64
Posts: 7

Original Poster
Rep: Reputation: 0
I'm running zipslack from hda1, but it's not mounted. I can only see the linux directory
 
  


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
mount points for partitions cch2cch Linux - Newbie 1 08-03-2005 12:55 PM
can't mount partitions.. neverwhere Linux - Hardware 3 10-03-2004 04:08 AM
How to mount other partitions? hahler2 Mandriva 1 03-26-2004 02:31 PM
Mount Windows Partitions? RedHatMN Linux - Newbie 9 12-15-2001 11:49 AM
Mount points - Partitions - etc... Vaugerant Linux - Newbie 7 02-06-2001 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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