LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-01-2009, 09:02 AM   #1
Abu Noor Eddin
Member
 
Registered: Feb 2008
Posts: 40

Rep: Reputation: 15
mounting problem


Hi there,

I am new to linux. After installing fedora 10 I wanted to mount an additional ext3 partition (I forgot to mount it during installation). after editing fstab and rebooting, I found all other partitions are unmounted.

Code:
#
# /etc/fstab
# Created by anaconda on Thu Jan 29 20:33:54 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=03ad6587-8d90-47f5-85cb-f46300e7f5da /                       ext3    defaults        1 1
#UUID=0ceedde0-8d4a-44bb-870e-01bd85bec04e /media                  ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
UUID=3302e00c-724d-480a-b054-50e1755d25fb swap                    swap    defaults        0 0
/dev/sda1   /media/c_drive     ntfs-3g    rw,defaults,umask=0000 0 0
/dev/sda5   /media/d_drive     ntfs-3g    rw,defaults,umask=0000 0 0
/dev/sda8   /media/l_drive     ext3    defaults,umask=0000 0 0
The one I mean is sda8, the last line in fstab.

Any suggestion?

Thanks.
 
Old 02-01-2009, 09:33 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I don't know what you mean by "all other partitions are unmounted". I think that would mean the computer would not function.

Assuming that you are able to boot up OK, try "mount -a". That should mount everything in fstab. Also try mounting the partition manually.

I'm confused as to why you are mounting something to /media---and then also to /media/xxxx.

Please post the output of "fdisk -l" (run as root....ell, not one)
 
Old 02-01-2009, 09:43 AM   #3
Abu Noor Eddin
Member
 
Registered: Feb 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
I don't know what you mean by "all other partitions are unmounted". I think that would mean the computer would not function.

Assuming that you are able to boot up OK, try "mount -a". That should mount everything in fstab. Also try mounting the partition manually.

I'm confused as to why you are mounting something to /media---and then also to /media/xxxx.

Please post the output of "fdisk -l" (run as root....ell, not one)
I mean that after rebooting, only filesystem partition is mounted but the other two NTFS partitions are not mounted (cannot access them).

when doing mount -a nothing happen and everything still the same.

I am mounting only to /media/xxxx not to /media alone. However, I feel the problem in this part as I see all the mouniting points repeating in the folder l_drive (i.e. when I open l_drive I found c_drive and d_drive l_drive which should not be like this)

Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x03c503c4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3387    25605688+   7  HPFS/NTFS
/dev/sda2            3388       10337    52542000    f  W95 Ext'd (LBA)
/dev/sda5            3388        6774    25605688+   7  HPFS/NTFS
/dev/sda6            6775        8468    12806608+  83  Linux
/dev/sda7            8469        8746     2101648+  82  Linux swap / Solaris
/dev/sda8            8747       10337    12027928+  83  Linux
Thanks for helping.
 
Old 02-01-2009, 10:04 AM   #4
101b147
LQ Newbie
 
Registered: Jan 2009
Location: Brazil
Distribution: opensuse
Posts: 24

Rep: Reputation: 15
not sure, but i don't think you can use umask for ext3 partition. try removing it from the fstab
 
Old 02-01-2009, 10:53 AM   #5
Abu Noor Eddin
Member
 
Registered: Feb 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by 101b147 View Post
not sure, but i don't think you can use umask for ext3 partition. try removing it from the fstab
Nothing changed!
 
Old 02-01-2009, 11:04 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you aren't able to finish booting, comment out entries for the ntfs partitions so you can finish booting.

Then boot up and try to mount them manually using the same arguments that are in the commented out entries. Note any errors. Don't use the "umask" option for the ext3 filesystem. It is just for vfat, ntfs and samba shares.

Make sure that the ntfs-3g package is installed. Also make sure that the fuse package is installed. It contains utilities and configuration files. Also check that the fuse kernel module is loaded, (E.G. lsmod | grep fuse)

Last edited by jschiwal; 02-01-2009 at 11:06 AM.
 
Old 02-01-2009, 11:11 AM   #7
vasmakk
Member
 
Registered: Jan 2009
Distribution: Debian Lenny, Ubuntu 9.04
Posts: 87

Rep: Reputation: 16
Quote:
Originally Posted by Abu Noor Eddin View Post
Nothing changed!
Hi Abu!

If your problem is the two NTFS partitions, try change the two lines
from

/dev/sda1 /media/c_drive ntfs-3g rw,defaults,umask=0000 0 0
/dev/sda5 /media/d_drive ntfs-3g rw,defaults,umask=0000 0 0

to

/dev/sda1 /media/c_drive ntfs-3g rw,users,umask=022 0 0
/dev/sda5 /media/d_drive ntfs-3g rw,users,umask=022 0 0

or

/dev/sda1 /media/c_drive ntfs rw,users,umask=022 0 0
/dev/sda5 /media/d_drive ntfs rw,users,umask=022 0 0

and then run # mount -a

That should work ... I myself, use the second option.
Let me guess, that you have already created the directories
/media/c_drive and /media/d_drive. Right ? Or Else you cannot mount on them ...

Best wishes ...
Vas
 
Old 02-01-2009, 11:21 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I have seen some "unusual" behavior with ntfs-3g when it is not the last item in fstab. I would rearrange (and drop umask) the ext3 mount that precedes (in fstab) the ntfs-3g partitions. A reboot should not be needed, just use a umount -a after any fstab changes.
 
Old 02-01-2009, 11:33 AM   #9
Abu Noor Eddin
Member
 
Registered: Feb 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
If you aren't able to finish booting, comment out entries for the ntfs partitions so you can finish booting.

Then boot up and try to mount them manually using the same arguments that are in the commented out entries. Note any errors. Don't use the "umask" option for the ext3 filesystem. It is just for vfat, ntfs and samba shares.

Make sure that the ntfs-3g package is installed. Also make sure that the fuse package is installed. It contains utilities and configuration files. Also check that the fuse kernel module is loaded, (E.G. lsmod | grep fuse)
I am booting okay. I have no problems with NTFS. So, I think ntfs-3g is installed.
 
Old 02-01-2009, 11:35 AM   #10
Abu Noor Eddin
Member
 
Registered: Feb 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lazlow View Post
I have seen some "unusual" behavior with ntfs-3g when it is not the last item in fstab. I would rearrange (and drop umask) the ext3 mount that precedes (in fstab) the ntfs-3g partitions. A reboot should not be needed, just use a umount -a after any fstab changes.
I followed your advice and now NTFS partitions are not auto mounted!
 
Old 02-01-2009, 11:43 AM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Lets see your new and improved fstab. If nothing else we now know that there is a problem(of some sort) with the ext3 line.
 
Old 02-01-2009, 12:15 PM   #12
Abu Noor Eddin
Member
 
Registered: Feb 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lazlow View Post
Lets see your new and improved fstab. If nothing else we now know that there is a problem(of some sort) with the ext3 line.
Code:
#
# /etc/fstab
# Created by anaconda on Thu Jan 29 20:33:54 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=03ad6587-8d90-47f5-85cb-f46300e7f5da /                       ext3    defaults        1 1
UUID=0ceedde0-8d4a-44bb-870e-01bd85bec04e /mnt/l_drive                  ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
UUID=3302e00c-724d-480a-b054-50e1755d25fb swap                    swap    defaults        0 0
/dev/sda1   /mnt/c_drive     ntfs-3g    rw,defaults,umask=0000 0 0
/dev/sda5   /mnt/d_drive     ntfs-3g    rw,defaults,umask=0000 0 0

Last edited by Abu Noor Eddin; 02-01-2009 at 12:20 PM.
 
Old 02-01-2009, 12:29 PM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Why did you switch from the /dev/sda8 form to the uuid form? And change mount pts? Not that either should matter but changing more than one thing at a time makes it much more difficult to trouble shoot. Is sda8 being working now?

Last edited by lazlow; 02-01-2009 at 12:30 PM.
 
Old 02-01-2009, 12:42 PM   #14
Abu Noor Eddin
Member
 
Registered: Feb 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lazlow View Post
Why did you switch from the /dev/sda8 form to the uuid form? And change mount pts? Not that either should matter but changing more than one thing at a time makes it much more difficult to trouble shoot. Is sda8 being working now?
I switched as I thought I should keep what fedora was writing in fstab (UUID) and not what I typed (sda8).

sda8 is not working neither now nor before!

Any suggestion?

Thanks.
 
Old 02-01-2009, 02:32 PM   #15
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Could you post any /var/log/messages log entries posted when mounting an ntfs filesystem fails?

Did you check if the fuse module is loaded?
 
  


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
problem mounting second HD jstotz Linux - Software 2 11-12-2007 11:11 AM
Problem in mounting Mr.DeVillie Linux - Newbie 1 02-08-2006 08:37 AM
Re: mounting cd problem paul70 Linux - General 2 08-09-2005 12:35 AM
problem with mounting hari78 Linux - Newbie 6 08-04-2005 03:13 AM
problem mounting hd Username[SWE] Linux - Newbie 4 04-09-2004 12:42 PM

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

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