LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2004, 10:12 AM   #1
PDD
Member
 
Registered: Oct 2004
Location: Dublin
Distribution: RedHat 9.0
Posts: 59

Rep: Reputation: 15
Mounting Boot Up problems


Hi Guys,

Linux n00b here, I am having problems mounting partitions at boot time. My fstab entries for the partitions look like this

/dev/hda5 /mnt/Storage auto vfat user,rw 0 0
/dev/hda6 /mnt/Backup auto vfat user,rw 0 0

I gives an error of not mounting properly during boot up but they mount except they are read only despite the fact that the rw option is set. They are fat32 partitions Im running Red Hat 9 (2.4.8) I know old but I will be moving to Debian soon or Gentoo. Havent decided yet.

Dave
 
Old 10-21-2004, 10:17 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
What are the messages specifically? write them down and write them here.

Can you mount them on the command line? e.g.
mount /dev/hda5 /mnt/Storage -tvfat
 
Old 10-21-2004, 10:42 AM   #3
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
I'm pretty sure your syntax is off. Give this one a shot:

Code:
/dev/hda5 /mnt/Storage vfat auto,user,rw 0 0
/dev/hda6 /mnt/Backup vfat auto,user,rw 0 0
 
Old 10-22-2004, 02:36 AM   #4
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
that would be it.
 
Old 10-22-2004, 03:11 AM   #5
PDD
Member
 
Registered: Oct 2004
Location: Dublin
Distribution: RedHat 9.0
Posts: 59

Original Poster
Rep: Reputation: 15
Hi Guys,

Cheers for the suggestions but they didnt work. When I try to copy something it says access denied cound not write to /dev/hda5/. Im baffled as to why this wont work, Ive looked at loads of sites for this and they all say the same. Any ideas?

I am getting a boot up error for my CD-ROM drive

[mntent]: Line 5 in /etc/ fstab is bad

/dev/cdrom /mnt/cdrom udf iso9660 noauto,owner,kudzu,ro 0 0

Now this is before the two lines for the mounted partitions, would this make adifference? The floppy drive follows the CD-ROM line and it has no problems.

Daved



Dave
 
Old 10-22-2004, 03:55 AM   #6
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
well what have you tryed? have you even tryed to check the status of the disk? Can it be written to? wht happens when you tryed my mounting suggestion? what are the error messages?

When you want help write EVERYTHING. Be verbose, the more information you provide the easier it is for people like me to decipher your problem. just saying it doesnt work is NOT going to get you an answer, in fact it makes me annoyed because i've gone out of my way to try and help and you arent even trying to help yourself.

So, i ask again; what have you tryed?
 
Old 10-22-2004, 04:00 AM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
For /dev/hda5 add umask=0000 to the options

Try this for the cdrom
/dev/cdrom /mnt/cdrom iso9660 noauto,user,kudzu,ro 0 0
 
Old 10-22-2004, 04:16 AM   #8
PDD
Member
 
Registered: Oct 2004
Location: Dublin
Distribution: RedHat 9.0
Posts: 59

Original Poster
Rep: Reputation: 15
Hey,

Frustin my applogoies I will try and give you as much information as possible.

1) IThe drives mount automatically from startup, if I unmount them and remount them as root they are still ro.

2) When mounted automatically I can read from them but not write tot hem

3) There are no error messages in boot time and there is only an alert / erro when I try to write to the disk which simpy says access denied, even when in root.

4) How do I check the "status" of the disk - is this like doing a scandisk for linux?

I dont know what other information you are looking for.
 
Old 10-22-2004, 04:22 AM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
PDD, did you read my post?
 
Old 10-22-2004, 04:23 AM   #10
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
I'm having a bad day. appologies.

If you say they are mounted (even if they are ro); is that an assumption? how do you know that? simply type `mount' and paste the output here.

If those disks are not in that information your are just about to provide, what actually happens when you run the mount command that i provided a day or so ago? does it give an error? if there is no error, again paste what the result of mount gives you here.
 
Old 10-22-2004, 05:03 AM   #11
PDD
Member
 
Registered: Oct 2004
Location: Dublin
Distribution: RedHat 9.0
Posts: 59

Original Poster
Rep: Reputation: 15
Hey Guys,

Dont worry about it Frustin we all have those and besides you were right in the famous words:
"Help me....... Help you!" :-)

Ok heres what my fstab looks like now:

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0

/dev/cdrom /mnt/cdrom iso9660 noauto,user,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

/dev/hda5 /mnt/Storage vfat auto,users,rw 0 0
/dev/hda6 /mnt/Backup vfat auto,users,rw 0 0

The output from a mount after a fresh reboot ios as follows:

/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/hda5 on /mnt/Storage type vfat (rw,noexec,nosuid,nodev)
/dev/hda6 on /mnt/Backup type vfat (rw,noexec,nosuid,nodev)

Am I right in saying that asthey are listed there then the drives are mounted? I can navigate to them using Konqurer (in root) however still read only (access denied for writing). Also when I use a shell (as root) to copy files I get the the following error: "cp: cannot create regular file `/mnt/Storage/output.txt': Permission denied"

Now at this point I use the following commands in a shell (again in root)

umount /mnt/Storage
umount /mnt/Backup

The output from mount is as follows:

/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/cdrom on /mnt/cdrom type iso9660 (ro,noexec,nosuid,nodev,user=dcullen)

Now I will manually remount the drives using the following commands:

su (to make sure Im in root)
mount -t vfat /dev/hda5 /mnt/Storage
mount -t vfat /dev/hda6 /mnt/Backup

The mount output after this is:

/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/cdrom on /mnt/cdrom type iso9660 (ro,noexec,nosuid,nodev,user=dcullen)
/dev/hda5 on /mnt/Storage type vfat (rw)
/dev/hda6 on /mnt/Backup type vfat (rw)

After which the drives are now mounted and are re-writable. Im guessing its something in the fstab options but as I said they seem to be consistant with what Ive seen everywhere. At this point guys I have to hold my hands up and say I am baffled!

Oh and DarthTux the CD-ROM drive is workign fine now, thanks a million!
 
Old 10-22-2004, 05:09 AM   #12
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Glad your cdrom is working but I already gave you the solution to your other drives

/dev/hda5 /mnt/Storage vfat auto,user,rw,umask=0000 0 0
 
Old 10-22-2004, 05:09 AM   #13
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
based on what you have there, it _is_ something in your fstab but as i dont have a linux box in front of me and i cant be bothered to find out what the correct options are, finding out is up to you.

i can tell you that the man page for fstab will tell you about those options that you have chosen for your two fstab lines. Go and find out what they mean and why you are using them in this instance. Explain them here, if you are still confused, i'll help you find out what you should be using.
 
Old 10-22-2004, 06:07 AM   #14
PDD
Member
 
Registered: Oct 2004
Location: Dublin
Distribution: RedHat 9.0
Posts: 59

Original Poster
Rep: Reputation: 15
Hey Frustin,

I have trawled through the man pages and all the options seem to be ok. Thats why I posted on here because I had trawled throught them and lots of sites but not elightenment.

DarthTux,

I have read the man pages on moun, fstab, nfs and there is only a brief mention of the option umask. I have done some more googling for fstab and umask and now I know its all about permissions. Cheers for that, I dont know why it isnt illustrated more clearly in the man pages. Thats one of the things that annoys me about Linux the man pages seem to somewhat very old and there doesnt seem to be revisions on them to try and make them clearer. Very confusing for a n00b.

Dave
 
  


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
Problems mounting on boot | running app as root Ephracis Mandriva 0 07-12-2005 06:18 AM
Mounting Boot Up problems PDD Linux - Software 1 10-21-2004 10:09 AM
Need help mounting on boot.. Buhammot Linux - Hardware 3 08-23-2003 06:22 AM
Mounting during boot... UB_KMA Linux - General 11 12-27-2002 01:25 AM
mounting problems at boot arlothemoo Linux - General 1 09-12-2002 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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
Open Source Consulting | Domain Registration