Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Adding another hard drive to your Linode

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linode.com Announcements
Author Message
caker



Joined: 15 Apr 2003
Posts: 2386
Location: Galloway, NJ

Posted: Sat Jun 28, 2003 12:15 am    Post subject: Adding another hard drive to your Linode  

Create a disk image, formatted to ext3 (or whatever)
Go into your config profile
Find an empty /dev/ubd* device - probably /dev/ubdc if you've got a root and a swap already. Select your new drive label from the drop-down.
Save the config
Reboot your linode

Now, inside the Linode, you can mount it like so:

mount /dev/ubd[insert device letter here] /path/to/mountpoint

/path/to/mountpoint must be an existing directory.

-Chris
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2386
Location: Galloway, NJ

Posted: Sat Jun 28, 2003 12:27 am    Post subject:  

A few more commands that might be useful -

Code: [root@nova fs]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdc6              25G   21G  2.5G  89% /
/dev/hdc1              15M  3.6M   11M  25% /boot
/dev/hdd1              19M  3.6M   15M  19% /mnt/hddboot
/dev/hdd6              18G   17G   57M 100% /mnt/hddroot

Also, the mount command by itself will also display the existing mounted file systems...

Code: [root@nova fs]# mount -v
/dev/hdc6 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hdc1 on /boot type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdd1 on /mnt/hddboot type ext2 (rw)
/dev/hdd6 on /mnt/hddroot type ext2 (rw)

If you take a look at the /proc/swaps file, it'll tell you what swaps you have:

Code: [root@nova fs]# cat /proc/swaps
Filename                        Type            Size    Used    Priority
/dev/hdc5                       partition       136512  0       1
/dev/hdd5                       partition       130500  84100   100

-Chris
Back to top  
 
       Linode.com Forum Forum Index -> Linode.com Announcements
Page 1 of 1