LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 08-11-2005, 09:37 PM   #1
simplebob
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Damn Small Linux
Posts: 16

Rep: Reputation: 0
Question fstab


So here is my new problem, I added a new hard drive, and i can mount it using:

sudo mount -t ext3 /dev/hdf1 /media

and that works fine. I can then cd to /media and see whats in there. But I now want to mount that every time DSLinux boots up. So I added a line in /etc/fstab that looks like this:

/dev/hdf1 /media ext3 auto,users,exec 0 0

And now when I restart my computer I get this "EXT3-fs warning: Maximal mount count reached, running e2fsck is recommended" after it checks /etc/fstab on startup, is there something wrong with the entry I put in fstab? I google "mounting a ext3 file system automatically in /etc/fstab" and read on how to do it, but I think my effort was futile. I also tried a couple different options in fstab, none of which worked.

Here is my whole /etc/fstab just in case.

Code:
# /etc/fstab: filesystem table.
# filesystem  mountpoint  type  options  dump  pass
/dev/hde2  /  ext2  defaults,errors=remount-ro  0  1
proc  /proc  proc  defaults  0  0
/dev/fd0  /floppy  vfat  defaults,user,noauto,showexec,umask=022  0  0
/dev/cdrom  /cdrom  iso9660  defaults,ro,user,noexec,noauto  0  0
/dev/hdf1 /media ext3 auto,users,exec 0 0
# partitions found by dsl
#/dev/hde2 /mnt/hde2 auto noauto,users,exec 0 0
/dev/cdrom1 /mnt/auto/cdrom1  auto   users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hde1 none swap defaults 0 0
Is there something wrong with my entry in fstab?

dmesg |grep hd displayed that there is in fact hdf1 so i'm really confused.
 
Old 08-11-2005, 09:51 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Re: fstab

it seems like you can access the mount, right? if so, it doesn't seem like too much to worry about.

i guess you could unmount it and run fsck on it to see if that makes it happy and stops the message. afaiknew 0 0 in the options tells fsck that the disk doesn't need to be checked, but maybe something else supercedes that. (?)

btw, what is hdf? a raided disk, i guess? i've never heard of hdf, only up to hdd.
 
Old 08-11-2005, 09:59 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You'd get hdf on the primary slave on a third IDE controller.

Umm, that message indicates that if it had a non-zero value in the check field it would perform an fsck on the disk to check the filesystem integrity.
 
Old 08-11-2005, 10:22 PM   #4
simplebob
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Damn Small Linux
Posts: 16

Original Poster
Rep: Reputation: 0
yeah, i can still access the mount. i'm not to worried about the the message i get, it's just a warning. the only thing i want to be able to do is have hdf mount up when i boot the computer.

i thought hdf was kind of odd too. my main drive is hde i don't know why. i have hde and hdf on the same ide cable and hde is set as master hdf is slave.
 
Old 08-11-2005, 10:29 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
That's kindof odd, admittedly, but perhaps your motherboard also supports SATA which is set to some sort of legacy mode? Does hdf automount properly on boot?
 
Old 08-11-2005, 11:59 PM   #6
adssse
Member
 
Registered: May 2005
Distribution: Ubuntu, Jolicloud
Posts: 136

Rep: Reputation: 15
If it is mounting alright for you I would just boot from the cd once and run e2fsck on the drive and see if the error message stops.
 
Old 08-12-2005, 08:44 AM   #7
simplebob
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Damn Small Linux
Posts: 16

Original Poster
Rep: Reputation: 0
no it's not mounting on boot. it displays that warrning and if i want it mounted i have to manually mount it with sudo mount -t ext3 /dev/hdf1 /media

so i'm going to run e2fsck and i'll let you all know whats happening.

thanks for all your help so far.
 
Old 08-12-2005, 09:10 AM   #8
adssse
Member
 
Registered: May 2005
Distribution: Ubuntu, Jolicloud
Posts: 136

Rep: Reputation: 15
Oh sorry I thought it was working. You could also try this. Change your fstab to the way it was and than edit your bootlocal.sh

In the /opt directory you should find the bootlocal.sh file. Than you can add it like this (using hda3 as my example)

sudo mount /dev/hda3 /mnt/hda3

Save your changes and then set the permissions on the file to allow execution (Open emelfm...highlight filename....righ-click...Properties....Permissions then set the permisions by clicking all the buttons under EXEC). Reboot the machine and see if the partition is mounted. Watch for error messages.
 
Old 08-12-2005, 09:47 AM   #9
simplebob
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Damn Small Linux
Posts: 16

Original Poster
Rep: Reputation: 0
well that worked, thank you very much. i still get the warning (actually i get two of the same warings now) but i figure i'll just run e2fsck on hdf1 and if it works it works if not it's just a warning.

once again thanks for all your help.
 
Old 08-12-2005, 06:02 PM   #10
adssse
Member
 
Registered: May 2005
Distribution: Ubuntu, Jolicloud
Posts: 136

Rep: Reputation: 15
Glad to hear it. I have had similar warnings, but when I booted from the cd and ran e2fsck on the drive it took care of them. Good luck.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
What is fstab? sceadu Linux - Newbie 2 11-02-2004 07:25 PM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
Help with /etc/fstab wawosz Linux - General 3 04-24-2003 02:12 PM

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

All times are GMT -5. The time now is 04:16 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
Open Source Consulting | Domain Registration