/srv/irclogs.ubuntu.com/2009/02/07/#ubuntu-classroom.txt

=== manueld2 is now known as manueld
=== stas` is now known as stas
=== Rafik_ is now known as Rafik
forestpixiemorning - are there any mods in here at the moment?12:13
jpdsforestpixie: Hi there.12:16
forestpixiehey jpds I have a sessionlater at 1330UTC - I need it to be moderated - can you give me ops please12:17
forestpixiethank you - :)12:18
lukjad007Heh talsemgeest12:19
talsemgeestI'll log it and look over it later :)12:19
* lukjad007 is looking for the log button12:20
forestpixieit's in the woods lukjad00712:20
jpds!logs12:21
ubot2Channel logs can be found at Channel logs can be found at http://irclogs.ubuntu.com/ - See also !OpenWeek - See also !OpenWeek12:21
forestpixiehey PartyBoi2 - are you here to keep me company :)12:29
PartyBoi2yep :)12:30
forestpixiewell if easwar fails to appear you can do more than keep me company12:30
PartyBoi2hopefully easwar will show12:35
forestpixie+112:35
unutbuhowdy13:01
forestpixiehi unutbu13:01
forestpixieare you here for the session?13:02
unutbuSure am.13:02
forestpixiedid you connect to the virtual terminal ok13:02
=== KterinK is now known as dou213
unutbuoh... I don't know about this...13:03
unutbuwhat am I supposed to do?13:03
forestpixieoh - well half is here and I'll be running various things in a virtual terminal13:03
forestpixie2 secs13:03
forestpixiehttps://wiki.ubuntu.com/BeginnersTeam/FocusGroups/Education/STS13:04
unutbuthanks forestpixie, I'm ssh'd13:07
forestpixieoh excellent - so are some others too :)13:09
forestpixieother than unutbu is there anyone else here for the session? I'll be setting the channel to moderated soon13:23
forestpixiecouple of minutes and I'll make a start13:29
forestpixieOk - then this is the fdisk/fstab/chmod and chown session13:31
forestpixieThis 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 turn13:31
forestpixieRight 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
forestpixieWe'll follow that with a question/answer session13:32
forestpixieThen‭  ‬we will take a look at the fstab file,‭ ‬this file gives static information about partitions we wish to mount on boot13:32
forestpixieWe 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
forestpixieThe 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:33
forestpixieOk - fdisk first, a little bit more here then we can look at the virtual terminal13:35
forestpixieI am going to create the following partitions‭ ‬,‭ ‬2‭ ‬primaries,‭ ‬1‭ ‬extended and a logical inside it.13:36
forestpixieYou start fdisk with root rights on the device you wish to work with13:36
forestpixiesudo fdisk‭ ‬/dev/sxy‭ – ‬the number of the drive can be found by using fdisk -l‭ – ‬check the virtual terminal13:36
forestpixieYou can see that it has listed 2 drives - we are going to use /dev/sdb‭13:37
forestpixieso we will start fdisk on that drive13:37
forestpixiem will givce you all the commands you can use here13:38
forestpixieTo 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:38
forestpixieNow we need to tell fdisk which partition we want to create,‭ ‬I want it to be number‭ 113:39
forestpixieI 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 partition13:39
forestpixieNow 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 size13:39
forestpixieI 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 Kb13:39
forestpixieFinally I need to tell fdisk to complete the operation and write the new partition table,‭ ‬to do this use‭  w13:40
forestpixieIf I use fdisk‭ ‬-l it should now show me my new partition,13:40
forestpixieOk 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 end13:41
forestpixieNow 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 partition13:42
forestpixieOk 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:44
forestpixieif you have any questions - ask now13:45
forestpixieon to creating the filesystems then - so back and forth between here and the terminal13:46
forestpixieWe can use the mkfs,‭ ‬mkdosfs and mkntfs‭  ‬commands here to accomplish this‭ ‬,‭ ‬the syntax to use this command is similar for all‭ ‬313:46
forestpixiesudo mkfs‭ ‬-t filetype‭ ‬/dev/sdxy , So the commands we will need to run in our vt are13:46
forestpixieOk we now have our created our new partitions and formatted them.13:48
forestpixieAs ther are no questions I'll carry on with fstab13:49
forestpixieIf you run cat /etc/fstab in a normal terminal you will see this at the top13:50
forestpixie‭  <file system> <mount point>   <type>  <options>       <dump>  <pass>13:50
forestpixieThis is part of my fstab relating to my‭ ‬/‭ ‬partition‭13:51
forestpixieUUID‭=‬9d44e64b-0c3f-4376-93f5-7e0a4bc9afac‭ ‬/‭ ‬ext3‭ ‬relatime,errors=remount-ro‭  ‬0‭ ‬1‭13:51
forestpixieOK,‭ ‬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:51
forestpixieThe first part  to the UUID,‭ ‬you can if you wish use the device name instead of UUID‭13:52
forestpixieto 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
forestpixieThe 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
forestpixieThe 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:52
forestpixieFollowing 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-3g13:53
forestpixieAfter 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 only13:53
forestpixieThe 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:53
forestpixieFinally 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:54
forestpixieIf there any latecomers can they /msg PartyBoi2 with questions please :)13:55
forestpixieBefore 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:55
forestpixieI tend to use‭ ‬/mnt for my mounts‭ – ‬if you want the partition to be visible on the desktop then create your folder in‭ ‬/media instead13:56
forestpixieTo do that we would use the mkdir command like so13:56
forestpixiesudo mkdir /mnt/foldername13:56
forestpixieSo to allow our new partitions to mount correctly I need to create their mountpoints - one for each partition we have created13:56
forestpixiewhich I need to do no win the shared terminal13:56
forestpixieSo now we have the new folders in‭ ‬/mnt to use.13:58
forestpixiedb1 - you have a question?13:58
d1byes 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 ?13:59
forestpixieI don't know the answer to that - I've never used them14:00
forestpixieif anyone else does I think you should be able to talk until I set the mode again14:00
forestpixieso we've made our folders in /mnt now we need ot add them to fstab14:02
forestpixieWe 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:02
forestpixieso first we give tell it which partition we are mounting14:03
forestpixiewhich is /dev/sdb1‭14:03
forestpixieNext we have to tell it our new mountpoint14:03
forestpixie‭/dev/sdb1  /mnt/ext314:04
forestpixieNext comes the filetype14:04
forestpixie‭/dev/sdb1   /mnt/ext3   ext314:04
forestpixieNext come any options you wish to pass‭ – ‬I add user here14:04
forestpixieFinally 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 drive14:05
forestpixieNow I shall add the lines for our other‭ ‬2‭ ‬partitions,‭ ‬the ntfs and fat3214:05
forestpixieSo that is the data entered into fstab,‭ ‬you would now need to save the file14:06
forestpixieI would now mount to check that the partitions have mounted without any problems14:06
forestpixieAssuming 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 scan14:06
forestpixieok - it's possible that there is a apparmor operating on the terminal - I've done this ocne earlier and it worked without issue14:07
forestpixieok - we have a small problem in the shared terminal :(14:09
forestpixiewe can stop for a while for any questions - we are unmoderated so I think you can talk14:09
forestpixieIf you have questions ?14:10
unutbucould you cat /etc/fstab please?14:10
forestpixieyep14:10
unutbuThere is a space before dev/sdb214:10
unutbuhuh, weird14:11
forestpixieso there was - pasting from abiword doesn't work as well as openoffice :)14:12
forestpixiethe 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 ask14:12
forestpixieI ran this previously and the log from the session is on the wiki page14:13
unutbuMaybe there is some invisible character that came with the pasting?14:13
forestpixiepossibly I can try doing ti long hand :)14:14
forestpixiethanks you unutbu :)14:18
unutbucool14:18
forestpixieok then we can move on if there are no questions :)14:19
unutbuCould you do sudo fdisk -l one more time?14:19
forestpixiefirst we can look at chown - changing ownership of files or folders14:19
forestpixieI think that is the problem we had from the beginning with the vm unutbu14:20
unutbuok14:20
forestpixieI have no idea why it shows them all as linux - nor did bodhi14:21
unutbuwhen you use fdisk, you can use a command to change the partition type14:21
unutbuit is interesting that you can proceed without doing so14:21
unutbuwithin fdisk the command is 't'14:22
forestpixieto be honest I've only used it a few times in anger - and I rarely have anything to do with win filesystems anymore14:22
unutbuyou can still do it; even on a partition with a filesystem14:22
unutbu:) lol14:22
forestpixieI can have a look later if you want14:23
unutbuok14:23
forestpixieNearly finished now14:23
forestpixieThere are‭ ‬4‭ ‬different permutations available for the owner and group changes14:23
forestpixieso we'll make a folder in our /etx3 partition and change the owner and group to see the changes14:24
forestpixieso we can change the fodler with chown14:25
forestpixieso chown can change the owner or group for a folder or file14:28
forestpixiechmod will change the permissions for files or folders14:28
forestpixiethe command is used like14:29
forestpixiechmod 000 /path/to/file14:29
forestpixiethe numbers are made from 4, 2 and 1 - giving a combination of read, write and execute14:29
forestpixiels -al will show the current permissions - the d simply denoting that it is a folder rather than a file14:30
forestpixieat the moment the folder temp has 755 permissions fro group and others - owner has read,write and execute14:31
forestpixieso in the shared session I can change them14:31
forestpixieso once we know the chmod and chown commands we can change the owner and permissions of any file or folder14:33
forestpixieok - thanks for coming along - that's it for the time being14:33
PartyBoi2thanks forestpixie14:34
forestpixieso if there are any questions - think them up while I put the kettle on14:34
forestpixieunutbu: do you want to show me what you were telling me ?14:37
unutbuAh sure14:39
unutbusorry, was away14:39
unutbufdisk /dev/sdb14:39
forestpixieyou can use wall in the terminal - Ctrl-a :wall "message"14:39
unutbuSorry, can't seem to find ntfs...14:41
PartyBoi27 I think14:41
unutburight; thanks14:41
unutbuIm' having a hard time with :wall14:42
forestpixieso am I - do it here :D14:43
unutbutype 2 for partition 214:43
unutbutype b to make set the partition type to FAT3214:43
unutbuor c14:44
forestpixieoh yea cool14:44
unutburight14:44
unutbusudo fdisk -l?14:45
forestpixiesmashing - thanks very much14:45
unutbuWhat I don't know is : if this matters in the slightest14:45
forestpixieheh14:45
unutbuThe filesystems seem to work just fine without this14:45
forestpixieI would guess that it would fall apart if you tried to see them in windows though14:46
unutbuhm, yes14:47
forestpixieI don't like wall very much though14:47
unutbuWindows seems to respect the hidden partition types, so indeed it probably is looking at this info14:47
unutbuirc question: how do you msg PartyBoi2?14:48
unutbuI kept getting "Unable to find nick or channel"14:48
forestpixieI think that /msg nick is how you do it - I use xchat and usually just right click on their name14:48
unutbuSorry, I seem to have managed it now14:49
forestpixie:)14:49
forestpixiewell 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:50
unutbuThanks forestpixie!14:51
forestpixieok cya later then :)14:51
PartyBoi2cya you all later14:51
=== nizarus_ is now known as nizarus
=== error404notfoun1 is now known as error404notfound
=== error404notfoun1 is now known as error404notfound

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!