More Madness - My WIndows Physical Drives have Vanished
Linux - HardwareThis 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.
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.
More Madness - My WIndows Physical Drives have Vanished
HI All.
Just opened the media folder and no sign of my physical windows drives in there. This followed a reboot in which they appeared there but could not open as they had apparently failed to mount on previous boot.
Can anyone explain simply how to restore them and be able to access files there as I have PDF.s there I wish to view?
I entered partition info as described in fstab and did the mkdir /mnt/windows as described and can now access both windows drives directly - but only logged on as root.
When I try to do the same in user sessions I get 'cannot enter mount/windows' error message .Any idea how I might fix this?
where it says "defaults" is where you will put your mount options. There are several options that you are able to put here seperated with commas.
try doing a "man mount" and scroll down to the -o section. here you will find a list of options that you may use.
You may try "user,noauto,rw" in this section. This means that any user may mount the filesystem and the filesystem must be mounted explicitly as opposed to mounted automaticaly and the filesystem is r/w.
In each case I get the message "Could not enter......"
As I understand it (case a)I should be able to reboot into the user account the mount should automatically load in the user account with read-only priveleges
Any further thoughts on this? As stated before they are both accessible in root!
I am not sure what type of partitions you have for hda2 and hda5. Are they both fat or are they ntfs or is one fat and the other ntfs?
Have you created a mountpoint "D" for hda5 to mount to?
It looks as if your /dev/hda2 will mount automaticly on /mnt/windows during boot and users should have read only access to it as long as the file system type is ntfs. If it is a fat partition then you will have to change your type to vfat on the line in /etc/fstab.
you will have to manualy mount /dev/hda5 with the command "mount /mnt/D" as long as it is an ntfs file system type and you have made a directory "D" in /mnt. You must explicitly mount this file because of the option "noauto" on your line in /etc/fstab. If you wish to mount this file automaticaly during boot you must change the "noauto" to "auto" .
If you are unsure of the filesystem type you are trying to mount you may try placing "auto" in place of ntfs or vfat in /etc/fstab.
Originally posted by jabfinger I am not sure what type of partitions you have for hda2 and hda5. Are they both fat or are they ntfs or is one fat and the other ntfs?
Have you created a mountpoint "D" for hda5 to mount to?
Yes both are ntfs and yes I have 2 mount points: one for windows and one for D and both work fine when logged in as root but do not when logged into the user account!
That said the info I posted were two possible scenarios. For the time being I've switched both back to 'defaults' but both are ntfs filesystems so I left that part unchanged.
What I want to achieve is that both are visible and accessible in the user account as well as the root with perhaps the Windows drive being read only and the D being read write and would like for each to mount automaticall to save fiddling around every time I need to access my files - mainly pdfs and images.
Given this info and what it is I am trying to achieve, I hope you can lend further knowledge to the subject. It's just a little bit of a drag that I have to change sessions evry time I need to access these files. Hope you can help
My windows partition is a vfat which is of course different from the ntfs however the mount process should be the same for both. By placing "noauto,users,rw" as options I am able to mount windows as a regular user by "mount /windows" and can read as well as write to the folder.
As far as automounting them at boot I dont Know what the problem is.
is my new line in /etc/fstab. I added uid=1000 which is my user ID. Now I have access to the windows directory automaticly after boot.
As a side note. I did a little reading in the Suse administrators guide and I think, from what I read, that it is not a good idea to write to your ntfs directory from linux. You may want to make windows a fat file system so you can write to it from linux.
Can the uid be an alpha value............. most examples I've seen when googling seem to have numeric values. Is this actually the user account name in windows - or password or what?
To answer your question No, UIDs and GIDs are numerical values. Depending on what you are trying to achive each user should be assigned a unique UID. However you can assign more than one user the same UID but all usernames with the same UID will appear to the system to be the same user.
To go a little further if you look in your /etc/passwd file you will see your systems user info.
as an example:
iain:x:1004:100::/home/iain:/bin/bash
This equates to:
user name : password : UID : GID :: home directory : login Shell
- where you would have the alpha login for the user account of 'bingo'.
Every little bit helps and your input on this has been a lot of little bits, which equate to a heck of a lot. Thanks againg for everything on this thread
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.