=== manueld2 is now known as manueld === stas` is now known as stas === Rafik_ is now known as Rafik [12:13] morning - are there any mods in here at the moment? [12:16] forestpixie: Hi there. [12:17] hey jpds I have a sessionlater at 1330UTC - I need it to be moderated - can you give me ops please [12:18] thank you - :) [12:19] Heh talsemgeest [12:19] I'll log it and look over it later :) [12:20] * lukjad007 is looking for the log button [12:20] it's in the woods lukjad007 [12:21] !logs [12:21] Channel logs can be found at Channel logs can be found at http://irclogs.ubuntu.com/ - See also !OpenWeek - See also !OpenWeek [12:29] hey PartyBoi2 - are you here to keep me company :) [12:30] yep :) [12:30] well if easwar fails to appear you can do more than keep me company [12:35] hopefully easwar will show [12:35] +1 [13:01] howdy [13:01] hi unutbu [13:02] are you here for the session? [13:02] Sure am. [13:02] did you connect to the virtual terminal ok === KterinK is now known as dou213 [13:03] oh... I don't know about this... [13:03] what am I supposed to do? [13:03] oh - well half is here and I'll be running various things in a virtual terminal [13:03] 2 secs [13:04] https://wiki.ubuntu.com/BeginnersTeam/FocusGroups/Education/STS [13:07] thanks forestpixie, I'm ssh'd [13:09] oh excellent - so are some others too :) [13:23] other than unutbu is there anyone else here for the session? I'll be setting the channel to moderated soon [13:29] couple of minutes and I'll make a start [13:31] Ok - then this is the fdisk/fstab/chmod and chown session [13:31] 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] 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] We'll follow that with a question/answer session [13:32] 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] 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] 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] Ok - fdisk first, a little bit more here then we can look at the virtual terminal [13:36] I am going to create the following partitions‭ ‬,‭ ‬2‭ ‬primaries,‭ ‬1‭ ‬extended and a logical inside it. [13:36] You start fdisk with root rights on the device you wish to work with [13:36] sudo fdisk‭ ‬/dev/sxy‭ – ‬the number of the drive can be found by using fdisk -l‭ – ‬check the virtual terminal [13:37] You can see that it has listed 2 drives - we are going to use /dev/sdb‭ [13:37] so we will start fdisk on that drive [13:38] m will givce you all the commands you can use here [13:38] 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] Now we need to tell fdisk which partition we want to create,‭ ‬I want it to be number‭ 1 [13:39] 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] 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] 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] Finally I need to tell fdisk to complete the operation and write the new partition table,‭ ‬to do this use‭ w [13:40] If I use fdisk‭ ‬-l it should now show me my new partition, [13:41] 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] 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] 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] if you have any questions - ask now [13:46] on to creating the filesystems then - so back and forth between here and the terminal [13:46] 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] sudo mkfs‭ ‬-t filetype‭ ‬/dev/sdxy , So the commands we will need to run in our vt are [13:48] Ok we now have our created our new partitions and formatted them. [13:49] As ther are no questions I'll carry on with fstab [13:50] If you run cat /etc/fstab in a normal terminal you will see this at the top [13:50] [13:51] This is part of my fstab relating to my‭ ‬/‭ ‬partition‭ [13:51] UUID‭=‬9d44e64b-0c3f-4376-93f5-7e0a4bc9afac‭ ‬/‭ ‬ext3‭ ‬relatime,errors=remount-ro‭ ‬0‭ ‬1‭ [13:51] 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] The first part to the UUID,‭ ‬you can if you wish use the device name instead of UUID‭ [13:52] to do so I would replace it with‭ ‬/dev/sda2‭ ‬this would make my fstab line read so‭ [13:52] /dev/sda2‎ ‏/‎ ‏ext3‭ ‬relatime,errors=remount-ro‭ ‬0‭ ‬1‭ [13:52] 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] 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] 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] 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] 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] 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] If there any latecomers can they /msg PartyBoi2 with questions please :) [13:55] 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] 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] To do that we would use the mkdir command like so [13:56] sudo mkdir /mnt/foldername [13:56] So to allow our new partitions to mount correctly I need to create their mountpoints - one for each partition we have created [13:56] which I need to do no win the shared terminal [13:58] So now we have the new folders in‭ ‬/mnt to use. [13:58] db1 - you have a question? [13:59] 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] I don't know the answer to that - I've never used them [14:00] if anyone else does I think you should be able to talk until I set the mode again [14:02] so we've made our folders in /mnt now we need ot add them to fstab [14:02] 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] so first we give tell it which partition we are mounting [14:03] which is /dev/sdb1‭ [14:03] Next we have to tell it our new mountpoint [14:04] ‭/dev/sdb1 /mnt/ext3 [14:04] Next comes the filetype [14:04] ‭ /dev/sdb1 /mnt/ext3 ext3 [14:04] Next come any options you wish to pass‭ – ‬I add user here [14:05] 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] Now I shall add the lines for our other‭ ‬2‭ ‬partitions,‭ ‬the ntfs and fat32 [14:06] So that is the data entered into fstab,‭ ‬you would now need to save the file [14:06] I would now mount to check that the partitions have mounted without any problems [14:06] 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] 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] ok - we have a small problem in the shared terminal :( [14:09] we can stop for a while for any questions - we are unmoderated so I think you can talk [14:10] If you have questions ? [14:10] could you cat /etc/fstab please? [14:10] yep [14:10] There is a space before dev/sdb2 [14:11] huh, weird [14:12] so there was - pasting from abiword doesn't work as well as openoffice :) [14:12] 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] I ran this previously and the log from the session is on the wiki page [14:13] Maybe there is some invisible character that came with the pasting? [14:14] possibly I can try doing ti long hand :) [14:18] thanks you unutbu :) [14:18] cool [14:19] ok then we can move on if there are no questions :) [14:19] Could you do sudo fdisk -l one more time? [14:19] first we can look at chown - changing ownership of files or folders [14:20] I think that is the problem we had from the beginning with the vm unutbu [14:20] ok [14:21] I have no idea why it shows them all as linux - nor did bodhi [14:21] when you use fdisk, you can use a command to change the partition type [14:21] it is interesting that you can proceed without doing so [14:22] within fdisk the command is 't' [14:22] 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] you can still do it; even on a partition with a filesystem [14:22] :) lol [14:23] I can have a look later if you want [14:23] ok [14:23] Nearly finished now [14:23] There are‭ ‬4‭ ‬different permutations available for the owner and group changes [14:24] so we'll make a folder in our /etx3 partition and change the owner and group to see the changes [14:25] so we can change the fodler with chown [14:28] so chown can change the owner or group for a folder or file [14:28] chmod will change the permissions for files or folders [14:29] the command is used like [14:29] chmod 000 /path/to/file [14:29] the numbers are made from 4, 2 and 1 - giving a combination of read, write and execute [14:30] ls -al will show the current permissions - the d simply denoting that it is a folder rather than a file [14:31] at the moment the folder temp has 755 permissions fro group and others - owner has read,write and execute [14:31] so in the shared session I can change them [14:33] so once we know the chmod and chown commands we can change the owner and permissions of any file or folder [14:33] ok - thanks for coming along - that's it for the time being [14:34] thanks forestpixie [14:34] so if there are any questions - think them up while I put the kettle on [14:37] unutbu: do you want to show me what you were telling me ? [14:39] Ah sure [14:39] sorry, was away [14:39] fdisk /dev/sdb [14:39] you can use wall in the terminal - Ctrl-a :wall "message" [14:41] Sorry, can't seem to find ntfs... [14:41] 7 I think [14:41] right; thanks [14:42] Im' having a hard time with :wall [14:43] so am I - do it here :D [14:43] type 2 for partition 2 [14:43] type b to make set the partition type to FAT32 [14:44] or c [14:44] oh yea cool [14:44] right [14:45] sudo fdisk -l? [14:45] smashing - thanks very much [14:45] What I don't know is : if this matters in the slightest [14:45] heh [14:45] The filesystems seem to work just fine without this [14:46] I would guess that it would fall apart if you tried to see them in windows though [14:47] hm, yes [14:47] I don't like wall very much though [14:47] Windows seems to respect the hidden partition types, so indeed it probably is looking at this info [14:48] irc question: how do you msg PartyBoi2? [14:48] I kept getting "Unable to find nick or channel" [14:48] I think that /msg nick is how you do it - I use xchat and usually just right click on their name [14:49] Sorry, I seem to have managed it now [14:49] :) [14:50] 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] Thanks forestpixie! [14:51] ok cya later then :) [14:51] cya you all later === nizarus_ is now known as nizarus === error404notfoun1 is now known as error404notfound === error404notfoun1 is now known as error404notfound