Is there any way to mount my Windows partition at startup without it asking for the root password? All of my music and videos are on there, and I find it annoying when I have to manually mount it every time I need to use it.
Do this in your User login (you should never login to root in a GUI desktop, too risky).
From the menu, Yast (it will ask for root password, enter it) => Partitioner (in the System group)
Do not let the “Warning” scare you, though do be carefull to follow directions exactly.
In the navigation menu, choose Hard Disks. You should see all your drives and partitions listed in the right pane.
Select your Windows partition.
Click the edit button at the bottom.
MAKE CERTAIN “Do not format partition” is selected.
Give it a mount point.
Change Nothing Else!
Click the Finish button.
Change Nothing Else!
Finish up with the partitioner, then close Yast
Reboot.
Thanks! I’ll try this when I get back into OpenSUSE. Now to shut down Winsh*t
Typically I would use the following mount-points:
/windows/c
/windows/d
etc
Hi! I am having the exact same problem. I have done everything Fraser_Bell says but no change, I still have to manually mount that partition on startup. I have left the mount point that comes by default on Partitioner, which in my case is /run/media/*******/Gateway (the asterisks are my given name). Could that be the reason? The other options are /srv, /tmp and /usr/local.
Is the partition in the /etc/fstab file?
You can add it and define a mount point in Yast partitions section
No, it isn’t. The partition is dev/sda3, how can I add it correctly?
The current contents of the /etc/fstab file are these:
/dev/disk/by-id/ata-Hitachi_HTS545025B9A300_110224PBN204NSD5M1KT-part6 swap swap defaults 0 0
/dev/disk/by-id/ata-Hitachi_HTS545025B9A300_110224PBN204NSD5M1KT-part5 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-Hitachi_HTS545025B9A300_110224PBN204NSD5M1KT-part7 /home ext4 defaults 1 2
Give us the output of fdisk -l (that’s the lower case letter “l”, not a numeric “one”.).
…but, if you gave it the mount point in the Yast paritioner, I am surprised it didn’t already add it to fstab.
Fraser Bell wrote:
> …but, if you gave it the mount point in the Yast paritioner, I am
> surprised it didn’t already add it to fstab.
>
Assumes that the mount point exists. Mount will not create a new mount
point.
–
Will Honea
I see.
Odd as it may seem, that is something I have never actually tried in all these years. But, I just thought since the action was being done within Yast, that would have been an automatic check.
If you add a mount in Yast it will create a directory mount point if needed. If you just edit the fstab then no you have to have an exiting directory to mount to.
Here you are:
Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x835005c7
Device Boot Start End Blocks Id System
/dev/sda1 2048 31459327 15728640 27 Hidden NTFS WinRE
/dev/sda2 31459328 31664127 102400 7 HPFS/NTFS/exFAT
/dev/sda3 31664128 431664127 200000000 7 HPFS/NTFS/exFAT
/dev/sda4 * 431665150 488396799 28365825 5 Extended
/dev/sda5 431665152 467664895 17999872 83 Linux
/dev/sda6 467666944 469665791 999424 82 Linux swap / Solaris
/dev/sda7 469667840 488396799 9364480 83 Linux
Thing is I have only used YaST and it created zilch, I haven’t edited the fstab.
[QUOTE=Karmovorotin;2638343]Here you are:
Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x835005c7
Device Boot Start End Blocks Id System
/dev/sda1 2048 31459327 15728640 27 Hidden NTFS WinRE
/dev/sda2 31459328 31664127 102400 7 HPFS/NTFS/exFAT
/dev/sda3 31664128 431664127 200000000 7 HPFS/NTFS/exFAT
/dev/sda4 * 431665150 488396799 28365825 5 Extended
/dev/sda5 431665152 467664895 17999872 83 Linux
/dev/sda6 467666944 469665791 999424 82 Linux swap / Solaris
/dev/sda7 469667840 488396799 9364480 83 Linux
Which partition do you wish to mount, sda2 or sda3? (I am guessing sda3, but guessing is not a good idea for this, so we wait for your answer.).
You guessed right, sda3. sda2 is the Win7 loader, my data are in sda3.
Yes, it will. I just tested it again. However, the mount point will probably belong to root and only root will have the full permissions.
No, that should give full read/write permissions for normal users (for FAT/NTFS partitions at least).
And yes, YaST creates the mount point automatically if it doesn’t exist before adding the entry to the fstab.
If you manually create an entry in the fstab, you have to take care yourself that the mount point exists, of course.
Maybe the OP didn’t click OK or similar?
Well actually he stated that he used /run/media/*******/Gateway, which was already filled in. As he didn’t change anything, YaST didn’t create an fstab entry I suppose.
But that mount point wouldn’t exist anymore after a reboot (/run/ is a tmpfs, so it looses all its contents when you reboot), so that mount would fail anyway.
So I guess therein lies the problem.
Use something else, like /windows/C/, and it should work.
Anyway, an fstab entry could look like this: (he already stated he wants to mount /dev/sda3)
/dev/sda3 /windows/C ntfs-3g defaults 0 0
Actually, I wrote this after the responses temporarily confused my old, grey mind!>:(
I have done it, many times! I realized that as soon as I went in to test it in the Yast partitioner. And tonight, I did it again, several times, several different ways, always with the result I expected and wanted.
So, let’s try again … this time with pictures.
First, I am going to assume that the label of that partition is “Gateway”, guessing from what you posted earlier. If it is, then where I use “windata”, you replace it with “Gateway”. Or, if the label is different, then use whatever label you gave it in place of “windata”.
Before starting, make sure the partition is not mounted.
I also will assume you want your own User account to have full permissions on that partition. If so, then the first thing you should do is – in your User account, not root – go to the /tmp directory, where you have full permissions. In there, create a new directory with the name of the label partition. In my example, I would create /tmp/windata, you use your label in place of “windata”.
This will give you a mount point where you have full permissions.
Now, launch Yast (it will ask for your root password, but I am sure you already know that).
Now, launch the partitioner.
Remember to make certain to check “Do not format partition”.
Check “Mount partition”.
In the box under Mount Point, write the full path to that directory; in my example, that would be /tmp/windata
See this image:
http://paste.opensuse.org/8000139
Now, click on the Fstab Options … button.
See this next image:
http://paste.opensuse.org/41932465
In here, select to Mount in /etc/fstab by Volume Label.
Your volume label should already show there, but if not, enter it in the box provided. Note that if there is already some other label in there, then that is probably the true label you have on the partition, so maybe you should be using that in place of all points where I used “windata”, including the name of the directory you created, then.
Now just click on the okays, nexts, finishes, etc. & close Yast.
Launch Dolphin in your User account, and you should see that the partition is now mounted. You can reboot a few times, if you wish, to see that it is always mounting for your User account.
====
Another piece of advice you might like to follow:
I see from your earlier posting that you are mounting the other partitions by ID.
I suggest you go in the partitioner, select each one of them, and change them to mount by label in the same Fstab button dialogue.
(But, don’t format them! rotfl!)
And, you won’t be creating any special directories for those other partitions, just leave the mount points as they are.
The reason?
If you ever need to backup and restore to a disk with a different ID, mounting by Label will save you a lot of work straightening it all out, since while the ID will change, the Labels will remain the same.
Again, YaST will create the mount point automatically. You don’t have to do that manually.
And which permissions you have is more a matter of which mount options are used than where the mount point is.
The mounting is done as root anyway.
I would not use /tmp for mount points. Depending on your system settings, it might get wiped out regularly, or even be a tmpfs so the mount point won’t be there on your next boot unless you tell the system to create it (via /etc/tmpfiles.d/ f.e.).
/tmp is for temporary files by definition, but a mount point for an fstab entry should be permanent.
Well, it does for extN partitions, but I tried several times tonight and it kept giving root the permissions on the NTFS partition, but my User could only view it, not create any new directories or files, etc. I tried different options, different locations, nothing worked for me until I did as I show in the post just before this.
Thanks for stepping in here, though, and helping out. Stick around.
As I said the other options are /srv, /tmp and /usr/local, do you recommend any of these? When using /windows/C an error message appears:
http://s14.postimg.org/lu6fnuxbl/snapshot1.png
EDIT: sorry, Fraser_Bell, Published this before reading your edited post. I assume I have to restart before I can do all that. Besides when I enter the tmp folder it says it’s Root>tmp, so maybe I ****ed up somewhere.