Choose style:

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

0 Members and 1 Guest are viewing this topic.

Offline spence

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #15 on: June 23, 2017, 03: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/fstab
contents 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
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Offline spence

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #16 on: June 23, 2017, 03: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
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 17117
  • Karma: 2071
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: HPG6 & symlinks...
« Reply #17 on: June 24, 2017, 09:41:33 am »
Can we have the output from:
Code: [Select]
sudo fdisk -l
and
Code: [Select]
sudo blkid
and 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

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #18 on: June 25, 2017, 02:36:56 pm »
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 blkid
and 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
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 17117
  • Karma: 2071
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: HPG6 & symlinks...
« Reply #19 on: June 28, 2017, 04:18:23 pm »
Okay run:
Code: [Select]
sudo mkdir /mnt/DATA
now run:
Code: [Select]
sudo pluma /etc/fstab
and 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 -a
and 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

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #20 on: June 29, 2017, 10: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
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 17117
  • Karma: 2071
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: HPG6 & symlinks...
« Reply #21 on: July 01, 2017, 12:00:16 pm »
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

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #22 on: July 01, 2017, 04: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
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Offline spence

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #23 on: July 01, 2017, 05:05:25 pm »
now I've got a muckety mucked up pile of file muck.... will add screen shot in a bit... >:(
spence
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 17117
  • Karma: 2071
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: HPG6 & symlinks...
« Reply #24 on: July 01, 2017, 05: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

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #25 on: July 02, 2017, 04: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
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Online PCNetSpec

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

what's the output from:
Code: [Select]
ls -l /mnt
and
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

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #27 on: July 02, 2017, 07: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)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1731244k,nr_inodes=432811,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=350860k,mode=755)
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=342)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda5 on /mnt type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /mnt/archives type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /boot type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=350860k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/mmcblk0p1 on /media/spence/3AE0ADBC6DA616EA type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
[close]
spence
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Offline spence

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #28 on: July 03, 2017, 12:55:14 pm »
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, 01:02:04 pm by spence »
spence
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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

Offline spence

  • Trusted User
  • Member
  • *****
  • Posts: 812
  • Karma: 83
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 8, 64bit
Re: HPG6 & symlinks...
« Reply #29 on: July 03, 2017, 01:42:20 pm »
 :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, 01:45:25 pm by spence »
spence
Peppermint 8 on my Antec Aria rebuild
& '12 HP Pavilion G6


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