LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-05-2010, 05:38 PM   #1
dahliash
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
identify files on sda, sdb


Hi,

I have two hard drives, sda and sdb. Windows resides on one and Linux on the other. Before I reinstall Linux from scratch, I want to make sure I know which is which so that I don't end up erasing my windows drive.

How can I identify which files/directories are sitting on each drive?

I.e. how do I find out the mount points of /dev/sda/ and /dev/sdb/ ?

I have searched the archives but haven't found a reply.

Thanks!
Dahlia.
 
Old 02-05-2010, 05:44 PM   #2
amishtechie
Member
 
Registered: Apr 2004
Location: Oberlin, OH
Distribution: Slackware
Posts: 119

Rep: Reputation: 16
Run the command "fdisk -l" as root. You should be able to determine the location of your windows install from the type of filesystem used on the disk.
 
Old 02-05-2010, 05:45 PM   #3
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
If there are two Hard Drives then when you get to the partitioning section of the install CD one drive will be listed as having a windows partition and the other as having a Linux partition. Pick the one with Linux on it.
 
Old 02-05-2010, 05:57 PM   #4
dahliash
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by amishtechie View Post
Run the command "fdisk -l" as root. You should be able to determine the location of your windows install from the type of filesystem used on the disk.
Thanks.
I see sda1 and sda2 as Linux and Linux LVM, respectively.

1. I guess this means that sdb has to be the Windows disk - correct?

2. What is Linux LVM? I'm asking in order to figure out whether I need to recreate this setting in the new installation I'm about to run.

Thanks,
Dahlia
 
Old 02-05-2010, 09:08 PM   #5
amishtechie
Member
 
Registered: Apr 2004
Location: Oberlin, OH
Distribution: Slackware
Posts: 119

Rep: Reputation: 16
Yes, Windows should be on sdb if sda has all of your Linux partitions. To be sure, make sure the output of the above command lists the file system on sdb as either FAT32 or NTFS. LVM is an acronym for Logical Volume Manager. Hope it helps.
 
Old 02-07-2010, 07:59 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,254

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
You can post the output from

fdisk -l

(lower L) if you're not sure and we'll have a look.
 
Old 02-08-2010, 01:59 PM   #7
dahliash
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Here is the full output:
(I don't see the content of /sdb)

[root]# /sbin/fdisk -l

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 182401 1465031610 8e Linux LVM
[

Quote:
Originally Posted by chrism01 View Post
You can post the output from

fdisk -l

(lower L) if you're not sure and we'll have a look.
 
Old 02-08-2010, 02:13 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
what i usually do is disconnect the drive so i dont accidentally reformat the wrong one.
 
Old 02-08-2010, 05:55 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,254

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
If that really is the complete output, it looks like sdb has been disconnected. fdisk should show all disks if you don't specify one.
 
1 members found this post helpful.
Old 02-08-2010, 05:59 PM   #10
dahliash
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks!

Quote:
Originally Posted by chrism01 View Post
If that really is the complete output, it looks like sdb has been disconnected. fdisk should show all disks if you don't specify one.
 
  


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
Device name confusion (sda VS sdb) Virchanza Linux - General 5 01-11-2010 07:58 AM
How do I keep sda from changing its name to sdb? kinetic Linux - Hardware 3 06-22-2008 09:01 PM
Changing sda to sdb mickeyboa Fedora 4 04-21-2008 01:22 AM
New disk presentation allows sdb but not sda to be partitioned sbf132 Linux - Hardware 0 02-12-2008 08:21 PM
sda or sdb? stevest SUSE / openSUSE 7 12-18-2007 12:57 PM


All times are GMT -5. The time now is 11:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration