LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Cant find other hard drive files (https://www.linuxquestions.org/questions/debian-26/cant-find-other-hard-drive-files-401007/)

rsuave 01-08-2006 07:39 PM

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.

bulliver 01-08-2006 08:01 PM

Quote:

In devices which i thought it would be theres a couple of files: hda, hdb but they have a lock on them.
Sounds like a simple permissions problem. Edit your /etc/fstab, and for the XP partitions, make sure 'user' option is there:
Code:

#example
/dev/hda1 /mnt/windows vfat noauto,user 0 0

Remount the drives, and the lock should be gone...

rsuave 01-08-2006 08:32 PM

Quote:

Originally Posted by bulliver
Sounds like a simple permissions problem. Edit your /etc/fstab, and for the XP partitions, make sure 'user' option is there:
Code:

#example
/dev/hda1 /mnt/windows vfat noauto,user 0 0

Remount the drives, and the lock should be gone...

/etc/fstab is a readonly file it wont let me enter anything

bulliver 01-08-2006 08:36 PM

Yup. You will need to be root to edit it...

LeftyAce 01-08-2006 08:39 PM

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.

rsuave 01-08-2006 08:44 PM

Quote:

Originally Posted by LeftyAce
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.

i did su to become root. i opened fstab in text editor it still wont let me type.

LeftyAce 01-08-2006 08:46 PM

hmmmmm. what text editor are you using? (you must use one started on the command line where you became root)

rsuave 01-08-2006 08:55 PM

ok got it opened properly now cant save it.

LeftyAce 01-08-2006 09:01 PM

"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.)

rsuave 01-08-2006 09:05 PM

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

rsuave 01-08-2006 09:14 PM

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

LeftyAce 01-08-2006 09:14 PM

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
use the arrow keys to position cursor, and add the line suggested by bulliver. Then hit <ctrl>+X to exit. Hit <enter> when it asks u if u want to save the changes (I think it says something about the "modified buffer").

rsuave 01-08-2006 09:27 PM

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

rsuave 01-08-2006 09:28 PM

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.

LeftyAce 01-08-2006 09:34 PM

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
Incidentally (spelling???) this problem and the fix suggested by bulliver are not distro specific, so it would have worked fine in the newb section. On the other hand, no harm done putting it here; I for one don't usually wander into the newbie forums.


All times are GMT -5. The time now is 10:51 PM.