LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-25-2004, 12:51 PM   #1
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Rep: Reputation: 0
hardrives


I can't see my second hard Drive on the GUI.
I'm a newbie and I'd like to know how to make my second hardrive to show on my folder.
If I run harddrake as root I can see it there, but I can't see it when I'm as the main user.
I installed Mandrake 9.2 and formated hd1 but the second hard drive was also formated and I'm afraid I lost some files there.
Hardrake shows the following information for my hardrives.
Hda1
Bus:Ide
Channel: primary
New devfs device: /dev/ide/host0/bus0/target0/lun0/disc
Old device file: /dev/hda

Hdb5.
Bus: ide
Channel: /dev/ide/host0/target1/lun0/disc
Old device file: /dev/hdb

I also checked the mounting for the hardrives in /etc/fstab and it shows that it is
OK.

/dev/hda1 / ext2 defaults 1 1
/dev/hdb5 /home ext2 defaults 1 2

What do I need to change in order to see my second hardrive after I bootup.
Thanks.
lloco-guzm
 
Old 08-25-2004, 01:02 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
Diskdrake does not show any other partitions othen then hdb5.

To find out the partition layout of the 2nd drive. Log in as root in a console window and enter the following command:
fdisk -l /dev/hdb (that is a small L)
 
Old 08-25-2004, 07:12 PM   #3
nafan
Member
 
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172

Rep: Reputation: 30
It looks as though you have your first hard disk mounted as /, with the second hard disk mounted as /home. Drives in Linux don't appear the same way as in windows explorer. It appears to you as if /home is on your first disk, but it actually lives on the second drive.
If you created an ext2 filesystem on your second hard disk then it would have had to be formatted. Did you resize any existing windows partitions on this drive during the mandrake install?
Can you open konsole, use 'su' to change to root and get a partition table list using fdisk for your two drives?. That way we can see what has happened
Code:
fdisk -l /dev/hda
and
fdisk -l /dev/hdb
 
Old 08-27-2004, 09:02 PM   #4
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for your response. I havn't do any other change to my system yet, but let me give you some more information about my problem.
I do have a /home directory on my hda1 but it's not my second hardrive.
also when I ran hardrake, yes I have another partition on hy second hard drive as hdb1 with swap as file format and the second partition as I said before hdb5 with ext3 as file format.
Thanks for your help.
The one who never asks will never learn.
 
Old 08-28-2004, 08:30 AM   #5
nafan
Member
 
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172

Rep: Reputation: 30
The /home directory that you see lives on your first hard disk and is called a mount point. When your second hard disk gets mounted, all the files that live on it appear inside /home. Having all your home directories on that second hard disk is quite good, as if something goes badly wrong, you can reinstall Mandrake and tell it to use that /dev/hda5 and mount it as /home. That stops all your settings and personal files being deleted by mistake.

Last edited by nafan; 08-28-2004 at 08:34 AM.
 
Old 08-28-2004, 10:17 AM   #6
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you for explaining the way how two hardrives behave under linux.
The problem is that when I open the /home directory I got two folders made by mandrake one under my 'name' and the other called 'my documents', but none of this folder reside in hdb5. They reside in hda1.
At first I thought that this directory reside on hdb5 but it doesn't. This is my problem. I don't have a directory that would point to hdb5.
Thanks for your help.
 
Old 09-01-2004, 12:23 PM   #7
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you one more time for your reply.
Yes, you were right. After checking with detail my system. The /home directory points to my second hardrive. I'm a newbie for sure.
But I have a second question related to this issue.
Before I installed mandrake 9.2 I had some files on hdb I have looked all over the directories and I couldnlt find those files.
Is it still posible that those files are still hidden some place?
When I installed mandrake 9.2 I didn't asked to format hdb neither I resized, but mandrake did it anyway.

This is the information that I get whe I ran fdisk.
Disk /dev/hda:3228 MB
DeviceBoot Start End Blocks Id System
/dev/hda1* 1 782 3152992+ 83 Linux

Disk /dev/hdb:2564 MB
DeviceBoot Start End Blocks Id System
/dev/hdb1* 1 126 508000+ 82 Linux Swap
/dev/hdb2 127 621 1995840 5 Extended
/dev/hdb5 127 621 1995808+ 83 Linux

Do I still have any chances to recover any file from hdb?
Thank you.
 
Old 09-01-2004, 12:56 PM   #8
nafan
Member
 
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172

Rep: Reputation: 30
As far as I know (someone correct me if I'm wrong) if the Mandrake installer is run in 'Basic' mode repartitions your disks automatically, and formats them for you, especially if your system was all windows and the installer had to create linux partitions.. If there were any needed files on them before hand, they are lost and gone forever. The way to get around this is to use the 'Expert' install method and set out your partitions manually. The Mandrake installer may still ask if you want to format partitions that havent been changed and you need to clear the checkboxes to say no.

Sounds like you've just hit that nice point we've all been at during/after re-installs where you think 'I won't do that again...'
 
  


Reply



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
bootloader for two hardrives OneOfFive Linux - Newbie 2 09-14-2005 06:56 PM
multiple hardrives blitzX Linux - Hardware 5 01-02-2005 08:31 PM
2 hardrives how do I acces the second one? Hobbe Mandriva 5 10-08-2004 09:46 AM
help on mounting my hardrives jaem Linux - Newbie 5 07-05-2003 07:09 PM
Permissions To Other Hardrives?? shooter Linux - Newbie 1 10-21-2001 05:56 AM

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

All times are GMT -5. The time now is 07:18 PM.

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