LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-19-2006, 12:05 PM   #1
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
FSTAB (line 7 is bad)- mounting NTFS filesystem


Hey,

I've recently reinstalled fedora because i didn't like the way my harddrive was set out. However, i'm having big troubles mounting my NTFS filesystem. I originally got it to mount, but couldn't see an icon on the desktop (could before i reinstalled). Now it won't mount at all, it says line 7 is bad in fstab.
Here is my fstab output:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
LABEL=eni yezefundo, swap swap defaults 0 0
/dev/hda3 /mnt/win ntfs ro,umask=0222,uid=Graham,gid=winuser 0 0

/dev/sdb1 /media/EXTERNAL_HD vfat pamconsole,exec,noauto,utf8,managed 0 0
/dev/sda1 /media/usbdisk vfat pamconsole,exec,noauto,utf8,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0

basically i don't know what's going on!! What line is number 7, and how can i edit it to mount my NTFS system.
Cheers, and thanks in advanced.

Last edited by lebabyg; 04-19-2007 at 07:12 PM.
 
Old 03-19-2006, 12:48 PM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
You're encountering a known bug in anaconda, the Fedora installer, that writes garbage to the swap entry of /etc/fstab. Edit /etc/fstab and change line 7 (the swap line) to something like this.

Code:
/dev/hdxn     swap     swap     defaults 0 0
Replace "x" and "n" with your hard drive info, like hda3 or similar.

Then reboot and see if that fixes you up.

Last edited by jcliburn; 03-19-2006 at 05:32 PM.
 
Old 03-19-2006, 12:50 PM   #3
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Well, i don't know which version of Fedora do you have, but when I tried Fedora Core 4, i just use ro,umask=0222 to mount the partition automatically

I also had to install a kernel-module-ntfs, but that's maybe not necesary in your case

The 7 line is this:

/dev/hda3 /mnt/win ntfs ro,umask=0222,uid=Graham,gid=winuser 0 0

First of all, make sure that /mnt/win exist, also, you can prove with just putting ro,umask=0222 in your fstab or playing with the options mounting manually from the shell, i.e. mount /dev/hda3 /mnt/win -t ntfs -r -o umask=0222 and adding the uid and gid if it's necesary

You can obtain more information from fedorafaq


Hope you find usefull



Bye
 
Old 03-19-2006, 02:59 PM   #4
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Original Poster
Rep: Reputation: 30
Hey Guys,

Managed to get the partition to mount, and just rebooted and no longer get the line 7 error!! Sweet, i take it now the swap is active my computer will be quicker. Just one last question, how do i get a drive icon for the ntfs partition to appear on my desktop cos it would be really useful for browsing?

Last edited by lebabyg; 04-19-2007 at 07:11 PM.
 
Old 03-19-2006, 04:56 PM   #5
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Well, in fedora as I remember, you have to go to the Contro Center > Desktop > Behavior > Device Icons and there mark the item that say "Mounted Disk" or sometime like that



Bye
 
Old 03-19-2006, 05:36 PM   #6
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Quote:
Originally Posted by lebabyg
i take it now the swap is active my computer will be quicker.
Verify swap is active with this command:

cat /proc/meminfo | grep SwapTotal

If it shows something other than zero, you're good to go.

If it shows zero, execute this command.

swapon -a
 
  


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
Line 7 in fstab bad.... cooljed Linux - General 1 01-11-2006 06:42 AM
Bad line in fstab dubya Fedora 2 06-19-2005 02:49 PM
/etc/fstab NTFS filesystem boyd98 Linux - Newbie 4 02-06-2005 11:48 PM
Mounting NFS filesystem fstab vs autofs rrich100 Linux - Networking 0 11-13-2003 01:38 PM
WARNING: Bad format on line 10 of /etc/fstab thetwin Linux - Newbie 22 03-05-2003 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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