Author Topic: HPG6 & symlinks... [SOLVED]  (Read 3913 times)

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #15 on: June 23, 2017, 12:41:19 pm »
Okay, so the purpose of this topic is to set up a DATA partition with symlinks right ?

correctamundo, to figure this out before updating the rebuilt Antec....

Can you give us your
Code: [Select]
pluma /etc/fstabcontents as it stands now.

Certainly, but I think I need to add a line back in from the fstab-old to make the data partition not appear as a drive like the sd media cards do:

Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=69870d95-e9cd-4e01-823e-1e57c7463c76 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=7739ead9-4767-4af9-9ca3-d499e73f88c5 /boot           ext4    defaults        0       2

and I think that line would be:

Code: [Select]
# /mnt was on /dev/sda5 during installation
UUID=b486b28d-15cf-477b-a90c-c68b3a58712d /mnt            ext4    defaults        0       2






spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #16 on: June 23, 2017, 12:46:37 pm »
My supposition was correct, and now the data partition no longer appears as a "device" in the file manager menu...
although, i'm now pondering if that might be a convenient access point to files on that drive? hmmmmmm  ;) ?
spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: HPG6 & symlinks...
« Reply #17 on: June 24, 2017, 06:41:33 am »
Can we have the output from:
Code: [Select]
sudo fdisk -land
Code: [Select]
sudo blkidand can you confirm sda5 is the partition you want to use as the DATA partition ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #18 on: June 25, 2017, 11:36:56 am »
Can we have the output from:
Code: [Select]
sudo fdisk -l

Code: [Select]
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xfcff5427

Device     Boot    Start       End   Sectors   Size Id Type
/dev/sda1  *        2048   2423922   2421875   1.2G 83 Linux
/dev/sda2        2424832  20883455  18458624   8.8G 83 Linux
/dev/sda3       20885502 468860927 447975426 213.6G  5 Extended
/dev/sda5       20885504 468860927 447975424 213.6G 83 Linux

and
Code: [Select]
sudo blkidand can you confirm sda5 is the partition you want to use as the DATA partition ?

Code: [Select]
/dev/sda1: UUID="7739ead9-4767-4af9-9ca3-d499e73f88c5" TYPE="ext4" PTTYPE="dos" PARTUUID="fcff5427-01"
/dev/sda2: UUID="69870d95-e9cd-4e01-823e-1e57c7463c76" TYPE="ext4" PARTUUID="fcff5427-02"
/dev/sda5: UUID="b486b28d-15cf-477b-a90c-c68b3a58712d" TYPE="ext4" PARTUUID="fcff5427-05"
/dev/mmcblk0: PTUUID="0008fc28" PTTYPE="dos"
/dev/mmcblk0p1: UUID="3AE0ADBC6DA616EA" TYPE="ntfs" PARTUUID="0008fc28-01


sda3 is an extended partition which i intend to further partition to play with other distributions one day... but currently only contains sda5 which will be the data partition. As you've made clear previously creating a home or mnt partition doesn't give me the separation I desire when updating or upgrading peppermint.
spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: HPG6 & symlinks...
« Reply #19 on: June 28, 2017, 01:18:23 pm »
Okay run:
Code: [Select]
sudo mkdir /mnt/DATAnow run:
Code: [Select]
sudo pluma /etc/fstaband add these two lines at the bottom:
Code: [Select]
## Added by Spence - Mount /dev/sda5 at /mnt/DATA
UUID=b486b28d-15cf-477b-a90c-c68b3a58712d /mnt/DATA            ext4    defaults        0       0
SAVE the file and exit pluma.

Now run:
Code: [Select]
sudo mount -aand hopefully there will be no errors.

Confirm that last command didn't throw up an error and we'll continue.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #20 on: June 29, 2017, 07:04:35 pm »
Sorry for delays... its a busy pool party season here in the Sonoran Desert  8)

Also no errors on the hpG6


spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: HPG6 & symlinks...
« Reply #21 on: July 01, 2017, 09:00:16 am »
Huh :-\

Are you saying that after adding the lines I said to fstab and running "sudo mount -a" you get no error ?

It's the word "Also" that's confusing me .. are we doing this just one PC or two ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #22 on: July 01, 2017, 01:39:08 pm »
There were no errors....  8)

I will start a separate thread for the Antec rebuild when the time comes... will have to sort the stupid USB wifi on that machine first.


spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #23 on: July 01, 2017, 02:05:25 pm »
now I've got a muckety mucked up pile of file muck.... will add screen shot in a bit... >:(
spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: HPG6 & symlinks...
« Reply #24 on: July 01, 2017, 02:15:01 pm »
A what ? :))
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #25 on: July 02, 2017, 01:59:50 pm »
A what ? :))
a blanketey blank muckety muck of a frakking fine file folder mess. Initially thought i was being brilliant by choosing to use the empty mnt folder as my data partition... as opposed to adding a folder called DATA...  on the very unlikely chance this laptop ever was lost or stolen... then theres an embedded folder also called archives... and now one named DATA, none of which i seem to be able to delete...  likely because i used the undeletable folder mnt...

mebbe i should quit trying to be cool while my brain is only partially engaged...   :(
https://1drv.ms/i/s!AhWXWykJZPvozTXS1Itp0XeaSKUD
spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: HPG6 & symlinks...
« Reply #26 on: July 02, 2017, 04:02:12 pm »
Okay that totally messed up my head...

what's the output from:
Code: [Select]
ls -l /mntand
Code: [Select]
mount
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #27 on: July 02, 2017, 04:52:37 pm »
Okay that totally messed up my head...

what's the output from:
Code: [Select]
ls -l /mnt

making my damaged head hurt more too...  :-\

Code: [Select]
total 12
drwxr-xr-x 6 root   root   4096 Jul  1 13:34 archives
drwxr-xr-x 2 root   root   4096 Jun 29 19:02 DATA
drwxr-xr-x 2 spence spence 4096 Jun  6 12:58 mnt


and
Code: [Select]
mount

Spoiler (click here to view / hide)
[close]
spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #28 on: July 03, 2017, 09:55:14 am »
so here's what I've tried this morning...
Code: [Select]
spence@hpG6 ~ $ sudo rm mkdir /mnt/archives
[sudo] password for spence:
rm: cannot remove 'mkdir': No such file or directory
rm: cannot remove '/mnt/archives': Is a directory
spence@hpG6 ~ $ sudo rm /mnt/archives
rm: cannot remove '/mnt/archives': Is a directory
spence@hpG6 ~ $ sudo delete ~archives
sudo: delete: command not found
spence@hpG6 ~ $ sudo rm ~archives
rm: cannot remove '~archives': No such file or directory
spence@hpG6 ~ $ sudo rm archives
[sudo] password for spence:
rm: cannot remove 'archives': No such file or directory
spence@hpG6 ~ $ sudo rm -rf archives
spence@hpG6 ~ $ sudo rm -rf mnt
spence@hpG6 ~ $ sudo rm -rf DATA

but thus far the blanketey blank muckety muck of a frakking fine file folder mess remains, then i tried a few other variations I found online...

Code: [Select]
root@hpG6 /mnt/archives/mnt # rm mnt
rm: cannot remove 'mnt': No such file or directory
root@hpG6 /mnt/archives/mnt # cd /mnt/archives
root@hpG6 /mnt/archives # rmdir archives
rmdir: failed to remove 'archives': Device or resource busy
root@hpG6 /mnt/archives # rmdir archives
rmdir: failed to remove 'archives': Device or resource busy
root@hpG6 /mnt/archives #

which I think is telling me I'll have to do this removal from the live usb?

Naa, decided that made no sense... trying a few other things from here but no changes yet https://stackoverflow.com/questions/210120/remove-a-symlink-to-a-directory





« Last Edit: July 03, 2017, 10:02:04 am by spence »
spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3029
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: HPG6 & symlinks...
« Reply #29 on: July 03, 2017, 10:42:20 am »
 :D Found It.... i needed to change permissions... thanks to finding this link...  https://forum.peppermintos.com/index.php/topic,5650.msg56710.html#msg56710   my concussion damaged brain is re-engaging...   8)
« Last Edit: July 03, 2017, 10:45:25 am by spence »
spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.