LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   hard drive not showing (https://www.linuxquestions.org/questions/mandriva-30/hard-drive-not-showing-154388/)

h0p3sf411 03-06-2004 07:38 PM

hard drive not showing
 
ok i have 2 harddrives, xp on master linux on slave. when i goto kdiskfree its not showing my first harddrive. what i did was reinstall xp, before that it was showing it and everything was working fine. how do i get it to come back up?

win32sux 03-06-2004 08:11 PM

did you change the filesystem (fat32/ntfs) when you re-installed xp???

what's the output of these 3 commands:

mount

fdisk -l

cat /etc/fstab

h0p3sf411 03-06-2004 10:50 PM

nope i left it as ntfs, and go here for those 3 commands http://dsnhw.tripod.com/snapshot.html

win32sux 03-07-2004 12:01 PM

okay, try this (as root):



make a directory to mount windows to if you don't already have one:

mkdir /mnt/windisk



see if you can then mount the ntfs partition to it:

mount -t ntfs /dev/hda1 /mnt/windisk



if yes, then add something like this to your /etc/fstab file and re-boot:

/dev/hda1 /mnt/windisk ntfs defaults 0 0




i'm assuming that because it worked for you before, you have ntfs support in your kernel...

by the way, it's better to _copy_and_paste_ command output _text_ right here into the thread instead of taking a screenshot...

h0p3sf411 03-07-2004 02:17 PM

hey thx for the help, i did the first 2 steps you asked me to do, and the third...i don't know if its me but i don't see the /etc/fstab ...and how do i add /dev/hda1 /mnt/windisk ntfs defaults 0 0???

win32sux 03-07-2004 02:29 PM

so you were able to mount the disk??? did it show-up on your kdiskfree after step 2???

the step about /etc/fstab is so the disk will be mounted automatically at startup...

that file contains the info about what to mount and how...

you need to open (as root) the file with a text editor so you can add the line to it...

but the idea is to only edit the /etc/fstab when you are sure you successfully mounted the windows disk...

h0p3sf411 03-07-2004 02:47 PM

ok yes it did show up in kdiskfree...but its saying i don't have access rights to enter it...fstab keeps saying i don't have permisson to open it even though i'm in root...

win32sux 03-07-2004 03:19 PM

by "i'm in root" i take it you mean you are user "root", right???

okay, how are you trying to open/edit the file???

the easiest way to edit it is with "vi":

vi /etc/fstab

but vi is tricky at first...

you could probably echo the line to /etc/fstab (but really, you _do_ need to get through this editor problem cuz editing text files is something fundamental in linux):

echo "/dev/hda1 /mnt/windisk ntfs defaults 0 0" >> /etc/fstab

that would append the line to /etc/fstab... and then you wouldn't have to do the whole "mount" thing every time you boot...

h0p3sf411 03-07-2004 04:02 PM

ok i figured it out how to do it with kwrite...and i was wondering if there was any way to open the harddrive in kdiskfree without having to be in root?

and also i can't move anything into the first harddrive it keeps saying could not make directory, or could not write file....

win32sux 03-07-2004 06:29 PM

Quote:

Originally posted by h0p3sf411
i was wondering if there was any way to open the harddrive in kdiskfree without having to be in root?

i'm not exactly sure what you mean... you don't have to be root to open kdiskfree... kdiskfree is basically a graphical monitoring tool, you don't really use it to "open the harddrive"...

once you have your /etc/fstab correctly configured, you can access the drive using your regular applications and file managers without having to be root...


Quote:

Originally posted by h0p3sf411
and also i can't move anything into the first harddrive it keeps saying could not make directory, or could not write file....

well, i'm guessing ntfs partitions are mounted read-only by default as write support for ntfs is very dangerous... you'd be risking your ntfs partition by writing to it from linux...

if you really want to be able to read and write to your windows partition safely, then install windows using fat32 instead of ntfs... fat32 support in linux is great...

http://linux-ntfs.sourceforge.net/info/ntfs.html#3.0

h0p3sf411 03-07-2004 08:03 PM

well before i reinstalled i moved all my stuff that i wanted to keep onto the linux...so i guess its not good to move them back?

and what i meant was when i open kdiskfree and try to open the hd it says i don't have access or permission...so i have to goto konsole and open kdiskfree from root then i'm allowed to enter it.

win32sux 03-07-2004 08:17 PM

i'd say no, don't move it back into the ntfs like that, it could get very ugly...

just re-install windows (if possible/viable) using fat32 and then you can copy all your stuff to it and you'll be able to work safely with your windows partition without any problems...



what exactly is it that you are using kdiskfree for???

i'm not familiar with kdiskfree as i've never really used it for anything (besides seeing how much disk space is free in a graphical manner) and i don't quite understand yet what it is you are using it for...

if you are using it to make changes to the disk setups and partitions or mounts and stuff (if that's what it does, i don't know) then you would have to be root to do those things as no regular user is allowed that kinda power by default in linux...

h0p3sf411 03-10-2004 01:24 AM

i just use kdiskfree to get into the harddrive heh, quicker i guess...
ok so, say i got a p2p file sharing program, and they were downloading from me, would it screw things up for them if they were using ntfs?

h0p3sf411 03-15-2004 02:23 PM

can anyone tackle that question? or this one? say i burn files to a cd and then copy it to ntfs, would that work?


All times are GMT -5. The time now is 10:27 AM.