Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

resizing cache drive parition

Featured Replies

So I've upgraded my cache drive a little from a 160gb to a 320gb drive. Tried to be a smartie pants and do a disk to disk clone but unfortunatly my lack of linux and ghost knowledge has left me with a 320gb drive and a 160gb cache partition.

 

Is there any pretty simple way I can just do a resize to give me my full drive space available as cache?

 

I've a few apps running from the cache drive so would like to avoid anything destructive if possible :)

So I've upgraded my cache drive a little from a 160gb to a 320gb drive. Tried to be a smartie pants and do a disk to disk clone but unfortunatly my lack of linux and ghost knowledge has left me with a 320gb drive and a 160gb cache partition.

 

Is there any pretty simple way I can just do a resize to give me my full drive space available as cache?

 

I've a few apps running from the cache drive so would like to avoid anything destructive if possible :)

first you must resize the partition, then you can invoke a "resize" option on the file-system to get it to use the entire partition.

 

The tools to use are

fdisk

or

cfdisk

 

and

http://www.xiaobaicai.com/man/phpman.php/man/resize_reiserfs/8

 

Honestly, I'd just copy the whole directory hierarchy to one of your data disks, delete the existing partition, and let unRAID create a new one for you on the cache drive, then once it is in place, copy the hierarchy back.  Probably take WAY less time.

  • Author

As always, Cheer Joe.

 

Copying the full structure shouldn't be too hard as everything important is in ..../.custom/ so I can just copy that one over.

 

Once I've deleted the partition, will unraid give me a nudge for format the drive once it seens Its got no partition?

Once I've deleted the partition, will unraid give me a nudge for format the drive once it seens Its got no partition?

yes
  • 1 year later...
  • Author

So having kind of just dealt with this small issue for the past 18 months I've finally thought about doing something about it lol  :o

 

I've tried to look up a few bits of info on how to delete a partition but on following a few commands in fidks I get this output:

 

root@unraid:/mnt/cache/.custom# df -h

Filesystem            Size  Used Avail Use% Mounted on

tmpfs                128M  464K  128M  1% /var/log

/dev/sda1            3.9G  347M  3.5G  9% /boot

/dev/md1              1.9T  1.4T  464G  76% /mnt/disk1

/dev/md2              1.9T  1.4T  464G  76% /mnt/disk2

/dev/md3              1.9T  1.3T  609G  68% /mnt/disk3

/dev/md4              1.9T  1.2T  651G  66% /mnt/disk4

/dev/md5              1.9T  1.1T  767G  59% /mnt/disk5

/dev/sdc1            150G  271M  149G  1% /mnt/cache

shfs                  9.1T  6.3T  2.9T  69% /mnt/user

 

root@unraid:/mnt/cache/.custom# fdisk /dev/sdc1

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier 0x1da6d569.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

 

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

 

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

        switch off the mode (command 'c') and change display units to

        sectors (command 'u').

 

Command (m for help): p

 

Disk /dev/sdc1: 160.0 GB, 160047465984 bytes

255 heads, 63 sectors/track, 19457 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x1da6d569

 

    Device Boot      Start        End      Blocks  Id  System

 

Command (m for help):

 

This is where I fail as its not showing a partition in the list so I'm not sure how I can delete it  :-\

 

Would someone be able to provide something a bit more step by step based for the Linux noob lol, I've already copied over the data to another drive for backup.

 

After deleting the partition, at what point does unraid prompt me to let it format the disk?

You should be using gdisk - not fdisk.  gdisk understands the GPT partitioning scheme whereas fdisk does not.

 

unRAID offers the option to format a drive (including cache) when you have started the array.

  • Author

cheers itimpi, said above about using fdisk or cfdisk so wasn't sure which.

 

So basically stop the array, make changes to cache drive partition, start array, format it :)

  • Author

sorted thanks guys. In the end it was:

 

telnet into server

listed drives using 'df - H' to find which was mounted as /mnt/cache (found out after this is easy to get via unraid or unmenu web interface too)

stopped array (didn't know if this was safe to do with array up - might now matter as cache is unprotected)

gdisk /dev/[yourdevice]

when in gdisk command, 'p' to list the partitions, 'o' to wipe the partition and create new blank full disk partition, 'w' to save changes.

rebooted server

on unraid web interface, it now shows the drive as 'unformatted' so ticked the box (make sure this is the only drive showing as unformatted!) and let it do its format.

 

Hay presto, full 320GB back. Thanks for much for the pointers guys, I'm very much a Linux based noob so much appreciated :)

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.