LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2008, 07:09 AM   #16
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354

Quote:
Originally Posted by Ozonecy View Post
<snip> Is possible [to now] create array so I will have 1x 160gb? But I don't want to [reinstall] again.
</snip>
Well, one of the things you can do with LVM is to create a logical partition that spans more than one physical drive. But doing that with a distribution like Ubuntu could be difficult since the Ubuntu "initial ram disk" (initrd) does not include the LVM software by default. So, yes, you can do it, but it's not going to be easy if you use Ubuntu.

I understand that you don't want to hear this, but:

If you go back to Fedora (i.e., reinstall it on your now broken RAID setup), then all you'd need to do is use the LVM commands to add an "extent" to the / partition in the LV. (There are tutorials on LVM under the Tutorials button at the top of this web page.)
 
Old 02-08-2008, 04:51 AM   #17
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
might i suggest removing your RAID configuration? i mean. If you have 2 80GB HDD's and your running 2 OS's or distro's or w/e, why not just have them separate? it would make things one hell of a lot less confusing, ever heard of the KISS principle "keep it simple"
 
Old 02-08-2008, 01:46 PM   #18
Ozonecy
Member
 
Registered: Nov 2007
Posts: 31

Original Poster
Rep: Reputation: 15
hey again
how can now create raid to have one 160GB without format?
i must install LVM ?
 
Old 02-08-2008, 02:35 PM   #19
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, first, it wouldn't be RAID since you'd loose the redundancy.

That said, remember that Linux uses a unified file system. Instead of keeping each drive separate (like the old IBM/360 and Windows operating systems), in *NIX operating systems "everything is a file." For example, here's a level 1 tree of my / directory:
Code:
$ tree -L 1 /
/
|-- MX6436
|-- NT
|-- Shared
|-- Ubuntu
|-- W98
|-- XP
|-- bin
|-- boot
|-- dev
|-- etc
|-- home
|-- lib
|-- lost+found
|-- media
|-- mnt
|-- opt
|-- proc
|-- root
|-- sbin
|-- selinux
|-- srv
|-- sys
|-- tmp
|-- tss-1
|-- usb
|-- usr
`-- var
The green entries in that list are file systems that reside on different hard drives (or partitions) from the one containing the root file system. In your case, the simplest solution (after fixing the partition table) would be to use the mkfs.ext3 command to create a new ext3 file system on the second drive, and then mount the drive on some mount point you'd create under /. You can make the drive a permanent part of your file system by adding the appropriate line to /etc/fstab. (The red entry is a network file system, and the blue entry is a USB drive.)

Again, here's an example of a line from my kubuntu fstab where I connect to the XP drive on this computer:
Code:
$ cat /Ubuntu/etc/fstab | grep XP
UUID=72ECD97FECD93E53 /XP     ntfs-3g    defaults,umask=007,gid=46 0       1
(The UUID value is found by running the command ls -l /dev/disk/by-uuid and finding the UUID of the drive and partition you wish you mount.)

Note that most Linux users will not mount additional drives as children of / as I have done. In your case, you could just do a mkdir in your home directory, and mount the second disk there.

Bottom line: You only need LVM if you want to "merge" the two drives into a single "logical" drive. If you just want the second drive to be available for use as an additional directory, all you need to do is format it, create the directory where you want it to "appear," and edit /etc/fstab so it gets mounted there every time you boot your system.

Last edited by PTrenholme; 02-08-2008 at 02:37 PM.
 
  


Reply



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
Sofware RAID 1 + Fedora Core 3 + Boot Error L1 + GRUB 21 ERROR najeebsyed2 Linux - Hardware 0 10-25-2007 01:20 PM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Error Grub stage2 loading error (using FC6) on seperate hdd Anifield Linux - Newbie 7 03-20-2007 01:14 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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