LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Both my Windows Partitions are still RO, even after reformat. (https://www.linuxquestions.org/questions/linux-newbie-8/both-my-windows-partitions-are-still-ro-even-after-reformat-782513/)

GrubbySeismic 01-15-2010 09:46 PM

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.

evo2 01-15-2010 10:05 PM

It's probably the mount options. Something like the following should work for ntfs

Code:

/dev/sda1  /foo            ntfs defaults,nls=utf8,umask=007,gid=46  0  1
Evo2

GrubbySeismic 01-15-2010 10:26 PM

Thanks for the speedy response; does that differ much for FAT32? Both part's are definitely formatted with a file allocation table...

evo2 01-15-2010 10:32 PM

Give it a try (adjust the fstab line: s/ntfs/fat32).

Evo2.

lupusarcanus 01-16-2010 01:17 AM

You have to *unmount* the Winblows partition first before editing. Mounting is simply mounting the file system so it can be read, not wrote too.

If all you gotta do is delete it, unmount and format.

GrubbySeismic 01-17-2010 05:19 PM

Quote:

Originally Posted by evo2 (Post 3828269)
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)...

evo2 01-17-2010 06:13 PM

Quote:

Originally Posted by GrubbySeismic (Post 3830175)
Mine's in columns:

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:
Code:

/dev/hda1  /windows          vfat defaults,nls=utf8,umask=007,gid=46  0  1
Where the gid=46 is assuming the plugdev group and may not be needed.

Evo2.

GrubbySeismic 02-04-2010 07:43 AM

Sorry this took a while, but I've been playing with it :D

Following the boot-options advice: I have used the line:

Code:

/dev/hda1  /windows          vfat defaults,nls=utf8,umask=007,gid=46  0  1
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]")... :scratch:

When I have time I will try out fstab with "nls=" missing from boot-options an find out where the System Log is...

jschiwal 02-04-2010 08:16 AM

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.

GrubbySeismic 02-04-2010 05:17 PM

Ta!
 
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... :o 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.


All times are GMT -5. The time now is 07:13 AM.