Hi all,
I've given this my best shot with my limited Ubuntu know-how.. and I'm pretty sure I'm close, but need a little help..
I'm adding 2x sata 4TB Western Digital Red drives to my Ubuntu server.
I formatted them using a desktop Ubuntu machine to ext4 using GParted and a USB adaptor. I've just installed them into my server, and edited fstab.
I've already pre-loaded files to them, so would rather not have to reformat again now they are installed... but if it comes to it, then so be it.
I think there is an issue with partition tables, either I've told fstab the wrong type of table, or I've formatted them with the wrong type of table, I used GPT based on the advice of a website I read for guidance when formatting.
The two new drives appear as dev/sdc and dev/sdd. I'd have expected them to be sdc1 and sdd1, but the 1's are missing.
fdisk -l returns this result:
Code:
scott@6FC:/etc$ sudo fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c769e
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 234440703 116969473 5 Extended
/dev/sda5 501760 234440703 116969472 8e Linux LVM
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 2199.0 GB, 2199023255040 bytes
255 heads, 63 sectors/track, 267349 cylinders, total 4294967295 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 4294967295 2147483647+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdd: 2199.0 GB, 2199023255040 bytes
255 heads, 63 sectors/track, 267349 cylinders, total 4294967295 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdd1 1 4294967295 2147483647+ ee GPT
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d7be2
Device Boot Start End Blocks Id System
/dev/sdb1 2048 976773119 488385536 83 Linux
Disk /dev/mapper/6FC--vg-root: 113.3 GB, 113330094080 bytes
255 heads, 63 sectors/track, 13778 cylinders, total 221347840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/6FC--vg-root doesn't contain a valid partition table
Disk /dev/mapper/6FC--vg-swap_1: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders, total 12582912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/6FC--vg-swap_1 doesn't contain a valid partition table
scott@6FC:/etc$
My fstab looks like this, I'm trying to mount one drive in /media/family, and the other in /media/media. I just copied the formatting of the line above for sdb1 as that drive works, I dont know what defaults and 0 or 2 mean.
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/6FC--vg-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=442ef4fd-bc9b-4e17-825e-27f5e7a1414d /boot ext2 defaults 0 2
#/dev/mapper/6FC--vg-swap_1 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
/dev/sdb1/ /media/storage ext4 defaults 0 2
/dev/sdc/ /media/family ext4 defaults 0 2
/dev/sdd/ /media/media ext4 defaults 0 2
/media/storage/images /usr/share/zoneminder/images none defaults,bind 0 2
/media/storage/events /usr/share/zoneminder/events none defaults,bind 0 2
//192.168.1.75/volume_1 /mnt/nas cifs guest,uid=1000,iocharset=utf8 0 0
Above, I’ve highlighted my attempts at changing fstab..
mount -a returns this result:
Code:
scott@6FC:/etc$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on /dev/sdc,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mount: wrong fs type, bad option, bad superblock on /dev/sdd,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
scott@6FC:/etc$
Many thanks for any tips as to what I've done wrong, Scott
Bookmarks