LinuxQuestions.org
Register a domain and help support LQ
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 11-28-2005, 11:41 AM   #1
ukkibg
LQ Newbie
 
Registered: Nov 2005
Location: Europe
Distribution: SuSe 10.0, Win XP Professional
Posts: 10

Rep: Reputation: 0
Problem with fstab on SuSe 10.0


Hi there!
I have the following situation:

Operating system: SuSe 10.0
1 HDD: 2 NTFS Partitions, Win XP Professional
2 HDD: 2 Partitions - first NTFS (formerly FAT 32), second ext2 with SuSe, plus Linux swap partition

Installation was great, without any problems, system automatically mounted all hardware and everything worked just fine (all my partitions were visible), untill I decided to change the file system - I would rather not go into why's - from FAT 32 to NTFS. Naturally, Linux didn't see it anymore.
Being a newbie to Linux I browsed various forums to try to find a remedy. Tried everything which was recommended by (I hope) experienced users. Didn't work.
In the process I pretty much massacred /etc/fstab with constant writing, saving and rewriting. All advice had something or other to do with it, and every attempt was frustratingly rewarded by a reply from my console: "no mount point", and with additional warning that lines 12 and 56 in fstab are bad. Eventually I gave up.
Now I can boot and work normally except that during the boot system writes some "failed" messages most probably connected with my meddling with fstab. It is annoying, because I'm used to (almost) perfectly tuned system (not to mention the fact that I can't read anything from the partition with changed file system - only movies and music).
Any remedy to the problem (besides reinstalling the whole system)? I'm open to any and all suggestions with viable solutions, and would greatly appreciate it.

Last edited by ukkibg; 11-28-2005 at 11:42 AM.
 
Old 11-28-2005, 11:58 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Very helpful would be your actual /etc/fstab and the output of the command 'fdisk -l' (l, like in 'l'ike; you need to be root).
 
Old 11-28-2005, 06:50 PM   #3
ukkibg
LQ Newbie
 
Registered: Nov 2005
Location: Europe
Distribution: SuSe 10.0, Win XP Professional
Posts: 10

Original Poster
Rep: Reputation: 0
Here it goes:


fstab content:

/dev/hdb7 / reiserfs acl,user_xattr 1 1
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda5 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb6 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/cdrecorder /media/cdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
/dev/hdb5 /mnt/h5

(that last line was my try to mount /windows/e - /dev/hdb5



console content (and that I 've done sooo many times):

linux:~ # fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 7649 61440561 7 HPFS/NTFS
/dev/hda2 7650 9729 16707600 f W95 Ext'd (LBA)
/dev/hda5 7650 9729 16707568+ 7 HPFS/NTFS

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 2 9729 78140160 f W95 Ext'd (LBA)
/dev/hdb5 2 5717 45913738+ 7 HPFS/NTFS
/dev/hdb6 5718 5848 1052226 82 Linux swap / Solaris
/dev/hdb7 5849 9729 31174101 83 Linux

I have to admit it doesn't say anything to me. It'd be swell if it does to you. Please, come up with some magical solution.
Thanks.
 
Old 11-28-2005, 07:12 PM   #4
Bluenoser
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138

Rep: Reputation: 15
Here's my attempt.....

su to root
mkdir /windows/E

Edit this line in your fstab

/dev/hdb5 /mnt/h5
and change it to this...

/dev/hdb5 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
 
Old 11-29-2005, 03:29 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I agree with the suggestion above. If hbd5 is the partition you converted to NTFS, no error messages should appear. If there are still messages coming, check fstab for typos, e.g. linebreaks within an entry (pico loves to introduce linebreaks) or spaces between the options.
 
Old 11-29-2005, 11:56 AM   #6
ukkibg
LQ Newbie
 
Registered: Nov 2005
Location: Europe
Distribution: SuSe 10.0, Win XP Professional
Posts: 10

Original Poster
Rep: Reputation: 0
Many thanks! Your attempt was actually a solution...
Everything is working just fine now. No "failed" or "bad lines" messages during boot. Just as it was in the beginning.
I already had a directory under /windows/E, which was left from original installation, so there was no need to make it (now everything is so clear to me and cubes are easily clicking in right places).
My basic mistake was in trying to mount already mounted HDD. All that was necessary to do was to change the type of file system in fstab, right?
Bloody nuisance, but you'll have to admit that world'd be much duller place without Linux newbies.
Thanks again!
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
/etc/fstab SuSE 9.3 problem easykillsoft SUSE / openSUSE 1 10-31-2005 11:22 AM
[SuSE fstab] No write access pEeDy Linux - Newbie 7 10-11-2005 03:58 AM
SuSE 9.1 FSTAB diffy? lectraplayer SUSE / openSUSE 2 11-23-2004 07:18 PM
FSTAB fkup in SuSE 9 x64 uniQ Linux - General 0 01-29-2004 07:55 PM


All times are GMT -5. The time now is 10:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration