Possible to mount LV?
Alright, I'm a complete newbie when it comes to Linux. I've fooled around with some desktop distros before, but briefly. I set up a server a few months ago just as a first shot at this and it worked great, I had a full LAMP stack running, had vsftp running and everything was running smooth but I like poking so I poked in the wrong places and basically brought my setup to its knees and was forced to do a clean install. That being said, I'm a quick learner and am eager to learn more, but I've hid a roadblock as far as Google search help goes.
My goal: Give my old desktop new life as both a location for backing up with Time Machine, and a place to store, access (any maybe stream?) my files. (Streaming is obviously for media files, but I would like to be able to access it via FTP as well so I can just download the occasional file) My setup: Pentium P4 3.2 GHz, 1GB RAM, 2 HDD (1x 160 GB, 1x 250GB) My current issue: So I used the LVM to allocate 10GB of the 160GB HDD to actual install of Ubuntu Server 10.10, currently have a LAMP stack, OpenSSH, and Samba running. I want to ideally use the rest of the 150 GB of the partition as the space for my Time Machine backups and the other HDD as my media storage. Here is my fdisk return: Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes |
Please give more detail on "So I used the LVM to allocate 10GB of the 160GB HDD to actual install of Ubuntu Server 10.10". What is the output of lvdisplay?
|
Quote:
Code:
--- Logical volume --- |
So I did some more digging around and turns out I was just using the lvcreate command wrong (might have been the lack of sleep :S, who knows?) Anywho, I tried it this morning with the following:
Code:
sudo lvcreate -l 100%FREE -n timemachine 799cfb Code:
--- Logical volume --- |
So you've got the LVs OK. I don't understand the two fdisk output lines like "Disk /dev/dm-0 doesn't contain a valid partition table" and how it might relate to LVs. Somehow Ubuntu always manages to make things more complicated that I think they should be!
|
Quote:
|
Having set up the LVs the next step is to format them with a file system. The question is "which devices are they"? What's the output of lvscan?
|
Quote:
Code:
ACTIVE '/dev/799cfb/root' [8.87 GiB] inherit |
LVs don't need partitioning -- they are in effect a single partition.
The swap partition does not need any further preparation (well -- I've never done so) -- it only needs adding to /etc/fstab as a swap partition, something like Code:
/dev/799cfb/swap_1 swap swap defaults 0 0 Code:
mkfs.ext4 /dev/799cfb/timemachine Is the /dev/799cfb/root LV already in use? df -hT would show. All this with the caveat that I'm writing from ordinary Linux experience so it might fall foul of Ubuntu-isms. |
Thanks a lot for the help! I have it set up perfectly now (after a lot of struggles..but most of it was setting up with AFP and whatnot)
|
All times are GMT -5. The time now is 02:34 PM. |