LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-06-2006, 01:27 PM   #1
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Rep: Reputation: 30
how to mount my hda4 at boot up


Hi guys i have been looking around the net and cant find any info on how to mount my hda4 at boot up ony flash drives

I am using mepis and had to reinstall it now every time I want to listen to mp3's I have to mount this partion my self which is geting annoying now

how can I get mepis to auto mount my hda4

i know you use a script but have never done any thing like that yet.
but how do i do that in say kright [text editor]

where is that file located that they say I need to edit
and what do i need to put in there

it is a primary parton

be great for your help
 
Old 05-06-2006, 01:55 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
add to /etc/fstab a line:

/dev/hda4 /mnt/hda4 auto umask=0222,rw,auto 0 0

and remember to create /mnt/hda4 (that's where it gets mounted, you can change that). if you don't want everybody to get their hands on it, remove that "umask=0222" from the list..read the manpages of

Code:
man mount
for more options.
 
Old 05-06-2006, 03:50 PM   #3
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Original Poster
Rep: Reputation: 30
Hi there I have this in my /ect/fstabs file

this is the orignal one which I have a back up for I did just in case I messed it up

# Pluggable devices are handled by uDev, they are not in fstab
/dev/hda1 / ext3 defaults,noatime 1 1
/dev/hda3 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
# Dynamic entries below, identified by 'users' option
/dev/hda4 /mnt/hda4 ext3 noauto,users,exec 0 0
/dev/hdc /mnt/cdrom iso9660,udf noauto,users,exec,ro 0 0



hi the code I tryed first by taking out "noauto" to "auto" that did
not work so I then tryed your line at "/dev/hda4 /mnt/hda4 ext3 noauto,users,exec 0 0" and just put your line in place this did not work so I added it to the top the 3 line down

there is also an red zero "0.0" the last zero is red is this normal

well it did not mount it and I could not mount it manulay so I put it back by using my back up copy of that file


any help guys

Last edited by samuelmp; 05-08-2006 at 12:28 PM.
 
Old 05-09-2006, 08:30 AM   #4
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Original Poster
Rep: Reputation: 30
any help guys this is the first time i have ever tryed this.
a newbe to scripting - that will help me out with fucture problems
 
Old 05-09-2006, 09:06 AM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
It should work if you change your original:

/dev/hda4 /mnt/hda4 ext3 noauto,users,exec 0 0

To:

/dev/hda4 /mnt/hda4 ext3 auto,users,exec 0 0
 
Old 05-09-2006, 02:15 PM   #6
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Original Poster
Rep: Reputation: 30
Hi there Arow I all ready tryed that one using root and it just went back to "noauto" agen when i booted up next time. so I tryed it agen and still no luck. I did it in kwright and nothing seemd to work just it seems it always goes back to "noauto"


that other thing b0unce said seem to give me an error as I have said in one of my posts the hda4 hard-drive icon went red like the other hard-drives but it came up with an error's. but kwright had funny

0.0

so I think the line must be rong some how as it did not work

as the other zeros are all black exept for the line that I put in that one time?

Last edited by samuelmp; 05-09-2006 at 02:39 PM.
 
Old 05-09-2006, 07:01 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Well, I always edit my configuration files using nano or vi from a terminal. I can't imagine why it would revert back to "noauto" unless you're forgetting to save the file or you're not editing the file as root.

You could also try,

/dev/hda4 /mnt/hda4 ext3 defaults 0 0

as defaults includes auto mount.

The 0.0 is odd in my experience. This is probably because KWrite is interpreting the 0 0 as something else. Try editing the file as root in nano or vi.

1. nano -w /etc/fstab

2. Make the change.

3. CTRL+X to exit and choose to save your changes.
 
  


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
/dev/hda4 already mounted or z busy tunasashimi Ubuntu 13 09-06-2005 01:55 PM
no hda4? 212121 Linux - Newbie 5 09-01-2005 08:24 PM
Any problem to install Linux in my /dev/hda4? enemorales Linux - General 5 03-13-2005 01:52 PM
/dev/hda4 Couldn't find ext2 superblock a10392 Linux - Hardware 1 11-17-2004 11:01 AM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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