hi to all.i reinstalled opensuse yesterday.when i turn on my system every time i need to enter my root password to mount my partitons.please see the following image.i want to automount all partitions on startup without giving root password(before reinstalling opensuse it didn’t ask root password to mount my partitions)
Ok in order to have a partition auto mounted You need to have and fstab entry for each partition You want to mount at boot. Here’s a quick tutorial on how to do that : FSTAB - Editing Manually
After editing /etc/fstab You can test by issuing the following command as root :
mount -a
If the partition You want to mount on boot will mount after the mount -a command it means your fstab entries are fine and from now on at each boot the partitions will be mounted.
You can also use YaST > System > Partition manager to get those fiile systems mounted. But TAKE CARE. Do double check that “Do not Format” is checked there, else you will loose your data.
vike4 just off hand why all the fat partitions (exFAT)
i have not seen that many since win 98 and have not seen a fat16 since ?? a long time
You might want to have the MS windows partitions need root access to write to
It might be possible to install a MS virus through Linux if the NORMAL account has read/write to the NTFS drives
I do not know of a virus or malware that dose this YET
But, better safe than sorry .
sorry guys i can’t check your replies until 22.00(GMT +5.30)
Glistwan first step fails
see the following
linux-vd9i:/home/vicky # kdesu kwrite /etc/fstab
kdesu(2972): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)
KCrash: Application 'kdesu' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde4/socket-linux-vd9i.site/kdeinit4__0
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
drkonqi(2973): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)
Are you in YaST > System > Partiioning? Right click on one of the partitions you want to be mounted and choose Edit. Then, when you have questions on what to do there come back.
The upper part says “Do not format partition” and that is OK of course, formatting would overwrite all data and that is not what you want.
The lower part suggest you a mount point. It is a suggestion. When you have read the “Basics about …” you know that it is you who decides where to mount it. And you know what is on it and where you use it for. Thus e.g. when it contains your music, I would mount it on /home/vike4/mymusic (whenvike4 is your username on the system, else adapt). It is only you that can decide where all five file systems should go.
After you changed the mount point text to your liking, click finish. Then you come back to th main Partitioner screen where you also click Finish.
Then go to the mount point (e.g. with Dolphin and look if everything is there.
You can of course do the other four without every time doing the last Finish, but we do now one only for the first time to get the feeling.
After you have finished look in /etc/fstab to see what YaST did to it (you can post when you like). You could have done that by an editor also of course (this is suggested by others above), but using YaST as newcomer is also OK.
all okay Henk i replaced the mount points of the partitions to /home/username/xxx(here xxx is the name of the label of my desired partition).but after a restart all falls back to default.i think i should select device path in the fstab options in the following image isn’t it?
Are You using KDE or GNOME or some other desktop environment ?
You can always become root “su -” and than use “vi /etc/fstab” but I’m not sure if You know how to operate vi (it can be tricky at first). Basicaly You can use any text editor with root privilages to edit /etc/fstab so choose your favourite one