LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-08-2005, 04:20 PM   #1
whited
Member
 
Registered: Feb 2005
Distribution: Slackware 11
Posts: 109

Rep: Reputation: 15
how do you rename the mount pionts for the startup automount


In slackware 10.1 whenever you install it asks you if you want to make your windows partitions viewable under linux and by what name. I completely reformated a partition as fat32 and made it not viewable under windows. How can I change the names that the mount during start up program gives them? Thank you.
 
Old 03-08-2005, 04:40 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I'm assuming you named it something on the install
that you don't like. If that's the case, Slackware has
created entries in /etc/fstab and assigned a mount
point like this
Code:
mingdao@james:~$ cat /etc/fstab
/dev/hda1        /XP              ntfs        user,umask=1000,ro,auto      1   0
/dev/hda2        /PROGRAMS        ntfs        user,umask=1000,ro,auto      1   0
/dev/hda3        /DATA            vfat        user,umask=1000,rw,auto      1   0
and you need to edit that file, and also the directory
under your / directory
Code:
mingdao@james:~$ ls -alc /
drwxrwxrwx  48 root root 32768 1970-01-01 07:00 DATA/
d------r-x   1 root root  8192 2005-03-05 11:05 PROGRAMS/
d------r-x   1 root root  8192 2005-03-05 11:16 XP/
Both of these actions will require you to either login to
a terminal as root, or issue the command like this
$ su -c "pico /etc/fstab"
Password:
which will ask for your root user password, and then
allow you to work as root until you close the pico
editor and save your changes. For the mount point
$ su -c "mv /<present_name> /<desired_name>"
 
Old 03-08-2005, 04:42 PM   #3
amwink
Member
 
Registered: Mar 2005
Location: Connecticut/USA
Distribution: Ubuntu 9.04
Posts: 68

Rep: Reputation: 15
EDIT

Chinaman has already answered better than me! Good luck. amwink

Last edited by amwink; 03-08-2005 at 04:44 PM.
 
Old 03-08-2005, 11:44 PM   #4
whited
Member
 
Registered: Feb 2005
Distribution: Slackware 11
Posts: 109

Original Poster
Rep: Reputation: 15
/dev/hda5 swap swap defaults 0 0
/dev/hda3 / ext3 defaults 1 1
/dev/hdb1 /media vfat defaults 1 0
/dev/hdb5 /data vfat defaults 1 0
/dev/hdb6 /rootmedia vfat defaults 1 0
/dev/hdb7 /programs vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


I want to make a password in order to get into rootmedia. I tried changing permissions but it didn't work.
 
Old 03-08-2005, 11:58 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by whited
/dev/hdb6 /rootmedia vfat defaults 1 0

I want to make a password in order to get into rootmedia. I tried changing permissions but it didn't work.
It looks like that partition is mounted under / and not
under /home/<username> so root should be the only
guy who can write to it.

Is that not so?

You can use any user you already have, and any type
of read/write/execute combination you want. You could
even create a new user and only let him rwx that directory.

How did you try changing permissions?

If you'd like to read some and check your work before
posting again, issue
$ man mount
$ man fstab
and there is a good, simple guide to file permissions here
in the LQ Answers -- Quick and Dirty Guide to Linux File Permissions

Did you solve the first problem?
 
  


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
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 03:05 PM
not able to automount files in nfs at startup time kool124 Linux - Networking 4 10-03-2005 11:04 AM
automount windows partitions at startup BiPolar Fedora 11 08-13-2005 05:35 PM
Automount USB disk at startup becho4 Linux - Software 1 07-08-2005 08:36 AM
Automount Win Partions at startup gtgoku Red Hat 7 09-17-2003 02:26 PM

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

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