Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 11-15-2007, 04:53 PM   #1
LQ Newbie
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
Why new SCSI hard disk's partition table was reset after reboot?


I added new SCSI hard disk to my server but the server did not detect the HD.
I checked dmesg and it looks fine as below.
SCSI device sdc: 585937500 512-byte hdwr sectors (300000 MB)
SCSI device sdc: drive cache: write back
/dev/scsi/host0/bus0/target2/lun0: p1
Attached scsi disk sdc at scsi0, channel 0, id 2, lun 0

I check fdisk -l and then it shows sdc as below.

[root@server1 root]# fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/sda2 1276 2231 7679070 5 Extended
/dev/sda5 1276 1291 128488+ 83 Linux
/dev/sda6 1292 1552 2096451 82 Linux swap
/dev/sda7 1553 2231 5454036 83 Linux
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 17847 143355996 83 Linux

I checked /dev/sdb* and it has symboic link like this.

[root@server1 root]# ls -la /dev/sdb*
/dev/sdb -> scsi/host0/bus0/target1/lun0/disc
/dev/sdb1 -> scsi/host0/bus0/target1/lun0/part1

I checked /dev/sdc* and there were folders somehow..
[root@server1 dev]# ls -la sdc*
total 0
drwxr-xr-x 1 root root 0 Nov 15 05:16 ./
drwxr-xr-x 1 root root 0 Dec 31 1969 ../

total 0
drwxr-xr-x 1 root root 0 Nov 15 05:16 ./
drwxr-xr-x 1 root root 0 Dec 31 1969 ../
I removed those /dev/sdc and /dev/sdc1 and add symbolic link then I could see them but after reboot the system /dev/sdc and /dev/sdc1 folder were created.

Any advice would be appreciated.
Old 11-16-2007, 11:22 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Welcome to LQ!
I am guessing sdc is your new disk. Make sure before you format it!
Have you partitioned and formatted it after physically installing it?
[root@server1 dev]# ls -la sdc*
total 0
drwxr-xr-x 1 root root 0 Nov 15 05:16 ./
drwxr-xr-x 1 root root 0 Dec 31 1969 ../

total 0
drwxr-xr-x 1 root root 0 Nov 15 05:16 ./
drwxr-xr-x 1 root root 0 Dec 31 1969 ../
sdc is a reference to your whole disk
sdc1 is a reference to the first partition of sdc
Those files you see are just linux files, on your root filesystem. The file "." refers to "The current directory" the file ".." refers to the parent directory of the current one. All directories, even empty ones, have these two files.

Commands to think about:
fdisk /dev/sda to partition it.
mkfs.ext3 -j /dev/sdc1 to format it.
Then you'll need to make sure it is mounted at boottime, by adding an entry to /etc/fstab. There are loads of threads about this on this board, just use the [SEARCH] button on this page.
Come back here if you have specific problems, and please update your profile so it lists what distro you are using (because they are all a little bit different)
Old 11-16-2007, 10:58 PM   #3
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If you just added a SCSI drive to the computer while it is on, you will have to tell Linux to add a device or rescan the luns. You can use cdrecord -scanbus or other utilities to do this.

Do not format raw devices. Format the partitions. If you do not want to reboot after you create the partitions, use hdparm -z to rescan the partition table on the desire drive. Then you can format the partitions. It is best to format partitions with labels.


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
partition table not available after a reboot krish.subramanian Linux - General 1 01-16-2007 10:11 AM
about SATA hard disk's issue zywsdu Linux - Hardware 1 01-13-2006 08:46 PM
No partition table present on scsi drive How do I restore it? kosiadis Red Hat 1 10-17-2003 05:50 PM
Routing table destroyed (reset) after reboot daveb93 Linux - Networking 1 09-23-2003 04:43 PM
RH8, 2nd SCSI, Unknown Partition Table RWild Linux - Hardware 3 03-10-2003 02:28 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration