LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting problem (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-problem-701426/)

Abu Noor Eddin 02-01-2009 09:02 AM

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.

pixellany 02-01-2009 09:33 AM

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)

Abu Noor Eddin 02-01-2009 09:43 AM

Quote:

Originally Posted by pixellany (Post 3428128)
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.

101b147 02-01-2009 10:04 AM

not sure, but i don't think you can use umask for ext3 partition. try removing it from the fstab

Abu Noor Eddin 02-01-2009 10:53 AM

Quote:

Originally Posted by 101b147 (Post 3428146)
not sure, but i don't think you can use umask for ext3 partition. try removing it from the fstab

Nothing changed!

jschiwal 02-01-2009 11:04 AM

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)

vasmakk 02-01-2009 11:11 AM

Quote:

Originally Posted by Abu Noor Eddin (Post 3428190)
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

lazlow 02-01-2009 11:21 AM

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.

Abu Noor Eddin 02-01-2009 11:33 AM

Quote:

Originally Posted by jschiwal (Post 3428207)
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.

Abu Noor Eddin 02-01-2009 11:35 AM

Quote:

Originally Posted by lazlow (Post 3428223)
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!

lazlow 02-01-2009 11:43 AM

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.

Abu Noor Eddin 02-01-2009 12:15 PM

Quote:

Originally Posted by lazlow (Post 3428243)
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


lazlow 02-01-2009 12:29 PM

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?

Abu Noor Eddin 02-01-2009 12:42 PM

Quote:

Originally Posted by lazlow (Post 3428280)
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.

jschiwal 02-01-2009 02:32 PM

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?


All times are GMT -5. The time now is 04:50 AM.