LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2004, 04:14 PM   #1
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Rep: Reputation: 30
Accessing my second HD


I was running a windows XP system before switching to linux, only about an hour ago. I have two hard drives. My OS was on one HD while music and other important files were on the second one. Now that I have installed mandrakelinux on my first HD, I cannot access my second HD. It is either not listed or I am told I do not have access to it.

How can I get to my second HD?
 
Old 10-18-2004, 04:18 PM   #2
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
type fdisk /dev/hdb ... diose it work?
 
Old 10-18-2004, 04:19 PM   #3
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
Ah ... I found a thread that seems to answer my question ... http://www.linuxquestions.org/questi...hreadid=243505

I tried to run the command and it said " mount: only root can do that"
 
Old 10-18-2004, 04:38 PM   #4
mary
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 135

Rep: Reputation: 15
Code:
su - root
Before you run the command.
 
Old 10-18-2004, 05:27 PM   #5
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
*hits himself*
*sigh*
i can be a right idiot sometimes
 
Old 10-18-2004, 06:29 PM   #6
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
Thanks much!

Now how to find the darned thing ...

I've been way way too conditioned to windows ...

Last edited by aje; 10-18-2004 at 06:38 PM.
 
Old 10-18-2004, 07:31 PM   #7
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
If you have ran the mount /dev/hdb command as root and didn't get any errors than you mounted your second hard drive no problem.

Now as for your main question as to where to find it, when you use the mount command, unless you tell it otherwise, it will put the mounted drive into the /mnt directory. Open up a terminal (command prompt) and type in

Code:
ls /mnt
you should see a few directories. floppy, cdrom, and hopefully one other. This other folder (hdb perhaps, I'm not sure what Mandrake calls it by default), is where your second hard drive should have it's contents.

Hope that helps and as always if it doesn't work feel free to post back and we'll see what else we can do.

Cheers

Tap
 
Old 10-18-2004, 07:40 PM   #8
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
That folder is named win_c2 on my system.

And it is locked ... How can I get access to it?
 
Old 10-18-2004, 07:41 PM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
What do you mean by locked? Please give the exact commands your running and the output.

EDIT:
Ane post the contents of your /etc/fstab file.

Last edited by darthtux; 10-18-2004 at 07:44 PM.
 
Old 10-18-2004, 07:49 PM   #10
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
I went to file:/etc/fstab and got this:

---------------------------------------------------------------
/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom auto user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
/dev/hdd /mnt/cdrom2 auto user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
/dev/fd0 /mnt/floppy auto user,iocharset=iso8859-1,sync,codepage=850,noauto,exec 0 0
/dev/hdb1 /mnt/win_c2 ntfs nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
none /mnt/hd supermount dev=/dev/ide/host0/bus0/target1/lun0/part1,fs=ext2:vfat,--,iocharset=iso8859-1,kudzu,codepage=850 0 0
---------------------------------------------------------
And by locked I mean I went to it through konqueror, the folder icon had a lock on it, I tried opening it and it said that Access is denied, and that I do not have the permissions to access it.

I am able to access it through the konsole, but I am now currently wondering how I would go to my 30gb music folder and choose songs to play in whatever media player i go through the struggle of installing soon ...

I only began using linux an hour or two ago ...
 
Old 10-18-2004, 08:14 PM   #11
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Change the line to:

/dev/hdb1 /mnt/win_c2 ntfs nls=iso8859-1,defaults,users,umask=0222 0 0

Then run
mount -a

Last edited by darthtux; 10-18-2004 at 08:16 PM.
 
Old 10-18-2004, 08:23 PM   #12
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
I can't write to it directly, and I opened it in Kwrite, and it says I can't save it ...

----------------
The document could not be saved, as it was not possible to write to file:/etc/fstab.
Check that you have write access to this file or that enough disc space is available.
---------------------

 
Old 10-18-2004, 08:28 PM   #13
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
You have to be root

su -
enter root password
pico /etc/fstab

The key combinations for pico are on the bottom of the screen ^ equals the control key.
 
Old 10-18-2004, 08:36 PM   #14
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
For some reason, even when I go into root through the konsole, I still cannot gain access to the folders. And when I enter /etc/fstab, i'm told "bash: /etc/fstab : permission denied:


And I don't understand what you mean by pico

Last edited by aje; 10-18-2004 at 08:37 PM.
 
Old 10-18-2004, 08:44 PM   #15
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
You have to use a text editor. pico is a text editor. Type in

Code:
pico /etc/fstab
If you don't have pico try nano.
 
  


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
Accessing LAN from outside OliXNet Linux - Networking 11 02-08-2005 05:46 AM
Accessing I'm a newbee Linux - Software 0 03-20-2004 10:01 PM
Accessing the /ect Daredevil Linux - Newbie 1 03-05-2004 09:34 AM
accessing partitions. nits Linux - General 2 10-03-2003 09:48 AM
accessing a partition dlwheeler Linux - General 2 01-28-2002 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 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