[SOLVED] Both my Windows Partitions are still RO, even after reformat.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Both my Windows Partitions are still RO, even after reformat.
I have been trying to DL the version of DOS-box I prefer to C:\, but I made both the Win-lose partitions RO when I first installed / (call me crazy, but I was paranoid it might mess with an already broken install from nearly a decade ago with an OS that-shall-remain-nameless that's even older). Oops!
Incidentally, I have learned from shenanigans with Linux-drivers from nVidia that /home partition is definitely a good idea (another post for another time)...
Anyway: even though I specifically made sure I turned the RO flag off but definitely made both Win' part's "usable" in the Installer from the NETINST live-CD.
I had to format because GParted ("Partition Editor" under System -> Administration) wouldn't allow me to edit RW/RO thingy... Even when I logged in as /
I checked in fstab, but there's no RO flags listed.
I ar Stuck!
P.S. I may be using the word "flag" when I mean something else. When you run the Lenny graphical installer, and choose to manually partition-edit, and then choose to "use" your [I chose] FAT-32 partitions, there's a few setup choices that become available. Including "its mount-point shall be..." and these Extra Choices I'm referring to as flags, that are "RO", "Quiet?" and a third one I can't remember... Time for sleeping!
P.P.S. This is in Newbie because I'm convinced it's something really simple that I'm missing.
Give it a try (adjust the fstab line: s/ntfs/fat32).
Evo2.
Mine's in columns: so you don't mean add the rw flag to the options list?...
Example output from my fstab (as in gedit /etc/fstab):
/dev/hda1 /windows vfat utf8 0 0
I realise interpreting a vfat partition with utf8 dictionary is a bad idea (really didn't know what it was about when I first built it and now the startup tells me so every time)...
Columns? Yes, well I guess you could say there are six columns.
Quote:
so you don't mean add the rw flag to the options list?...
No I don't. The "defaults" option should take care of that.
Quote:
Example output from my fstab (as in gedit /etc/fstab):
/dev/hda1 /windows vfat utf8 0 0
I realise interpreting a vfat partition with utf8 dictionary is a bad idea (really didn't know what it was about when I first built it and now the startup tells me so every time)...
Ok, I so the s/ntfs/vfat explicitly, and even match your device and mountpoint:
but changed only the Pass order (so root gets checked first, then /windows then /home).
However: there is a fail next to the fscheck during boot-time citing "nls=utf8" as an incompatible argument for FAT systems. Using only the defaults option means nothing new happens, but the [UTF8 / FAT case-sensitivity warning! Grrr!] text is gone from the printout during boot.
There is no mount-point available to my non-priveledged user-account when I log in (i.e. when I am logged in as a "normal" user I get no icon on the Desktop to /windows). When I am in as Root however, I get both my Windows partitions and rw access. This appears to be the case no matter what boot options I use...
When I attempt to mount /dev/hda1 using Root Terminal (not in as Root again) I get this:
Code:
Debian-Evesham:/home/nick# mount /dev/hda1
Code:
mount: wrong fs type, bad option, bad superblock on /dev/hda1, missing codepage or helper program, or other error
It also notes "In some cases useful info is found in syslog - try dmesg | tail or so" (which I assume should read ending "...or some [other thing]")...
When I have time I will try out fstab with "nls=" missing from boot-options an find out where the System Log is...
Which version of windows do you have? Check the file system. It could be fat32 or ntfs.
sudo file -s /dev/hda1
Read though the man pages for mount and fstab. You can change the ownership of a mounted ntfs or vfat filesystem by mounting them with the "uid=" and "gid=" options. You can use your username and primary group name. Use "fmask=" and "dmask=" to change the permissions when it is mounted.
If this is an installed Windows system, then don't save to the system parts of Windows. Save to your users "My Documents" or a similar directory in your own area.
The FS' definitely Fat32, as the logo.sys proudly states "Windows Millenium Edition" (I can feel your shock and horror).
I didn't know that the MAN page had a separate section for FAT and VFAT... I like whoever added the note:
Quote:
Various misguided attempts to force Unix or DOS conventions
onto a FAT file system.
Anyway:
I have no idea what the right parameter for umask is meant to be (in case you were wondering) I'm just using what Evo2 suggested (see above)...
I'm not even sure what is meant by a bitmask. Sad, but true; but I do know not to write to System32 or even anywhere in C:\Windows ...
As stated, they have been RO since the beginning, even when I tried re-running the NETINST from CD.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.