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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-13-2004, 08:10 AM
|
#1
|
LQ Newbie
Registered: Nov 2004
Posts: 8
Rep:
|
hard disk issues RH9- complete beginner
hi there,
I'm very experienced with windows but an absolute beginner in Linux, I made the mistake of installing RH9 Linux thinking I'd have time to get into it. Now 9 months later, I've given up on this idea. My problem is this:
I have a 2 hard-disks in RAID 0 that have 180 megs of data I will call this HDA.
I want to reinstall my computer with Windows XP
I have borrowed a 200mb harddisk for backing up, HDB
my plan was:
1.install hard disk HDB
2.format hard disk HDB <-------------------- main problem.
3.copy data onto hard disk HDB
4.install windows on HDA
5.copy data back from hard disk HDB <---------- ???
so, my problem is this:
1. I don't know how to format a harddisk HDB, and I'm worried about formatting the wrong disk. I have no understanding of Linux file systems.
2. I need to format the harddisk HDB in such a way that when I install windows, I can read this directly from windows.
Is this possible?
When I install windows, can I just put the XP cd and reformat HDA, or will it not recognise it... should I try to fdisk from a dos prompt before installing XP as I've seen suggested on some forums?
thanks..
nick
|
|
|
11-13-2004, 09:28 AM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Just format it as vfat (fat32) then you can read it in both OSs.
|
|
|
11-13-2004, 03:08 PM
|
#3
|
LQ Newbie
Registered: Nov 2004
Posts: 8
Original Poster
Rep:
|
ahh ok.
what should I do to format the disk...?
thanks again!
|
|
|
11-13-2004, 03:48 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You can use:
mkfs -t vfat /dev/hdxY
Replace xY with the drive letter and partition number.
|
|
|
11-14-2004, 09:04 AM
|
#5
|
LQ Newbie
Registered: Nov 2004
Posts: 8
Original Poster
Rep:
|
So...
I've installed the disk, and set the bios to recognise it.
I've logged into RH9, opened a terminal window and logged in as root
when I try the command:
/sbin/fdisk -l (This is a lowercase L)
I get
hda 122.9 GB
/dev/hda1
/dev/hda2
/dev/hda3
hdb 122.9 GB
/dev/hdb1
/dev/hdb2
/dev/hdb3
which would be my previously installed two drives.
but I don't get any information about my new 200GB drive.
so, I'm guessing that my new disk is hdc and the partition would be 1
when I try your command:
mkfs -t vfat /dev/hdc1
I get an error saying it doens't know about that disk.
/dev/hdc1: No such device or address
I think I'm missing some steps..?
|
|
|
11-14-2004, 09:36 AM
|
#6
|
LQ Newbie
Registered: Nov 2004
Posts: 8
Original Poster
Rep:
|
further info:
my bios def. detects the disk properly.
when I start Linux, and the page with loads of text and the [ok] 's go past, I see only hda and hdb but no info on hdc
I'm not sure if this is important.
I've found a million tutorials online that say how to do this, but all assume that the fdisk -l shows the disk in question.
|
|
|
11-14-2004, 11:32 AM
|
#7
|
LQ Newbie
Registered: Nov 2004
Posts: 8
Original Poster
Rep:
|
hmm... not getting much help here... anyway, I'll continue:
Just did this: dmesg | grep -i hdc and found this:
hdc: Maxtor 6Y200P0, ATA DISK drive
hdc: driver not present
hdc: driver not present
hdc: driver not present
hdc: driver not present
hdc: driver not present
hdc: driver not present
hdc: driver not present
hdc: driver not present
hdc: driver not present
hdc: driver not present
perhaps I should have said that before installing this hard disk there was a CDROM drive attached to the cable.
|
|
|
11-14-2004, 12:03 PM
|
#8
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Is the drive the only one on that ide cable? Is the jumper set to configure it as master or slave?
|
|
|
11-14-2004, 12:14 PM
|
#9
|
LQ Newbie
Registered: Nov 2004
Posts: 8
Original Poster
Rep:
|
dave!! you're back!
right... yep, its the only one and its set to master.
I've been searching the internet, and found someone who had a similar problem.
I've had to remove a line from lilo.conf that was left from my old CD Rom, and now its putting the driver in properly.
now when I try fdisk I get this:
unable to read /dev/hdc
further, when I grep the dmesg I get:
end_request: I/O error, dev 16:00 (hdc), sector 0
hdc : bad access: block=0, count=8
end_request: I/O error, dev 16:00 (hdc), sector 2
hdc : bad access: block=2, count=6
end_request: I/O error, dev 16:00 (hdc), sector 4
hdc : bad access: block=4, count=4
end_request: I/O error, dev 16:00 (hdc), sector 6
hdc : bad access: block=6, count=2
|
|
|
11-14-2004, 12:24 PM
|
#10
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I assume when you say it was detected in the bios it showed up with the correct number of cylinders etc?
How sure are you that the drive actually works? Is it new?
|
|
|
11-14-2004, 01:11 PM
|
#11
|
LQ Newbie
Registered: Nov 2004
Posts: 8
Original Poster
Rep:
|
the drive isn't new, and no I'm not sure it works.
however, since I last spoke, I managed to get the fdisk to open the drive, although I'm not sure what I did to get that to happen, if anything at all.
so, now I must create my partitions...
but I'm not sure what to select.
fdisk - n ok...
then it asks me if I want to make a primary or extended - ?
|
|
|
11-14-2004, 02:50 PM
|
#12
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
For your purposes you will only need 1 primary partition.
|
|
|
11-14-2004, 06:30 PM
|
#13
|
LQ Newbie
Registered: Nov 2004
Posts: 8
Original Poster
Rep:
|
ok, ten and a half hours after starting this operation, its now copying...
what a nightmare.
thanks again dave for all your help!
nick
|
|
|
All times are GMT -5. The time now is 08:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|