- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Mount the new HD
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 05:45 PM
07-05-2005 05:45 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 06:00 PM
07-05-2005 06:00 PM
SolutionIf it's an IDE disk into a normal IDE controller, you should be able to access a new '/dev/hd?' device. If you run the following command, you should be able to figure out which device:
dmesg | grep ^hd
You should see something like this:
hda: Maxtor 6Y120P0, ATA DISK drive
hdc: Lite-On LTN483S 48x Max, ATAPI CD/DVD-ROM drive
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 240121728 sectors (122942 MB) w/7936KiB Cache, CHS=14946/255/63, UDMA(66)
In this case, 'hda' is my HDD, and 'hdc' is my CDRom drive.
You'll have another entry (i.e. 'hdb') for your other HDD. We'll use 'hdb' for the rest of this discussion.
If the drive is working properly, you should now be able to partition your disk. Use an 'fdisk' tool to do so, i.e.
fdisk /dev/hdb
as a super-user (root). Create new partitions (of type 83 for standard Linux stuff), broken up how you want them to, or just as one big partition.
From there, create a filesystem on it using the appropraite tool, i.e.
mke2fs -j -c -v /dev/hdb1
to format the 1st partition of the 2nd HDD as filesystem type 'ext3', doing a bad-block check.
Once complete, you should be able to mount it to the desired location:
mount /dev/hdb1 /new/path
If it's a SCSI disk, once again you look in the output of 'dmesg', but slightly differently:
dmesg | grep ^sd
Similar output will be shown, and from there, the same commands (with the appropriate '/dev/sd?' device name) will work just fine.
If it's an additional disk into a RAID array, then it starts getting tricky, as the procedures required to expand an array differ from controller to controller.
If you need more details on how to do things, don't hesitate to post back, but please try to provide a few more details on your system setup (hardware wise).
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 10:55 PM
07-05-2005 10:55 PM
Re: Mount the new HD
I use "dmesg |grep ^sd" , but no output , if I use "dmesg |grep scsi" then output "Attached scsi disk sdb at scsi0, channel 0, id 2, lun 0" , it seems sdb is available , but if I use "fdisk /dev/sdb" ,then output "Unable to read /dev/sdb" , could suggest what is wrong ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 11:35 PM
07-05-2005 11:35 PM
Re: Mount the new HD
What's the contents of '/proc/scsi/scsi' ?
And no. Unfortunately, the ID's only have an ordered relavance to the device's device node, i.e. 'sdb' is the 2nd SCSI disk, not necessarily id=2.
But to start off with, eliminate '/dev/sda' as the currently mounted drive (simply type 'mount', and see what the first column says).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 12:09 AM
07-06-2005 12:09 AM
Re: Mount the new HD
It seems the hardware problem , the hd can't shown at /proc/scsi/scsi , if I run "mount" , it only show the /sda ,
thx help , let me check the hardware first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 11:14 PM
07-18-2005 11:14 PM
Re: Mount the new HD
The server can detect the HD now and it is /dev/hdb in my server , which is 36G HD, I want to ask again if I want to create a partition with 10G , please suggest what should I do ? thx
Disk /dev/sdb: 271 heads, 63 sectors, 2485 cylinders
Units = cylinders of 16065 * 512 bytes
Disk /dev/sdb doesn't contain a valid partition table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 11:27 PM
07-18-2005 11:27 PM
Re: Mount the new HD
Using 'fdisk /dev/hdb', use 'c'reate, 'p'rimary, '1' (for first partition), press enter for start cylinder, then type '+10G'. That should create a 10GB partition as '/dev/hdb1'. Write that, and quit fdisk.
From there, you create the filesystem using 'mke2fs -J -v /dev/hdb1', to make an 'ext3' filesystem.
After that, you can 'mount /dev/hdb1 /path/to/mount/point', and you should now have 10GB of usable space.
To make that automatically mount upon reboot, modify the '/etc/fstab' file, adding an entry similar to:
/dev/hdb1 /path/to/mount/point ext3 defaults 0 2
to the bottom.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2005 06:59 PM
07-22-2005 06:59 PM
Re: Mount the new HD
I tried run "mke2fs -j -c -v /dev/sdb1" , that pop the messages below , could sugget how to fix it ? thx
/dev/sdb1: Not enough space to build proposed filesystem while setting up superb
lock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2005 08:39 PM
07-22-2005 08:39 PM