Cant find other hard drive files
I have a dual boot system.XP Pro on one drive and Debian on a seperate drive.I have used a couple of linux os's before (mandrake,Suse,Ubuntu) and in each linux os i could see the drive my xp pro was on.I have looked for ages trying to find my other drive in Debian so i can use some of the windows files that are used by both and they are nowhere to be seen.In devices which i thought it would be theres a couple of files: hda, hdb but they have a lock on them.
Also i tried putting a text file and a programme on cd from XP to open in debian but it read nothing. Hope someone can please help me. |
Quote:
Code:
#example |
Quote:
|
Yup. You will need to be root to edit it...
|
you must be root to edit /etc/fstab. Open a command line and type su and hit enter. It will prompt for the root password (which will not display at all as you type it). If su was successful, you can type whoami and be told "root". If you entered the password incorrectly, su will give an error (sorry if these instructions are unnecessary; it speeds things up to give them to you up front)
Once root, use a text editor such as nano to edit the fstab file. EDIT: Sorry bulliver; took so long typing mine I didn't see you'd posted back already. |
Quote:
|
hmmmmm. what text editor are you using? (you must use one started on the command line where you became root)
|
ok got it opened properly now cant save it.
|
"can't save it" do you get an error? what does it say? (I assume it's opened as a non-readonly file) Make sure it's not open in any other editors.... and if ur root, there should be no problem. (which editor are you using? if it's on the command line, that's ok but I don't know if a graphical editor launched by root will have root permissions.)
|
using GEDIT
it says /fstab is read only do you want to replace it .I said yes but it said could not save it by the way this what it said when i useed fdisk Disk /dev/hda: 40.0 GB, 40060001280 bytes 255 heads, 63 sectors/track, 4870 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 4869 39110211 7 HPFS/NTFS Disk /dev/hdb: 10.2 GB, 10245537792 bytes 255 heads, 63 sectors/track, 1245 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 1245 10000431 |
Also this was my fstab file before i typed anything
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/hdb1 / ext3 defaults,errors=remount-ro 0 1 /dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 |
Aha. That's the problem. Don't use GEDIT. I'm pretty sure you have to use a command line text editor in order for su to give the editor root priveleges. So, in your console, become root and type
Code:
nano /etc/fstab |
ok i ve done that. A Windows directory appeared but got this message
Unable to mount the selected volume.: mount: mount point /mnt/windows does not exist |
thanks for your help guys. The reason i didnt put this in newbie is i thought id be better off putting it in its own os.
|
Not sure what you mean by "a windows directory appeared"
But, I do know what the mount error means. There's no directory called /mnt/windows, yet you're trying to mount the windows partition in a directory by that name. As root, create a /mnt/windows directory by typing Code:
mkdir /mnt/windows |
All times are GMT -5. The time now is 10:51 PM. |