LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-17-2006, 12:08 AM   #1
Pablo88
LQ Newbie
 
Registered: Feb 2006
Location: Argentina
Distribution: Kubuntu
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-17-2006, 12:27 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I suspect that they're not listed in /etc/fstab. Post your /etc/fstab and also the output of fdisk -l
 
Old 02-17-2006, 12:32 AM   #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-17-2006 at 12:39 AM. Reason: Provide more info
 
Old 02-17-2006, 09:13 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
"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, 10:36 AM   #5
Pablo88
LQ Newbie
 
Registered: Feb 2006
Location: Argentina
Distribution: Kubuntu
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, 09: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, 10:42 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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-19-2006, 12:38 AM   #8
Pablo88
LQ Newbie
 
Registered: Feb 2006
Location: Argentina
Distribution: Kubuntu
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


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


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