Assigning Disk Images to Devices in /dev late in the game

Hi everybody.

I'm a new linode user, and so far it's great.

A little intro, I've used Ubuntu part-time for about a year (my first nix distro). I've muddled through mostly in the GUI, not in the Shell… but I've picked up a lot of the basics. This is my first real exploration into managing a remote server - without an IT dept, or resident nixGuru backing me up - so I apologize in advance if I accidentally walk off the n00b cliff. I'm googling my fingers crooked before asking things, I promise.

On to the issue at hand.

I setup disk images in the Dashboard as follows:

/var --> /xvdb

/usr --> /xvdc

/home --> /xvdd

  • a few others

I moved on to some configuration stuff, and then realized that I had assumed that those assignments would translate to the config. After a smoke break, I returned and thought to myself, "how much space have I used on those partitions?". I popped open /etc/fstab (to remind myself of the dev assignments) and realized that I had /etc/faceStabbed myself.

Swap is on /xvdb (not ~f as I arranged). I guess that I worked that out in the Dashboard while the server was booted.

<-- obvNewb

So the question is, what's the best way to move forward. Will rebooting the server and moving the contents be the way? Or will that lead to a plethora of pain?

Should I just wipe the install, and begin anew?

2 Replies

The fstab as deployed is designed for the base case, of a root partition and a swap. You are free to edit fstab all you like – which sounds like the approach that you need.

Thanks jed, and sorry for the late reply.

Booting into Single User mode, transferring the contents of the sub-directories to the new partitions and then editing the fstab worked perfectly.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct