LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-14-2013, 08:21 AM   #1
Dobbelme
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
adding 2nd internal HD to debian server


Hi,

i own a small debian wheezy server, containing 2 internal HD's, 1 USB 16Gb disk, and one 1TB USB drive.

i noriced, by using the command df -h, that my 2nd HD is not been mounted to the system.

Code:
/dev# df -h
Bestandssysteem                                        Grootte Gebruikt Besch Geb% Aangekoppeld op
rootfs                                                    917G      51G  820G   6% /
udev                                                       10M        0   10M   0% /dev
tmpfs                                                      25M     1,3M   24M   6% /run
/dev/disk/by-uuid/9e8f4419-f55b-4376-b273-df3318b4c4d2    917G      51G  820G   6% /
tmpfs                                                     5,0M        0  5,0M   0% /run/lock
tmpfs                                                      50M        0   50M   0% /run/shm
/dev/sdc1                                                  15G     166M   15G   2% /home/X/backup
/dev/sdd1                                                 917G     200M  871G   1% /home/X/disk2
/dev/sdc1 is the 16Gb USB drive
/dev/sdd1 is my 1TB usb drive

sfdisk -l show's:
Code:
Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+     31-     31-    248832   83  Linux
/dev/sda2         31+ 121508- 121478- 975764480   83  Linux
/dev/sda3     121508+ 121601-     93-    746497    5  Extended
/dev/sda4          0       -       0          0    0  Empty
/dev/sda5     121508+ 121601-     93-    746496   82  Linux swap / Solaris

Disk /dev/sdb: 121601 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1          0+ 121601- 121602- 976760833    5  Extended
/dev/sdb2          0       -       0          0    0  Empty
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
/dev/sdb5          0+ 121601- 121602- 976760832   83  Linux

Disk /dev/sdc: 1949 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdc1          0+   1948    1949-  15655311   83  Linux
/dev/sdc2          0       -       0          0    0  Empty
/dev/sdc3          0       -       0          0    0  Empty
/dev/sdc4          0       -       0          0    0  Empty

Disk /dev/sdd: 121601 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdd1          0+ 121600  121601- 976760031+   7  HPFS/NTFS/exFAT
/dev/sdd2          0       -       0          0    0  Empty
/dev/sdd3          0       -       0          0    0  Empty
/dev/sdd4          0       -       0          0    0  Empty
and parted /dev/sdb print all shows:
Code:
Model: ATA SAMSUNG HD105SI (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
 1      1048kB  1000GB  1000GB  extended
 5      1049kB  1000GB  1000GB  logical   ext4


Model: ATA SAMSUNG HD105SI (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size   Type      File system  Flags
 1      1049kB  256MB   255MB  primary                boot
 2      256MB   999GB   999GB  primary
 3      999GB   1000GB  764MB  extended
 5      999GB   1000GB  764MB  logical


Model:  USB DISK 2.0 (scsi)
Disk /dev/sdc: 16,0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32,3kB  16,0GB  16,0GB  primary  ext4


Model: SAMSUNG HD103SJ (scsi)
Disk /dev/sdd: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End     Size    Type     File system  Flags
 1      1024B  1000GB  1000GB  primary  ext4
based on this info i am pretty much sure that /dev/sdb1 is my 2nd internal HD.

by performing mkfs.ext4 /dev/sdb1 i should be able to ad a FS to it, and by mounting the device it should be reachable.

my question is, how i am be sure that /dev/sdb1 is truelly my 2nd HD?

i am afraid that i break something by performing the mkfs-command
 
Old 02-14-2013, 08:42 AM   #2
dilbert_uk
Member
 
Registered: Aug 2011
Location: Yorkshire (UK)
Distribution: Lubuntu 10.04, Puppy Wary 5.1.2
Posts: 45

Rep: Reputation: Disabled
Quote:
Originally Posted by Dobbelme View Post
based on this info i am pretty much sure that /dev/sdb1 is my 2nd internal HD.

by performing mkfs.ext4 /dev/sdb1 i should be able to ad a FS to it, and by mounting the device it should be reachable.
"sdb" is probably your 2nd drive. "sdb1" is an extended partition. An extended partition is only a container for other partitions.
"sdb" is partitioned in an, at least, unusual way. The only partition that you can try to format is "sdb5".
 
Old 02-14-2013, 01:48 PM   #3
Dobbelme
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
additional info:
Code:
# fdisk -s /dev/sda2
975764480
 
Old 02-16-2013, 05:39 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,601
Blog Entries: 2

Rep: Reputation: 4061Reputation: 4061Reputation: 4061Reputation: 4061Reputation: 4061Reputation: 4061Reputation: 4061Reputation: 4061Reputation: 4061Reputation: 4061Reputation: 4061
Quote:
Originally Posted by Dobbelme View Post
my question is, how i am be sure that /dev/sdb1 is truelly my 2nd HD?
As we can see in the output of df, your /-partition has the UUID 9e8f4419-f55b-4376-b273-df3318b4c4d2. Just run
Code:
blkid
as root and search for the UUID to find out which partition (and therefore which disk) is your system disk.
 
  


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
[SOLVED] 2nd SATA internal HDD, after partition, I cannot see it in OS. rockonwarock Linux - Hardware 17 12-17-2010 12:04 PM
2nd mail server adding to the mix sir-lancealot Linux - Server 3 06-07-2010 01:05 PM
debian: dhcp server works, just no internet on 2nd machine figmentium Linux - Server 0 01-21-2008 01:26 AM
Set up rsync to mirror mount on Windows Server to mount point on 2nd internal drive MoMule Linux - Server 4 04-13-2007 09:34 PM
Send email to internet from 2nd SuSE via internal postfix server joadoor Linux - Networking 2 12-25-2006 10:40 AM


All times are GMT -5. The time now is 08:25 AM.

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