![]() |
Resizing a partition - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: Hardware - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=6) +--- Forum: Hard Drives and SSDs (https://www.linuxliteos.com/forums/forumdisplay.php?fid=26) +--- Thread: Resizing a partition (/showthread.php?tid=4005) Pages:
1
2
|
Re: Resizing a partition - JohnD - 04-29-2017 (04-29-2017, 12:30 PM)bitsnpcs link Wrote: Is this having windows (re; dos and ntfs) as the first partition? The first partition is the home of Windows 7. Re: Resizing a partition - bitsnpcs - 04-29-2017 I think it makes it more complex when booting from Windows and Linux, as they each are using a different method to boot usually, but you can do both of course, there are some on the forum in addition to yourself who also do this. Hopefully they can help you. I have 1 windows computer, and a 3 Linux Lite computers, but at each one it is only 1 OS installed, I don't dual boot etc. I have other distros in Linux Lite (ultimately controls them) using Virtual Box, so I can test things at a future time.(Python, and scripts) Are you booting from Windows MBR and then using this to boot also Linux when selected at the start up menu? Or it has Grub, and installed after this, Windows was installed first ? Re: Resizing a partition - JohnD - 04-29-2017 (04-29-2017, 01:35 PM)bitsnpcs link Wrote: I have 1 windows computer, and a 3 Linux Lite computers, but at each one it is only 1 OS installed, I don't dual boot etc. I have other distros in Linux Lite (ultimately controls them) using Virtual Box, so I can test things at a future time.(Python, and scripts) Maybe this is an option for the future. I've always prefered to install systems directly. (04-29-2017, 01:35 PM)bitsnpcs link Wrote: Are you booting from Windows MBR and then using this to boot also Linux when selected at the start up menu? Windows 7 was installed first. Some linux distributions after it, always with grub as boot loader, like it is now. Last installation, after I have had some problems with the partition of an older installation of Linux, was Linux Lite 3.4. I in this moment using a linux installation at sda12 on the same hard drive. (The distro is called Emmabuntüs. It's good for older computers and families with little children.) Re: Resizing a partition - bitsnpcs - 04-29-2017 I understand how you explained to me, thank you ![]() My oldest computer, it was in around year 2000, it is a P4 1GB ram, I use LL 2 series (late in 2 series). Re: Resizing a partition - JohnD - 04-29-2017 I now have played back my backup image of LL's home directory:
(04-29-2017, 06:56 PM)bitsnpcs link Wrote: My oldest computer, it was in around year 2000, it is a P4 1GB ram, I use LL 2 series (late in 2 series). My system is this: Code: System: Host: central-desktop Kernel: 4.4.0-75-generic x86_64 (64 bit) Desktop: Xfce 4.12.3 Re: Resizing a partition - JohnD - 04-30-2017 I've fixed the problem of the home partition running out of space without resizing the partition.
The resulting free space Code: johnd@central-desktop:~$ sudo du -hs /home; LANGUAGE=en df -h /home With this structure Code: johnd@central-desktop:~$ ls -la /home/johnd | grep "^l" Re: Resizing a partition - bitsnpcs - 04-30-2017 Great work JohnD ![]() I have only just begun learning symbolic links, I begin Chapter 6 of the Command Line Book by W. Shotts, I began a first look at symbolic links and hard links in the previous Chapter and made a few beginner ones. So it means downloads are now downloaded directly to the Central home partition, and in the newly named Downloads_local it has the symbolic links to the files so they are usable from here too ? Will you have to create symbolic links manually for each new download, or have you set it to make these automatically some how ? For me it sounds a very complex and advanced set up, but it is also very interesting how it works. Re: Resizing a partition - JohnD - 04-30-2017 (04-30-2017, 05:13 AM)bitsnpcs link Wrote: Great work JohnDTHX ![]() (04-30-2017, 05:13 AM)bitsnpcs link Wrote: So it means downloads are now downloaded directly to the Central home partition [...]Yes, the symbolic link "/home/Downloads" has the consequence, that all downloads, which are saved normally to "/home/Downloads" now are saved in /media/central_home/besto/Downloads", which is on another partition. (04-30-2017, 05:13 AM)bitsnpcs link Wrote: So it means downloads are now downloaded directly to the Central home partition, and in the newly named Downloads_local it has the symbolic links to the files so they are usable from here too?No, Downloads_local is a directory with no connection to the symbolic linked directory. There are just some files in this directory, which I have saved in the former Downloads directory and I wanted to have a second Download directory which is not linked, if I would like to save a Download not in the linked directorcy. (04-30-2017, 05:13 AM)bitsnpcs link Wrote: Will you have to create symbolic links manually for each new download, or have you set it to make these automatically some how ?No, you have to define the link one time. One time you have to define a directory for mounting the partition you would like to use for user files: Code: johnd@his-desktop$ sudo mkdir /media/central_home ![]() Now -- in my case -- there is this new directory in "[tt]/media[/tt]" called "[tt]central_home[/tt]", and you have to mount the partition for the user files to it. In my case the partition to mount is [tt]/dev/sda[/tt]. Code: johnd@his-desktop$ sudo mount /media/central_home /dev/sda9 A problem is, that you have to write the mount in the file "[tt]fstab[/tt]" in the directory "[tt]/etc[/tt]", because only then it will be mounted automatically, if Linux was shutdown. In my case [tt]fstab[/tt] for Linux Lite is this: Code: # <file system> <mount point> <type> <options> <dump> <pass> The last line says that [tt]/dev/sda9[/tt] should be mounted every time linux starts. Remarkable, that there is not written "[tt]/dev/sda9[/tt]", but "[tt]UUID=3b77c81c-0afa-4c85-b160-e94458b1fabc[/tt]" is another identification of my current "[tt]/dev/sda9[/tt]". The UUID is an id of the partition. You got them with the command [tt]blkid[/tt]. For example: Code: johnd@johns-desktop:~$ blkid /dev/sda9 It's an unique id. The following -- for example -- is the complete answer of [tt]blkid[/tt], if I do not specify a single partition: Code: johnd@johns-desktop:~$ blkid Finally to create the symbolic link, I've done this: Code: johnd@his-desktop$ sudo ln -s /media/central_home/besto/Downloads ~/Downloads "[tt]~/Downloads[/tt]" is short for "[tt]/home/johnd/Downloads[/tt]", and "[tt]~[/tt]" stands for the home dir of the currently logged in user. Now "[tt]/home/johnd/Downloads[/tt]" is a shortcut, a symbolic link to "[tt]/media/central_home/besto/Downloads[/tt]". (04-30-2017, 05:13 AM)bitsnpcs link Wrote: For me it sounds a very complex and advanced set up, but it is also very interesting how it works.Ok. But it's really not my first linux installation. I've tried some distros and installed also some of them for a friend. But I'm trying to learn linux also now. In fact I'm preparing for LPIC 1 and LPIC 2. Re: Resizing a partition - bitsnpcs - 04-30-2017 Thank You for explaining ![]() It is a very interesting set up you have JohnD. |