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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-06-2006, 01:27 PM
|
#1
|
Member
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154
Rep:
|
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
|
|
|
05-06-2006, 01:55 PM
|
#2
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep: 
|
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
for more options.
|
|
|
05-06-2006, 03:50 PM
|
#3
|
Member
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154
Original Poster
Rep:
|
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.
|
|
|
05-09-2006, 08:30 AM
|
#4
|
Member
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154
Original Poster
Rep:
|
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
|
|
|
05-09-2006, 09:06 AM
|
#5
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
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
|
|
|
05-09-2006, 02:15 PM
|
#6
|
Member
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154
Original Poster
Rep:
|
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.
|
|
|
05-09-2006, 07:01 PM
|
#7
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
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.
|
|
|
All times are GMT -5. The time now is 09:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|