LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 04: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, 04:44 PM   #2
amishtechie
Member
 
Registered: Apr 2004
Distribution: Pop OS
Posts: 130

Rep: Reputation: 17
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, 04:45 PM   #3
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
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, 04: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, 08:08 PM   #5
amishtechie
Member
 
Registered: Apr 2004
Distribution: Pop OS
Posts: 130

Rep: Reputation: 17
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, 06:59 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 12: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, 01:13 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
what i usually do is disconnect the drive so i dont accidentally reformat the wrong one.
 
Old 02-08-2010, 04:55 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 04: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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