LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-21-2005, 10:55 PM   #1
lmanwarren
Member
 
Registered: Oct 2003
Location: Norwich NY
Distribution: Fedora 3
Posts: 128

Rep: Reputation: 15
Slave Drive in Fedora


Running only Fedora right now got rid of XP.I have a 200 GB slave drive and I have saved alot of pics and stuff.Well in fedora where do I go to actually see these items and be able to work with them. Thank You
 
Old 03-22-2005, 03:47 AM   #2
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
do
Code:
/sbin/sfdisk -l
in a console, look for the 200Gb disk (maybe be /dev/hdb), find in the list the partition(s) with the data and mount it(them)
see
Code:
man mount
for details on how to mount it, for example, if your data is in
/dev/hdb4 and is a fat32, so something like
Code:
mount -t vfat /dev/hdb4 /mnt/data
would do it...
you can also do it writeable to users.... (see man mount...)

hope this help.
 
Old 03-22-2005, 01:20 PM   #3
Robert G. Hays
Member
 
Registered: Jan 2003
Location: Atlanta, Ga., USA
Distribution: Gentoo, Mandrake, ~others
Posts: 157

Rep: Reputation: 30
Notes:
if XP was pre-installed you probably have a single partition on the 200GB, named /dev/hdb1.

In any event, your data is *probably* on an NTFS partition, so may be read-only access under Linux, just so you know if you find you can't write to the 200GB. Maybe someone else can give advice on that one if needed.

LOL,
 
Old 03-22-2005, 07:00 PM   #4
lmanwarren
Member
 
Registered: Oct 2003
Location: Norwich NY
Distribution: Fedora 3
Posts: 128

Original Poster
Rep: Reputation: 15
Ok well what I have on drive i can replace so what commands do I need to run to rid the drive of the NFTS partion and set it back up with a FAT32 partion.I assume once a FAT 32 partion is in place I will see the drive inside Computer.
 
Old 03-22-2005, 09:40 PM   #5
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
First at all, as Robert said, no matter which filesystem do you have, you will see your partition(s) under Linux, BUT if it is a NTFS partition without an special program (usually (always?) non-free, see this for example) you will only be able to see it and to to write on it (i.e read-only) in the other hand, if your patition is FAT32 you'll have no problems and you will have full acces to it.
To convert the partition I would advise you to use Partition Magic (or similar program) (recomend a win program to do this because both FAT and NTFS are win-filesystems) ... But it depends on how much free space do you have in your 200Gb disk and how many partitions to decide which is the better way to do it...
send us the output of
Code:
/sbin/sfdisk -l
good luck!
and be carefull with the convertion as i could end in a loss of data, it'd be better to resize the NTFS(as small as possible) -> create FAT32 (in the unallocated sapce) -> copy data do FAT32 partition -> delete NTFS part. -> resize FAT32...(or creata an other FAT32 or an ext3 , as you like)

Last edited by bdox; 03-22-2005 at 10:30 PM.
 
Old 03-22-2005, 10:26 PM   #6
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
in FC you see your HDD's in a glance with:

Code:
hwbrowser
(in Hard Drives section)

Last edited by bdox; 03-22-2005 at 10:33 PM.
 
Old 03-22-2005, 11:04 PM   #7
Robert G. Hays
Member
 
Registered: Jan 2003
Location: Atlanta, Ga., USA
Distribution: Gentoo, Mandrake, ~others
Posts: 157

Rep: Reputation: 30
bdox is quite correct.
PM is *the* one I would suggest.

If you can still boot XP, you have 2 choices:

1)
a) boot XP & defragment the drive. My Computer, RIGHT-click C:, select tools, select defrag, & walk away for a while. *** Unless XP hides it somewhere else -- I don't use nor much know XP, but this is -probably- right.
b) NOW do PM, reduce as much as possible.
c) create F32 filling unused space.
d) boot linux, mount both, fins & move all you want *OR* as much as you can to new F32.
e) if need to move more, repeat b) through d) to get here again.

If you cannot boot XP, or if you'ld just rather...
(I've done this about 1,000,000 times, BUT I was using PM7 or earlier; for XPartition, I'd bet heavily you need PM8 or later. Probably still safe, and I won't make foolish noises about being sure to back up your drive... you know it, I know it, and the weed beside the mailbox-post knows it, but $$$ count, don't they?...

The Other Choice (Only, if you can't boot XP):
2)
Use PM to CONVERT ntfs to f32.
Yes you will lose data *ABOUT* files. Linux woudln't use anyways, and you're zaping XP, right? "Bye-ee."

End result either way: a f32 part (of whatever size) that Linux can read AND WRITE.

Best,
 
Old 03-23-2005, 10:45 AM   #8
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
what Robert says is right, but there could be easer ways to do it, but we'll need your
Code:
/sbin/sfdisk -l
output to find an optime solution. (or you tell us about your free space situation, master HDD partitions, sizes, etc...)
 
Old 03-23-2005, 11:25 AM   #9
Robert G. Hays
Member
 
Registered: Jan 2003
Location: Atlanta, Ga., USA
Distribution: Gentoo, Mandrake, ~others
Posts: 157

Rep: Reputation: 30
Yes, Imanwarren, come on, post that, please.
 
Old 03-23-2005, 08:41 PM   #10
lmanwarren
Member
 
Registered: Oct 2003
Location: Norwich NY
Distribution: Fedora 3
Posts: 128

Original Poster
Rep: Reputation: 15
[lynn@localhost ~]$ su
Password:
[root@localhost lynn]# /sbin/sfdisk -l

Disk /dev/hda: 77504 cylinders, 16 heads, 63 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 77504/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 12 13- 104391 83 Linux
/dev/hda2 13 4862 4850 38957625 8e Linux LVM
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
Warning: start=63 - this looks like a partition rather than
the entire disk. Using fdisk on it is probably meaningless.
[Use the --force option if you really want this]
[root@localhost lynn]#
 
Old 03-23-2005, 11:16 PM   #11
Robert G. Hays
Member
 
Registered: Jan 2003
Location: Atlanta, Ga., USA
Distribution: Gentoo, Mandrake, ~others
Posts: 157

Rep: Reputation: 30
Oops, repeat that line, but add a last term:

/sbin/sfdisk -l /dev/hdb

Note the '/dev/hdb'

Sorry about that, chief!
 
Old 03-24-2005, 12:49 AM   #12
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
oops... yeah, /sbin/sfdisk -l /dev/hdb as root will be ok
but /sbin/sfdisk -l as a normal user (non root) would be fine too. (the output must be about all the disks...
 
Old 03-24-2005, 04:19 AM   #13
lmanwarren
Member
 
Registered: Oct 2003
Location: Norwich NY
Distribution: Fedora 3
Posts: 128

Original Poster
Rep: Reputation: 15
[lynn@localhost ~]$ su
Password:
[root@localhost lynn]# /sbin/sfdisk -l /dev/hdb

Disk /dev/hdb: 24321 cylinders, 255 heads, 63 sectors/track
detected Disk Manager - unable to handle that
/dev/hdb: unrecognized partition
No partitions found
[root@localhost lynn]#
 
Old 03-24-2005, 12:12 PM   #14
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
hummmm.... i don't like that "No partitions found"... are you sure that is there data in that disk?
"No partitions found" is not good. look in the hwbrowser (command) for your disk and findout which partition contains the data, mount it and if root can't write (create, delate or modify) files there so you'd better copy the data to other place (in the master or in a new partition in the slave) and then it'd be good to format the partition as FAT32 or ext3. so... does hwbrowser see your partitions on the slave? which are their names (hdb3?, hdc4? ...)
 
Old 03-25-2005, 05:36 AM   #15
lmanwarren
Member
 
Registered: Oct 2003
Location: Norwich NY
Distribution: Fedora 3
Posts: 128

Original Poster
Rep: Reputation: 15
Well I did run fdisk /dev/hdb and deleted the partion.Now I seem to be not doing something right to get it set up with a new partion that I can work with.I tell it to do a new partion and tell it primary.I tell it 1 for beging and the other number it comes up with for end.But not sure how to tell it what type or what ever else I need to do.Its 200 GB and just want single partion.
 
  


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
Slave Hard Drive dudeman41465 Linux - Hardware 12 06-28-2005 06:19 AM
Slave drive problem Damien_III Linux - Hardware 2 04-08-2005 01:57 AM
Installing a slave drive brokenflea Linux - Hardware 3 02-15-2005 11:12 AM
Debian on master drive, now can I put a drive with W95 as slave? everest Linux - Software 0 07-03-2004 03:40 AM
Accessing Slave Drive dkochan Linux - General 1 11-25-2001 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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