LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-18-2009, 11:15 PM   #1
whiskey06
LQ Newbie
 
Registered: Apr 2009
Location: NVLOC
Distribution: centos 5
Posts: 7

Rep: Reputation: 0
Mounting disks in centos 5.3, redirecting folders to other drives


Hi there, centos 5,3 x64 running on ESX.

fdisk output:
Code:
Disk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table
how I am mounting stuff:
Code:
echo -ne "n\np\n1\n\n\nw\n" | fdisk /dev/sdb
 mkfs.ext3 /dev/sdb
mkdir /media/tmp
echo "/dev/sdb  /media/tmp  ext3  defaults 0 0" >> /etc/fstab
mount -a
but then when I do an fdisk -l I get this:
Code:
Disk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table
This occurs even on a reboot.

Once I get that (and other) partitions mounted I would like to point /tmp at one, /home at another and /var/log at the third.
How would I do this?

Thanks!
 
Old 06-19-2009, 12:10 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Well you aren't trying to mount a partition (that would be something like /dev/sda1). Have you partitioned and formatted the drive? Note that you format partitions, not devices, even if you only put one partition on it.

Look into using fdisk to partition it, them try mkfs on the partition or partitions you made.
 
  


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
CentOS 5 Opens New Folders in New Windows Ascendancy5 Linux - Newbie 2 11-19-2008 06:56 AM
How do I start slackware without mounting drives, but have drives accessible? Lufbery Slackware 15 08-25-2008 07:18 AM
Mounting Drives in Centos SBN Linux - General 1 05-03-2007 11:31 PM
Folders moving themselves between drives tmoorman Mandriva 1 07-12-2005 02:43 PM
Mounting several drives to one mountpoint? (redhat 9, IDE disks) ozric Linux - Newbie 3 02-01-2005 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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