I am trying to add in a 2nd automount HDD
Items in bold are copy/paste from files/terminal/etc
At the bottom is the output from commands I though might help.
sudo fdisk -l
sudo blkid
cat /etc/fstab
df -h
id
I am new to Linux and I am trying to setup a HTPC box.
The 2nd HDD is to increase the storage space for movies (1TB HDD).
I have edited the fstab to look like the following, last two line I added in. (The # is to keep it as a comment for the moment until I am sure things are correct)
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=7ddfc935-8b71-41f7-9655-3c6d47860d76 / ext3 errors=remount-ro 0 1
# /dev/sda6
UUID=3f968843-e1e6-43e8-a8ff-de2ca1f4b4f7 /var/lib xfs defaults 0 2
# /dev/sda5
UUID=d4c916b3-0e43-4a4e-b8b6-36abf1afd0f0 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
#/dev/sdb1 LABEL="Movies"
#UUID="882c7288-47f6-4e23-b171-8727e67cfef0 /var/lib xfs defaults 0 2
The idea is to add in /dev/sdb1 to store my movies on. I have mounted in at /var/lib the same as mythtv automagically did. The same reason for the 'xfs' format. I will then redirect mythtv to store all video files to /dev/sdb1
Is this the right way to set this up? (location, format type, mount point, etc)
I also have a second problem here.
I want to increase the size of my 'ext3' boot partion to 50GB as it is curently only 11GB and getting full of games.
How do I do this?
In partion editor I cannot change the size of this partion /dev/sda1. I think that I need to unmount all the sda*'s before i can change thier size but i am not sure and I also dont know how to do this as it wont let me unmount anything in /dev/sda.
How do I increase the size of the /dev/sda1 partion?
Cheers
chipppy
chipppy@chipppy:~$ sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d8e47
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1459 11719386 83 Linux
/dev/sda2 1460 60801 476664615 5 Extended
/dev/sda5 1460 1583 995998+ 82 Linux swap / Solaris
/dev/sda6 1584 60801 475668553+ 83 Linux
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b842f
Device Boot Start End Blocks Id System
/dev/sdb1 1 121601 976760001 83 Linux
chipppy@chipppy:~$ sudo blkid
/dev/sda1: UUID="7ddfc935-8b71-41f7-9655-3c6d47860d76" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="d4c916b3-0e43-4a4e-b8b6-36abf1afd0f0"
/dev/sda6: UUID="3f968843-e1e6-43e8-a8ff-de2ca1f4b4f7" TYPE="xfs"
/dev/sdb1: LABEL="Movies" UUID="882c7288-47f6-4e23-b171-8727e67cfef0" TYPE="xfs"
chipppy@chipppy:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=7ddfc935-8b71-41f7-9655-3c6d47860d76 / ext3 errors=remount-ro 0 1
# /dev/sda6
UUID=3f968843-e1e6-43e8-a8ff-de2ca1f4b4f7 /var/lib xfs defaults 0 2
# /dev/sda5
UUID=d4c916b3-0e43-4a4e-b8b6-36abf1afd0f0 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
chipppy@chipppy:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 12G 3.6G 6.9G 35% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
varrun 2.0G 336K 2.0G 1% /var/run
varlock 2.0G 0 2.0G 0% /var/lock
udev 2.0G 3.0M 2.0G 1% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
lrm 2.0G 2.4M 2.0G 1% /lib/modules/2.6.27-11-generic/volatile
/dev/sda6 454G 11G 444G 3% /var/lib
chipppy@chipppy:~$ id
uid=1000(chipppy) gid=1000(chipppy) groups=4(adm),20(dialout),24(cdrom),46(plugdev),10 8(mythtv),115(lpadmin),117(sambashare),123(admin), 1000(chipppy)