cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a disk to RH8

SOLVED
Go to solution
Khalid A. Al-Tayaran
Valued Contributor

Adding a disk to RH8


Hi,

I just added a 30GB hard drive to my Redhat 8 box. The hardware browser tool shows the disk as:
hdb1 FAT
hdb2 Extended
hdb5 FAT

This disk was a windows disk. The problem is I'm not able to create any file systems on this disk. How can format it and use it? Is it possible to use LVM? (no LVM used currently)

Appreciate any help.
3 REPLIES
Jochen Heuer
Respected Contributor
Solution

Re: Adding a disk to RH8

Hi,

if you want to access the old old data you just have to mount the partitions:

$ mount /dev/hdb1 /mnt/Windows1 -t vfat

$ mount /dev/hdb5 /mnt/Windows1 -t vfat

If you want to use it as one linux filesystem you should repartition the disk with fdisk / cfdisk / ... and change the type to Linux (83). Then you should create a new filesystem on the new partition. You have to choose what filesystem you want (e.g. ext2, ext3, reiserfs) and use the required tool:

$ mkreiserfs /dev/hdb1

Then you can mount the partition

$ mount /dev/hdb1 /mountpoint

and include the mount in /etc/fstab.

Regards,

Joche
Well, yeah ... I suppose there's no point in getting greedy, is there?
Bruce Copeland
Trusted Contributor

Re: Adding a disk to RH8

You can also use 'parted' to repartition (usually without data loss). Read the man page for parted to find out about all the options.

Bruce
Khalid A. Al-Tayaran
Valued Contributor

Re: Adding a disk to RH8

Hi,

Jochen Heuer and Bruce Copeland: good solutions thanks for your responses.

I tried Jochen's solution but I ran mkreiserfs first and created a Reiserfs file system and it worked. I mounted a directory and I'm done. For Bruce's solutin I did not try it but the following menu gave me a good idea og how to do it. Thanks

(parted)
check MINOR do a simple check on the filesystem
cp [FROM-DEVICE] FROM-MINOR TO-MINOR copy filesystem to another partitio
help [COMMAND] prints general help, or help on COMMAND
mklabel LABEL-TYPE create a new disklabel (partition table)
mkfs MINOR FS-TYPE make a filesystem FS-TYPE on partititon MINOR
mkpart PART-TYPE [FS-TYPE] START END make a partition
mkpartfs PART-TYPE FS-TYPE START END make a partition with a filesystem
move MINOR START [END] move partition MINOR
name MINOR NAME name partition MINOR NAME
print display the partition table
quit exit program
resize MINOR START END resize filesystem on partition MINOR
rm MINOR delete partition MINOR
select DEVICE choose the device to edit
set MINOR FLAG STATE change a flag on partition MINOR

Thanks again......