[12:13] <forestpixie> morning - are there any mods in here at the moment?
[12:16] <jpds> forestpixie: Hi there.
[12:17] <forestpixie> hey jpds I have a sessionlater at 1330UTC - I need it to be moderated - can you give me ops please
[12:18] <forestpixie> thank you - :)
[12:19] <lukjad007> Heh talsemgeest
[12:19] <talsemgeest> I'll log it and look over it later :)
[12:20]  * lukjad007 is looking for the log button
[12:20] <forestpixie> it's in the woods lukjad007
[12:21] <jpds> !logs
[12:21] <ubot2> Channel logs can be found at Channel logs can be found at http://irclogs.ubuntu.com/ - See also !OpenWeek - See also !OpenWeek
[12:29] <forestpixie> hey PartyBoi2 - are you here to keep me company :)
[12:30] <PartyBoi2> yep :)
[12:30] <forestpixie> well if easwar fails to appear you can do more than keep me company
[12:35] <PartyBoi2> hopefully easwar will show
[12:35] <forestpixie> +1
[13:01] <unutbu> howdy
[13:01] <forestpixie> hi unutbu
[13:02] <forestpixie> are you here for the session?
[13:02] <unutbu> Sure am.
[13:02] <forestpixie> did you connect to the virtual terminal ok
[13:03] <unutbu> oh... I don't know about this...
[13:03] <unutbu> what am I supposed to do?
[13:03] <forestpixie> oh - well half is here and I'll be running various things in a virtual terminal
[13:03] <forestpixie> 2 secs
[13:04] <forestpixie> https://wiki.ubuntu.com/BeginnersTeam/FocusGroups/Education/STS
[13:07] <unutbu> thanks forestpixie, I'm ssh'd
[13:09] <forestpixie> oh excellent - so are some others too :)
[13:23] <forestpixie> other than unutbu is there anyone else here for the session? I'll be setting the channel to moderated soon
[13:29] <forestpixie> couple of minutes and I'll make a start
[13:31] <forestpixie> Ok - then this is the fdisk/fstab/chmod and chown session
[13:31] <forestpixie> This session Is moderatedтАн тАУ тАмthis means that you won't be able to talk until you have been voiced,тАн тАмyou can тАн /msg PArtyBoi2 and he can voice you in turn
[13:32] <forestpixie> Right then, to the session properтАн тАм-тАн тАмI intend to first work through using fdisk which is a command line partition tool and then to format our new partitions.
[13:32] <forestpixie> We'll follow that with a question/answer session
[13:32] <forestpixie> ThenтАн  тАмwe will take a look at the fstab file,тАн тАмthis file gives static information about partitions we wish to mount on boot
[13:33] <forestpixie> We will be looking at our own fstab files in relation to theтАн тАм/тАн тАмand swap partitions and then write the lines needed to mount our new partitionsтАн тАм,once again following that we will have a Q&A sessionтАн
[13:33] <forestpixie> The final part of the session will look at the chmod and chown commands,тАн тАмchmod can be used to change permissions on files,тАн тАмchown can be used to change file ownership.тАн
[13:35] <forestpixie> Ok - fdisk first, a little bit more here then we can look at the virtual terminal
[13:36] <forestpixie> I am going to create the following partitionsтАн тАм,тАн тАм2тАн тАмprimaries,тАн тАм1тАн тАмextended and a logical inside it.
[13:36] <forestpixie> You start fdisk with root rights on the device you wish to work with
[13:36] <forestpixie> sudo fdiskтАн тАм/dev/sxyтАн тАУ тАмthe number of the drive can be found by using fdisk -lтАн тАУ тАмcheck the virtual terminal
[13:37] <forestpixie> You can see that it has listed 2 drives - we are going to use /dev/sdbтАн
[13:37] <forestpixie> so we will start fdisk on that drive
[13:38] <forestpixie> m will givce you all the commands you can use here
[13:38] <forestpixie> To create a new drive useтАн 'тАмnтАн' тАмit then asks us what type of partition we want,тАн тАмI want the first partition to be a primary,тАн тАмso to create a primary we useтАн 'тАмpтАн'
[13:39] <forestpixie> Now we need to tell fdisk which partition we want to create,тАн тАмI want it to be numberтАн 1
[13:39] <forestpixie> I am going to use cylinders to set up the sizes of the partitionsтАн тАУ тАмwe can see from the previous fdisk output that the whole drive is 652 cyclinders in size. I used the default setting for the first cylinder of this partition
[13:39] <forestpixie> Now I need to specify where the partition ends,тАн тАмfor the first partition I useтАн тАм200тАн тАмas I want the partition to beтАн  тАмthat many cylinders in size
[13:39] <forestpixie> I could if I wanted create the partition using a number to give it a size,тАн тАмyou use G for Gb,тАн тАмM for Mb or K for Kb
[13:40] <forestpixie> Finally I need to tell fdisk to complete the operation and write the new partition table,тАн тАмto do this useтАн  w
[13:40] <forestpixie> If I use fdiskтАн тАм-l it should now show me my new partition,
[13:41] <forestpixie> Ok I will now proceed to create the remaining partitions.тАн тАмFirstтАн тАм1тАн тАмmore primary and then the extended with it's associated logical,тАн тАмthis time I will make all the new partitions and then write the table at the end
[13:42] <forestpixie> Now that I have an extended that choice is no longer possible,тАн тАмso now we can only create primaries or logical as you will see,тАн тАмfurther once fdisk knows I wish to create a logical it will only allow me to create it within the extended partition
[13:44] <forestpixie> Ok so we now have our partitions created - at the moment they are all needing filesystems, before we do that I'll stop and you can tell me if I was to slow or fast :)
[13:45] <forestpixie> if you have any questions - ask now
[13:46] <forestpixie> on to creating the filesystems then - so back and forth between here and the terminal
[13:46] <forestpixie> We can use the mkfs,тАн тАмmkdosfs and mkntfsтАн  тАмcommands here to accomplish thisтАн тАм,тАн тАмthe syntax to use this command is similar for allтАн тАм3
[13:46] <forestpixie> sudo mkfsтАн тАм-t filetypeтАн тАм/dev/sdxy , So the commands we will need to run in our vt are
[13:48] <forestpixie> Ok we now have our created our new partitions and formatted them.
[13:49] <forestpixie> As ther are no questions I'll carry on with fstab
[13:50] <forestpixie> If you run cat /etc/fstab in a normal terminal you will see this at the top
[13:50] <forestpixie> тАн  <file system> <mount point>   <type>  <options>       <dump>  <pass>
[13:51] <forestpixie> This is part of my fstab relating to myтАн тАм/тАн тАмpartitionтАн
[13:51] <forestpixie> UUIDтАн=тАм9d44e64b-0c3f-4376-93f5-7e0a4bc9afacтАн тАм/тАн тАмext3тАн тАмrelatime,errors=remount-roтАн  тАм0тАн тАм1тАн
[13:51] <forestpixie> OK,тАн тАмso now lets have a look at the fstab line in some more detail and then finally we can look at creating a new line.тАн
[13:52] <forestpixie> The first part  to the UUID,тАн тАмyou can if you wish use the device name instead of UUIDтАн
[13:52] <forestpixie> to do so I would replace it withтАн тАм/dev/sda2тАн тАмthis would make my fstab line read soтАн
[13:52] <forestpixie> /dev/sda2тАО тАП/тАО тАПext3тАн тАмrelatime,errors=remount-roтАн тАм0тАн тАм1тАн
[13:52] <forestpixie> The advantage of using the UUID lies in it not changing unless a change is made to the partition itself,тАн тАмcreating,тАн тАмremoving or resizing other partitions doesn't affect the UUID of unaffected partitions.тАн
[13:52] <forestpixie> The next part of the lineтАн тАм-тАн тАм/тАн тАмtells the system where we want our partition to mount,тАн тАмthis partition is my install so I want it mounting as rootтАн
[13:53] <forestpixie> Following the mount point is the filesystem typeтАн тАм-тАн тАмmine is ext3,тАн тАмif you have a default installation yours should be the same,тАн тАмif you have any ntfs drives mounting then that would read ntfs or maybe ntfs-3g
[13:53] <forestpixie> After the filesystem,тАн тАмany options are indicated,тАн тАмhere relatime is the first option followed by the errors=remount-ro optionтАн тАм-тАн тАмthis second option is the one which will cause the system to remount the partition as read only
[13:53] <forestpixie> The next section is set asтАн тАм0тАн тАм-тАн тАмthis is the dump option and relates to whether the filesystem is backed up by dump,тАн тАм0,тАн тАмthe default is no.
[13:54] <forestpixie> Finally we have the pass sectionтАн тАм-тАн тАмthis is set toтАн тАм1тАн тАм-тАн тАмthis controls the order in which a filesystem is checked by fsck,тАн тАмaтАн тАм1тАн тАмmeans that the partition is checked first,тАн тАмaтАн тАм0тАн тАмwould stop the check and aтАн тАм2тАн тАмwould mean it was checked last.тАн
[13:55] <forestpixie> If there any latecomers can they /msg PartyBoi2 with questions please :)
[13:55] <forestpixie> Before we can actually mount any new partitions,тАн тАмwe need to have somewhere to mount it,тАн тАмthe mountpoint,тАн тАмso we do that by making a folder.
[13:56] <forestpixie> I tend to useтАн тАм/mnt for my mountsтАн тАУ тАмif you want the partition to be visible on the desktop then create your folder inтАн тАм/media instead
[13:56] <forestpixie> To do that we would use the mkdir command like so
[13:56] <forestpixie> sudo mkdir /mnt/foldername
[13:56] <forestpixie> So to allow our new partitions to mount correctly I need to create their mountpoints - one for each partition we have created
[13:56] <forestpixie> which I need to do no win the shared terminal
[13:58] <forestpixie> So now we have the new folders inтАн тАм/mnt to use.
[13:58] <forestpixie> db1 - you have a question?
[13:59] <d1b> yes what happens if you rename a luks lvm volume -> will it continue to work if you use the uuid in /etc/fstab or do you need to update initrd ?
[14:00] <forestpixie> I don't know the answer to that - I've never used them
[14:00] <forestpixie> if anyone else does I think you should be able to talk until I set the mode again
[14:02] <forestpixie> so we've made our folders in /mnt now we need ot add them to fstab
[14:02] <forestpixie> We are going to be editing the file with a terminal based text editor - it's useful to know your way around at least one - if you ever need to edit a file from the recovery menu then I'm afraid that a GUI editor like gedit, kate or mousepad will be of no use.
[14:03] <forestpixie> so first we give tell it which partition we are mounting
[14:03] <forestpixie> which is /dev/sdb1тАн
[14:03] <forestpixie> Next we have to tell it our new mountpoint
[14:04] <forestpixie> тАн/dev/sdb1  /mnt/ext3
[14:04] <forestpixie> Next comes the filetype
[14:04] <forestpixie> тАн	/dev/sdb1   /mnt/ext3   ext3
[14:04] <forestpixie> Next come any options you wish to passтАн тАУ тАмI add user here
[14:05] <forestpixie> Finally we come to the dump and pass options,тАн тАмuse the defaultтАн тАм0тАн тАмfor the dump andтАн тАм2тАн тАмfor the pass option,тАн тАмit is suggested that you allow fsck to check the drive,тАн тАмbut if you wished it not to then you would set the pass option toтАн тАм0 - you can change the frequency that fsck checks a drive
[14:05] <forestpixie> Now I shall add the lines for our otherтАн тАм2тАн тАмpartitions,тАн тАмthe ntfs and fat32
[14:06] <forestpixie> So that is the data entered into fstab,тАн тАмyou would now need to save the file
[14:06] <forestpixie> I would now mount to check that the partitions have mounted without any problems
[14:06] <forestpixie> Assuming that there is no output on the screen then the partition has mounted.тАн тАмYou can check to see with a couple of commands,тАн тАмbut df is a bit easier to scan
[14:07] <forestpixie> ok - it's possible that there is a apparmor operating on the terminal - I've done this ocne earlier and it worked without issue
[14:09] <forestpixie> ok - we have a small problem in the shared terminal :(
[14:09] <forestpixie> we can stop for a while for any questions - we are unmoderated so I think you can talk
[14:10] <forestpixie> If you have questions ?
[14:10] <unutbu> could you cat /etc/fstab please?
[14:10] <forestpixie> yep
[14:10] <unutbu> There is a space before dev/sdb2
[14:11] <unutbu> huh, weird
[14:12] <forestpixie> so there was - pasting from abiword doesn't work as well as openoffice :)
[14:12] <forestpixie> the vm is running on jaunty, I think there were some issues when the vm was set up - but he's not about so I can't ask
[14:13] <forestpixie> I ran this previously and the log from the session is on the wiki page
[14:13] <unutbu> Maybe there is some invisible character that came with the pasting?
[14:14] <forestpixie> possibly I can try doing ti long hand :)
[14:18] <forestpixie> thanks you unutbu :)
[14:18] <unutbu> cool
[14:19] <forestpixie> ok then we can move on if there are no questions :)
[14:19] <unutbu> Could you do sudo fdisk -l one more time?
[14:19] <forestpixie> first we can look at chown - changing ownership of files or folders
[14:20] <forestpixie> I think that is the problem we had from the beginning with the vm unutbu
[14:20] <unutbu> ok
[14:21] <forestpixie> I have no idea why it shows them all as linux - nor did bodhi
[14:21] <unutbu> when you use fdisk, you can use a command to change the partition type
[14:21] <unutbu> it is interesting that you can proceed without doing so
[14:22] <unutbu> within fdisk the command is 't'
[14:22] <forestpixie> to be honest I've only used it a few times in anger - and I rarely have anything to do with win filesystems anymore
[14:22] <unutbu> you can still do it; even on a partition with a filesystem
[14:22] <unutbu> :) lol
[14:23] <forestpixie> I can have a look later if you want
[14:23] <unutbu> ok
[14:23] <forestpixie> Nearly finished now
[14:23] <forestpixie> There areтАн тАм4тАн тАмdifferent permutations available for the owner and group changes
[14:24] <forestpixie> so we'll make a folder in our /etx3 partition and change the owner and group to see the changes
[14:25] <forestpixie> so we can change the fodler with chown
[14:28] <forestpixie> so chown can change the owner or group for a folder or file
[14:28] <forestpixie> chmod will change the permissions for files or folders
[14:29] <forestpixie> the command is used like
[14:29] <forestpixie> chmod 000 /path/to/file
[14:29] <forestpixie> the numbers are made from 4, 2 and 1 - giving a combination of read, write and execute
[14:30] <forestpixie> ls -al will show the current permissions - the d simply denoting that it is a folder rather than a file
[14:31] <forestpixie> at the moment the folder temp has 755 permissions fro group and others - owner has read,write and execute
[14:31] <forestpixie> so in the shared session I can change them
[14:33] <forestpixie> so once we know the chmod and chown commands we can change the owner and permissions of any file or folder
[14:33] <forestpixie> ok - thanks for coming along - that's it for the time being
[14:34] <PartyBoi2> thanks forestpixie
[14:34] <forestpixie> so if there are any questions - think them up while I put the kettle on
[14:37] <forestpixie> unutbu: do you want to show me what you were telling me ?
[14:39] <unutbu> Ah sure
[14:39] <unutbu> sorry, was away
[14:39] <unutbu> fdisk /dev/sdb
[14:39] <forestpixie> you can use wall in the terminal - Ctrl-a :wall "message"
[14:41] <unutbu> Sorry, can't seem to find ntfs...
[14:41] <PartyBoi2> 7 I think
[14:41] <unutbu> right; thanks
[14:42] <unutbu> Im' having a hard time with :wall
[14:43] <forestpixie> so am I - do it here :D
[14:43] <unutbu> type 2 for partition 2
[14:43] <unutbu> type b to make set the partition type to FAT32
[14:44] <unutbu> or c
[14:44] <forestpixie> oh yea cool
[14:44] <unutbu> right
[14:45] <unutbu> sudo fdisk -l?
[14:45] <forestpixie> smashing - thanks very much
[14:45] <unutbu> What I don't know is : if this matters in the slightest
[14:45] <forestpixie> heh
[14:45] <unutbu> The filesystems seem to work just fine without this
[14:46] <forestpixie> I would guess that it would fall apart if you tried to see them in windows though
[14:47] <unutbu> hm, yes
[14:47] <forestpixie> I don't like wall very much though
[14:47] <unutbu> Windows seems to respect the hidden partition types, so indeed it probably is looking at this info
[14:48] <unutbu> irc question: how do you msg PartyBoi2?
[14:48] <unutbu> I kept getting "Unable to find nick or channel"
[14:48] <forestpixie> I think that /msg nick is how you do it - I use xchat and usually just right click on their name
[14:49] <unutbu> Sorry, I seem to have managed it now
[14:49] <forestpixie> :)
[14:50] <forestpixie> well I have to go now - thanks for coming - I should be able to get at that drive next week so I can let you know how many partitions I managed to make :)
[14:51] <unutbu> Thanks forestpixie!
[14:51] <forestpixie> ok cya later then :)
[14:51] <PartyBoi2> cya you all later