Lost Windows/C
I reinstalled SUSE 10 last night and when looking at it now I saw that windows/c (my Windows partition) isn't visible. How do I fix that?
|
assuming it's still really there, add an entry to /etc/fstab, e.g.
Code:
/dev/hda1 /windows/c auto defaults 0 0 |
Brilliant, thanks. It's still there, on it now in fact (I know, heresy, but my girlfriend wanted the computer). It's on the main bootdisk though, so would I use hda0 instead?
|
The number refers to which partition it is on. There is no '0' partition
Example, hd - this is usually drives on an ide bus a - this means it is the primary master 1 - the partition number So something like 'hda7' means it is an ide device, its is the primary master and the partition number is 7. 'hdb1' would be and ide device, it is the primary slave and the partition number is 1. But when you get to something like a cdrom drive you don't get the numbers. Example, a cdrom drive on the ide bus at secondary master would be 'hdc'. To find which one is your windows partition as root do 'fdisk -l'. This will give you a list of the partitions on your harddrives. In the column labeled 'System' it will tell you what type it is. Windows will be either a NTFS or FAT type. :) |
Aha... Thanks. Learn something new every day with this Linux. I'll get this Linux up and running. It's not easy but when it works it's great.
|
Glad I could help.
:) |
Changed it and nothing happened. :( I changed 'hda1' to 'sda1' as that's how they all seem to be referred to as (tried it with 'hda' first though). Should I change something else?
(And the Windows drive is HPFS/NTFS.) |
Could you post the output of 'fdisk -l' and the contents of fstab, then we can see how things are looking.
:) |
Here's fstab:
Code:
/dev/sdb1 / reiserfs acl,user_xattr 1 1 And here's fdisk -l: Code:
Disk /dev/sda: 200.0 GB, 200049647616 bytes |
:confused: well fstab looks correct.
Have you created the mount point for it. In other words if you do 'ls -alh' in '/' are is there a directory called 'windows' then inside that one 'c' :) |
Nope, there's no windows folder at all.
|
That is where the problem now lies. You need to create the directories to mount to.
:) |
So just go in and do "New folder" and call one "windows" and inside create one called "c"?
|
Now it's showed up, but I can't make it accessible to my default user as it's "on read-only disk".
Thanks for your help, Snowtigger. It's much appreciated. |
Yes that is correct. You should do this as root and make ensure they have the permissions of Owner=RWX and the Group and Other=RX. The owner and group should be set to root.
To do this from the cli do 'mkdir -p /windows/c' :) |
Depending on what kernel you are running you may not get write access to an NTFS partition.
NTFS is not a native format to linux. It is possible to write to it and work is being done to improve this, but it is still a bit flakey. :) |
Fantastic, thanks. That's solved it all.
|
I think I spoke too soon. I can see windows/c as root, but when I go in as a user the folders are all locked. If I make one available, the subfolders don't change. Is there a way of changing them all?
I tried putting myself into the root group, but that didn't change anything. |
Quote:
Code:
dev/sda1 /windows/c auto defaults 0 0 Code:
dev/sda1 /windows/c auto ro,umask=0222 0 0 Code:
# umount /windows/c You can also remount a filesystem like this: Code:
mount -o remount /windows/c |
Thanks, that's actually solved it. What does the ro and umask=0222 do that it didn't previously do?
|
"ro" means mount it "read-only". This is probably what you want for an NTFS filesystem. I don't trust writing NTFS from Linux. It's still considered experimental. If it's a FAT32 filesystem. you can substitute "rw" for "read-write". Linux does just fine writing to FAT32.
"umask=0222" says make everything readable and executable (but not writeable) by everyone. Without the umask part, it would only be accessible by root (the userid that mounted it). This is what you ran into - root could see it, but others couldn't. Read up on permissions, octal, and masking if the above is not understandable. "man umask" is a start, but will be pretty cryptic if you don't already know what it is talking about. Great manpage, huh?! A high level overview is "set the umask to the opposite of the file permissions you want". You want permissions (owner, group, other): Code:
-r-xr-xr-x Code:
0555 Code:
0222 Code:
101101101 |
two other options that are useful, especially if they partition isn't mounted at boot are 'user' and 'users'
user lets any user mount the partition and only the same user (other than root) unmount it. users lets any user mount the partition and any user unmount it. again, only really useful if you have 'noauto' as well. |
Aha... So like a hotswappable hard drive?
This is really useful, so thanks a lot. I'm a latecomer to the world of (proper) computing. When I had to choose my career path in the early 90s, computing wasn't all that great. The university courses still had punch card elements. So I went with Political Science... I kept up with computing on an enthusiast level, but never dwelwed deeper into it. Now I'm doing a part time course in Computing, and teaching myself Linux, so hopefully one day I'll have a proper career in computing (albeit almost 15 years late). So everything like this is very, very useful, and it's greatly appreciated. |
Managed to create a FAT32 partition on my Windows drive, and then configured and mounted it successfully. I guess this is why I like Linux: once you get things to work it feels like a real achievement. :)
Now to put my mail folder on it... |
All times are GMT -5. The time now is 10:27 PM. |