LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 09-24-2004, 10:33 PM   #1
Necrophagist
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Windows/Linux Dual Boot Harddrive Failure


I have a 40gig harddrive with two partitions. One Windows XP, the other Fedora Core1. Both are 20 gig each. Recently Windows crashed and will not boot into it anymore, but Linux works fine. I want to know if there is a way to save my files on the Windows partition through Linux before I resort to reformatting and losing them. I am very new to Linux and would need very basic instruction.

Any help would be greatly appreciated.
 
Old 09-24-2004, 10:50 PM   #2
owdeuk
LQ Newbie
 
Registered: Sep 2004
Location: England
Distribution: SUSE 9.2
Posts: 8

Rep: Reputation: 0
Pretty easy to do. You need to mount the windows partitions and then copy the stuff over. Saw a thread earlier on how to do it but can't find it now. Sorry. The permanent mount settings would be in your /etc/fstab file. (or sommet like that). Or just do a manual mount at the cli. (Dunno the correct syntax as I'm @ work atm). Do "man mnt" at the cli and it should tell you the syntax. (B & F to scroll back and forward)

If you re-install winders it will overwrite your mbr and stop you from loading Linux. Well it did for me a while ago. But I suppose you can get round that by re-installing the boot loader, but I ain't gone down that path.
 
Old 09-24-2004, 10:50 PM   #3
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 57
hi there

why don't u mount them in ur linux partiton and save ur files

also check out some tools at ultimateboocd.com

regards
 
Old 09-25-2004, 12:09 AM   #4
Necrophagist
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Not to be rude but when I said I was new I meant straight from the womb, I am afriad step by step directions will be needed and you must assume I know nothing.

If anyone can help me into infancy I would be very grateful.
 
Old 09-25-2004, 02:09 AM   #5
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
necrophagist; try http://tldp.org/HOWTO/HOWTO-INDEX
from table of contents open section installation then section on partition & boot. open(expand) each section & subsection for detailed guidance information (step by step). which ever os u have if bought cd package did it have the user manual & reference manual? those also have detailed guidance instructions (step by step), other wise buy them for future reference.
 
Old 09-25-2004, 02:10 AM   #6
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 57
hi there

the below is extract from a help page i had written for my LUG
----------------
First of all you need to see which partition you want to mount
YOU can see that by running the following command at bash# prompt

#fdisk /dev/hda

If your hard disk is use

Primary master hda
Primary slave hdb
Secondary master hdc
Secondary slave hdd

If you use wrong device then you may get error message such as
"Cannot open device hdc"
If command is successful you get

[root@gaurav qmail]# fdisk /dev/hda

The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
And could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):


At this prompt run p single character to see your partition table

Here is the result of my partition table


Command (m for help): p

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 561 4506201 b Win95 FAT32
/dev/hda2 562 3939 27133785 f Win95 Ext'd (LBA)
/dev/hda3 3940 4385 3582495 a5 FreeBSD
/dev/hda4 4386 4865 3855600 83 Linux
/dev/hda5 562 1096 4297356 7 HPFS/NTFS
/dev/hda6 1097 1606 4096543+ b Win95 FAT32
/dev/hda7 1607 3008 11261533+ b Win95 FAT32
/dev/hda8 3009 3872 6940048+ b Win95 FAT32
/dev/hda9 3873 3939 538146 b Win95 FAT32


You can easily recognize which drive you want to mount
Here I have my windows partitions as

devices Windows Partitions

/dev/hda1 C
/dev/hda5 D
/dev/hda6 E
/dev/hda7 F
/dev/hda8 G
/dev/hda9 H


Do not confuse with /dev/hda2
It is my extended partition you cannot mount that whole partition but you can only mount the logical drives in this partition

Here say if I want mount my E drive in Linux
I need to have an empty folder somewhere to mount.
We can make a folder anywhere but as going by the convention we make all the folders and mount them in
/mnt folder
So, go to the mnt folder under root directory
Make a new folder in mnt directory say win_e

If you want to mount it temporarily (till the system is running)
You can mount it by the following command

#mount /dev/hda6 /mnt/win_e

The syntax of the command is easy to interpret
/dev/hda6 gives the device you want to mount
/mnt/win_e gives the path of folder you want to mount

Now if you want to mount your partitions your drives permanently you can do that by making an entry in /etc/fstab file
This file is read each time the system boots.
And so it mounts the partitions listed in this drive
You can add an entry to this file as under corresponding headings

/dev/hda9 /mnt/win_h auto defaults 0 0

the above line refers to
/dev/hda9 gives the device
/mnt/win_h gives the path of the folder
auto tells to detect the filesystem automatically

defaults these two basically deal with the type of mounting we are
0 0 performing and where we want to dump the partiton (related to backing of ext2 filesystem)
-----------------


regards
 
Old 10-04-2004, 08:41 AM   #7
Stubowes
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
My Linux Dual boot

I have quite recently done much of the sameness with my computer - AMD xp2600+, 512DDR, 1x20Gb 1x30Gb HDD.
The 20Gb hard drive is split into two - XP, mandrake 9.0 - and the boot up works fine for both. (with negotiable glitches in M9)
The 30Gb hard drive is for downloads and music etc... (only visible in XP)

As above, the problem i mainly have is the ability to see my Windows discs from the Linux side, and vice versa from the XP side.

The above advice (masand) was very helpful but I have a question:

http://www.linuxquestions.org/questions/newreply.php
http://www.linuxquestions.org/questi...wreply.php#Can I mount the windows partition and the 'downloads' drive - PERMANATLY - without losing data or boot capability?
 
Old 10-04-2004, 08:42 AM   #8
Stubowes
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Or...

I have quite recently done much of the sameness with my computer - AMD xp2600+, 512DDR, 1x20Gb 1x30Gb HDD.
The 20Gb hard drive is split into two - XP, mandrake 9.0 - and the boot up works fine for both. (with negotiable glitches in M9)
The 30Gb hard drive is for downloads and music etc... (only visible in XP)

As above, the problem i mainly have is the ability to see my Windows discs from the Linux side, and vice versa from the XP side.

The above advice (masand) was very helpful but I have a question:

http://www.linuxquestions.org/questions/newreply.php#
http://www.linuxquestions.org/quest...ewreply.php Can I mount the windows partition and the 'downloads' drive - PERMANATLY - without losing data or boot capability?
 
Old 10-04-2004, 08:44 AM   #9
Stubowes
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Bugger

Oh well - i have another question - how do the smilies work?

Is it... like this?

 
Old 10-04-2004, 08:47 AM   #10
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 57
hi there

did u put an entry for that in ur /etc/fstab file ,as i have mentioned in my above post

regards
 
Old 10-04-2004, 09:01 AM   #11
Stubowes
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
The Fear

I haven't actually tried it yet but the explanation sounds pretty good and i copied to notepad for easy reference when i get home from work...

Im simply worried that i'll manage to mount the drive and i'll boot windows to find that i cant access my 15Gb of music and video... all of which would be a MISSION to re-rip.

Just want to know if mounting an XP disc in Linux (mand. 9.0) will make the disc unreadable to XP. or worse, will it auto format or something silly like that? just wanna read and write to it, not re-format it.

Thus, my next question is...... .......how do i modify what you have previously posted to make drives read AND write mounted? do i need to be root or can i set the permissions.

I've used DOS and windoes for years but created this dual boot over the weekend and don't really know much yet, so an idiots guide would be preferred :-p

Cheers guys - keep up the good wor!k!
 
Old 10-04-2004, 09:08 AM   #12
Stubowes
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Also

Also... the 30Gb drive is 'downloads' and im sure it used to be an 80gb drive... however i have more on the drive than i can fit onto the other drive (to backup) - what XP programs do you know of that will allow me to resize the partitions so as not to lose all my data, only lose the 'unpartitioned space' either side and merge this into the total drive size?

IT IS IMPERATIVE THAT I DO NOT LOSE DATA!!!!!! i'm sure you understand
 
Old 10-04-2004, 09:20 AM   #13
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 57
hi there

u won't loose ur data if u doot play with fdisk on linux without knowledge
and
u can proceed to mount that in read only mode,but u won't be able to make any changes to that drive
or u use a different account in linux with read only rights to the user

regards
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 03:29 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 11:37 AM
How do I dual boot Linux and Windows XP from Windows boot file andyri Linux - Newbie 4 08-04-2004 10:09 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Linux Installation FAILURE harddrive not detected lysol Linux - Hardware 35 07-30-2004 03:19 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration