LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-06-2004, 07:38 PM   #1
h0p3sf411
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Rep: Reputation: 15
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?
 
Old 03-06-2004, 08:11 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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
 
Old 03-06-2004, 10:50 PM   #3
h0p3sf411
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Original Poster
Rep: Reputation: 15
nope i left it as ntfs, and go here for those 3 commands http://dsnhw.tripod.com/snapshot.html
 
Old 03-07-2004, 12:01 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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...
 
Old 03-07-2004, 02:17 PM   #5
h0p3sf411
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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???
 
Old 03-07-2004, 02:29 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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...
 
Old 03-07-2004, 02:47 PM   #7
h0p3sf411
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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...

Last edited by h0p3sf411; 03-07-2004 at 03:00 PM.
 
Old 03-07-2004, 03:19 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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...
 
Old 03-07-2004, 04:02 PM   #9
h0p3sf411
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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....

Last edited by h0p3sf411; 03-07-2004 at 04:08 PM.
 
Old 03-07-2004, 06:29 PM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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
 
Old 03-07-2004, 08:03 PM   #11
h0p3sf411
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 03-07-2004, 08:17 PM   #12
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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...
 
Old 03-10-2004, 01:24 AM   #13
h0p3sf411
LQ Newbie
 
Registered: Mar 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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?
 
Old 03-15-2004, 02:23 PM   #14
h0p3sf411
LQ Newbie
 
Registered: Mar 2004
Posts: 22

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
External hard drive not showing up? newtwolinux Linux - Newbie 3 05-16-2005 10:49 AM
Hard drive in primary channel showing in secondary channel Ale Linux - Hardware 2 02-20-2004 11:39 AM
Red Hat 8.0 and NTFS Hard Drive Not Showing up Li-Wen Linux - Hardware 3 03-15-2003 08:15 PM
20G hard drive only showing up as 4G... BrianK Linux - Hardware 10 01-27-2003 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration