Author Topic: help remount user directorys mouting ponts [SOLVED]  (Read 931 times)

itscrawford

  • Guest
help remount user directorys mouting ponts [SOLVED]
« on: April 23, 2010, 05:26:58 AM »
hay
i have just fulled up my partition for my user directory is their a way to relocate my for example my documents or downloads folders in my user directory  or to do this have to reinstall PCLinuxOS?
thx.
« Last Edit: April 23, 2010, 10:18:54 AM by itscrawford »

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: help remount user directorys mouting ponts
« Reply #1 on: April 23, 2010, 06:07:57 AM »
Yes it is usually possible to make such changes .....  using a liveCD most often ........  but full details of your install and where the OS parts are presently installed as well as where you propose to relocate them to would be needed for anyone to give exact advice.

To start post back the output of the following two commands ......  please copy and paste and include the line with the command showing ......

fdisk -l
df

regards.

itscrawford

  • Guest
Re: help remount user directorys mouting ponts
« Reply #2 on: April 23, 2010, 06:13:37 AM »
@localhost crawford]# fdisk -l

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc8000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           9       72261   de  Dell Utility
/dev/sda2              10         612     4843186    7  HPFS/NTFS
/dev/sda3   *        1968       91202   716771328    7  HPFS/NTFS
/dev/sda4             613        1967    10884037+   5  Extended
/dev/sda5             613        1314     5638783+  83  Linux
/dev/sda6            1315        1396      658633+  82  Linux swap / Solaris
/dev/sda7            1397        1967     4586526   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x45279c45

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       60801   488383008+   7  HPFS/NTFS

Disk /dev/sdc: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdd8add8a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1        1568    12594928+  83  Linux
/dev/sdc2            1569       30401   231601072+   5  Extended
/dev/sdc5            1569        2077     4088511   82  Linux swap / Solaris
/dev/sdc6            2078       30401   227511296    7  HPFS/NTFS

Disk /dev/sdg: 3965 MB, 3965190144 bytes
49 heads, 48 sectors/track, 3292 cylinders
Units = cylinders of 2352 * 512 = 1204224 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1               4        3293     3868160    b  W95 FAT32

Disk /dev/sdh: 4009 MB, 4009754624 bytes
124 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7688 * 512 = 3936256 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdh1   *           1         547     2102637    b  W95 FAT32
/dev/sdh2             548        1018     1810524    5  Extended
/dev/sdh5             548         657      422809   82  Linux swap / Solaris
/dev/sdh6             658        1018     1387653   83  Linux
[root@localhost crawford]# df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdc1              12G  4.2G  7.1G  37% /
/dev/sda7             4.4G  4.3G   41M 100% /home
/dev/sdb1             466G  112G  355G  24% /media/disk
/dev/sda5             5.3G  2.4G  2.7G  48% /media/disk-1
/dev/sdc6             217G  212G  5.8G  98% /media/New Volume
/dev/sda3             684G  329G  356G  49% /media/OS
/dev/sdh1             2.0G  1.5G  594M  72% /media/D
/dev/sda5             5.3G  2.4G  2.7G  48% /mnt/loop


okay
thx

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6380
  • I'm going South
Re: help remount user directorys mouting ponts
« Reply #3 on: April 23, 2010, 06:20:35 AM »
hay
i have just fulled up my partition for my user directory is their a way to relocate my for example my documents or downloads folders in my user directory  or to do this have to reinstall PCLinuxOS?
thx.

If you have more space on another partition:

1. Create a folder called Documents somewhere on that partition;
2. Make your normal user the owner of that folder;
3. Move the contents of /home/<user>/Documents to your newly created folder;
4. Remove /home/<user>/Documents;
5. In /home/<user>, create a symbolic link that points to your newly created folder. You can use drag and drop from the GUI.

If you have an empty partition:

1. Temporarily mount the empty partition somewhere;
2. Move the contents of /home/<user>/Documents to the empty partition (don't just copy it);
3. Edit /etc/fstab adding a line specifying that the partition that used to be empty but now contains your documents should be mounted at /home/<user>/Documents.
4. Run "mount -a" as root -- or reboot.

If you need more detailed instructions, tell us. At the same time you should tell us a bit more about your system. (I see that you did precisely that while I was typing.)
« Last Edit: April 23, 2010, 06:24:30 AM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: help remount user directorys mouting ponts
« Reply #4 on: April 23, 2010, 06:24:00 AM »
Code: [Select]
df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdc1              12G  4.2G  7.1G  37% /
/dev/sda7             4.4G  4.3G   41M 100% /home

Well I have to admit I never saw an arrangement like this one ......  /home is usually on the same HDD as the OS itself. Not a problem though.

Obviously you need to either reduce the contents of the /home partition or else move the contents of /home to a different location.

If there are files you can delete on the /home partition then that would help a little.
If those files are in the user account then it should be able to be done by logging into the root account and not the user account.

If you have no or not many, files you can delete then you need to move the contents of the partition to somewhere with a lot more space.
This can be done from a liveCD or other Linux OS which can access the /home partition.
You would use rsync command to moved the files, and then edit your fstab file to change the pointer to the new location for /home.

First you have to decide where you are going to put the new /home.
You should think about allocating about 20GB or 30GB for /home.

regards.

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6380
  • I'm going South
Re: help remount user directorys mouting ponts
« Reply #5 on: April 23, 2010, 06:37:16 AM »
Looking at your setup I think you have two choices: either

1. Move /home to a much larger partition; or

2. Keep your present /home but create a new data partition and move all your data to folders on that partition. You could mount it as /Data or as /home/<user>/Data, and then you could create symlinks from all the folders on it to wherever you want in /home/<user>.

If you don't have a separate data partition, /home can't be too big. (JohnBoy's recommendation is very conservative.) If you do have a separate data partition, your present /home may just be large enough.
« Last Edit: April 23, 2010, 06:42:49 AM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

itscrawford

  • Guest
Re: help remount user directorys mouting ponts
« Reply #6 on: April 23, 2010, 06:43:34 AM »
yes i will admit my HDD setup is quit scatted i originally just installed Linux to finish a project but have grown attached ......
i think i might clean it up and free up some space and crate a new partition for my home folders.
And readjust the pointers with the live cd  i think this will be the easier salutation jonboy
but blackbird that's some in depth knowledge many thanks fore sharing
now just to find where i put that live cd

itscrawford

  • Guest
Re: help remount user directorys mouting ponts
« Reply #7 on: April 23, 2010, 07:56:20 AM »
blackbird

in fstab wot are the correct values to be added ?

this is wot i have currently in my fstab fill.

# Entry for /dev/sdc1 :
UUID=f5043067-3449-4b76-801d-ad9a6be48504 / ext3 defaults 1 1
# Entry for /dev/sda7 :
UUID=235d7fac-8016-4f17-9367-3b54655317e9 /home ext3 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=e5519710-ada9-447d-9e05-ea34edd3c7bf swap swap defaults 0 0
# Entry for /dev/sdc5 :
UUID=76aa7b03-7156-4fb4-84c7-ce9f1335f3e9 swap swap defaults 0 0
none /dev/pts devpts mode=0620 0 0


Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: help remount user directorys mouting ponts
« Reply #8 on: April 23, 2010, 08:46:22 AM »
Code: [Select]
# Entry for /dev/sda7 :
UUID=235d7fac-8016-4f17-9367-3b54655317e9 /home ext3 defaults 1 2

That entry will need to be changed depending on where you copy /home to ......  if you are moving /home.

itscrawford

  • Guest
Re: help remount user directorys mouting ponts
« Reply #9 on: April 23, 2010, 09:38:59 AM »
Excellent

Thanks brilliant learning curve 

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6380
  • I'm going South
Re: help remount user directorys mouting ponts
« Reply #10 on: April 23, 2010, 09:54:30 AM »
itscrawford,

JohnBoy is right as usual: you have to know what you want to mount, and where you want to mount it before you add a line to /etc/fstab.

But let's look at the lines for your present /home.

Code: [Select]
# Entry for /dev/sda7 :is just a comment. The line isn't really needed. It's there so that you'll remember what the UUID in the following line stands for.

As you can see there are six fields separated by spaces in that line.

The first field is
Code: [Select]
UUID=235d7fac-8016-4f17-9367-3b54655317e9This specifies the partition you want to mount, and it does so unambiguously. The UUID number doesn't change unless you change it yourself or reformat the partition.

You could simply use
Code: [Select]
/dev/sda7instead. But under certain circumstances /dev/sda7 could become something else, so you may prefer a UUID number.

Or, if you had given the partition the label "HOME", you could have written
Code: [Select]
LABEL=HOME
To find out the UUID number and the label of /dev/sda7, you could use the command
Code: [Select]
blkid /dev/sda7 in a terminal.

The second field
Code: [Select]
/hometells the system where you want the partition to be mounted. The mountpoint is just an empty directory, but it must exist. (If it isn't empty, its former contents will be hidden while still taking up space on your drive.)

The third field
Code: [Select]
ext3tells the system with what filesystem the partition has been formatted. You might consider formatting it with ext4 instead of ext3.

The forth field is for a comma-separated list of options. There are a gazillion of them but for a /home directory the defaults are all you need. This means that you have to specify
Code: [Select]
defaultsbecause you can't leave the field empty.

You can ignore the fifth field (it's only used by the "dump" command) but you can't leave it empty, because then the system will believe that the sixth field is the fifth.

And the sixth field in your line for sda7 is simply the number 2. It tells the program fsck in which order filesystem checks should be done. It should be 0 if you don't ever want the partition to be checked automatically, 1 for the root partition (/), and 2 for everything else.
« Last Edit: April 23, 2010, 01:09:13 PM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

itscrawford

  • Guest
Re: help remount user directorys mouting ponts [SOLVED]
« Reply #11 on: April 23, 2010, 10:30:46 AM »
honestly grade A guys

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11581
  • ----IOFLU----
Re: help remount user directorys mouting ponts [SOLVED]
« Reply #12 on: April 23, 2010, 12:20:19 PM »
itscrawford:

You can label your partitions, to make what's on them more easily understood. Each label must be unique, but the labels act the same as UUID numbers. My fstab is below, as an example.

Code: [Select]
# Entry for /dev/sdc14 :
LABEL=minime2010        /                       ext4    defaults                1 1
LABEL=TR5-Documents     /home/polack/Documents  ext3    defaults                1 2
LABEL=Documents2        /home/polack/Documents2 ext3    defaults                1 2
LABEL=share7            /share7                 ext3    rw,user,auto,exec       0 0
LABEL=share9            /share9                 ext3    rw,user,auto,exec       0 0
LABEL=movies            /movies                 ext3    rw,user,auto,exec       0 0
LABEL=movies2           /movies2                ext3    rw,user,auto,exec       0 0
LABEL=TV-1              /tv                     ext3    rw,user,auto,exec       0 0
LABEL=storage00         /zstorage00             ext3    rw,user,noauto,exec     0 0
LABEL=120backup         /zbackup                ext3    rw,user,noauto,exec     0 0
none                    /proc                   proc    defaults                0 0
# Entry for /dev/sda2 :
LABEL=swap200           swap                    swap    defaults                0 0
# Entry for /dev/sda2 :
LABEL=swap1000          swap                    swap    defaults                0 0
# Entry for /dev/sdc2 :
LABEL=swap750           swap                    swap    defaults                0 0
none                    /dev/pts                devpts  mode=0620               0 0
/dev/fd0                /mnt/floppy             auto    rw,user,noauto,exec     0 0
/dev/sr0                /mnt/cdrom              auto    ro,user,noauto          0 0
/dev/sr1                /mnt/dvd                auto    ro,user,noauto          0 0
none                    /dev/shm                tmpfs   defaults                0 0
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...