Author Topic: /home not recognized after hardware change  (Read 4088 times)

Offline aguila

  • Hero Member
  • *****
  • Posts: 1206
  • soaring high = no Windows here :-D
Re: /home not recognized after hardware change
« Reply #45 on: February 09, 2012, 08:51:43 AM »
Ok, I'll read up on it. Thanks -

I will show this as solved.

Thanks again guys -


You can convert ext2 to ext3 or ext4 without reformatting and reinstalling.

http://www.pclinuxos.com/forum/index.php/topic,87699.msg731698.html#msg731698


Doh! Windowsy way-of-thought remainders.... ::)

If it's "only" journalling, will there be any performance gains?

And, to go from ext2 to ext4 would be a two-step process, correct?
All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, Plextor PX-256M3 256 GB SSD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #46 on: February 09, 2012, 09:00:19 AM »
Hondo,

when you have done the conversion, do not forget to change also the fstab entries from ext2 to ext4  ;)

Offline Hondo

  • Full Member
  • ***
  • Posts: 186
  • What if it is a Samsquamch?
    • KLRWorld.com
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #47 on: February 09, 2012, 09:06:50 AM »
Quote

You can convert ext2 to ext3 or ext4 without reformatting and reinstalling.

http://www.pclinuxos.com/forum/index.php/topic,87699.msg731698.html#msg731698


I'd like to switch to ext3 but am a bit apprehensive with this (still feeling a bit numb from my last fubar experience).


Boot a PCLinuxOS liveCD, open a terminal, su to root, and enter the command;

[root@localhost ~]# tune2fs -j /dev/<whatever>                  <Enter>

Replace <whatever> with the actual device designation, first sda1, then enter the command again using sdb1. That will take care of converting both your / partition and your /home partition.


I successfully converted all of the partitions to ext3 -Thank You VERY MUCH O-P!

Offline Hondo

  • Full Member
  • ***
  • Posts: 186
  • What if it is a Samsquamch?
    • KLRWorld.com
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #48 on: February 09, 2012, 09:07:29 AM »
Hondo,

when you have done the conversion, do not forget to change also the fstab entries from ext2 to ext4  ;)

Do I do that by just editing the fstab text?

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #49 on: February 09, 2012, 09:08:19 AM »
Hondo,

when you have done the conversion, do not forget to change also the fstab entries from ext2 to ext4  ;)

Do I do that by just editing the fstab text?

yes!

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11689
  • ----IOFLU----
Re: /home not recognized after hardware change
« Reply #50 on: February 09, 2012, 09:11:24 AM »
Ok, I'll read up on it. Thanks -

I will show this as solved.

Thanks again guys -


You can convert ext2 to ext3 or ext4 without reformatting and reinstalling.

http://www.pclinuxos.com/forum/index.php/topic,87699.msg731698.html#msg731698


Doh! Windowsy way-of-thought remainders.... ::)

If it's "only" journalling, will there be any performance gains?

And, to go from ext2 to ext4 would be a two-step process, correct?


Adding the journal (ext3) makes the filesystem much more robust, not particularly faster. Converting to ext4 gains some speed advantage as well. The conversion can be direct from ext2 to ext4 with a single command.

[root@localhost ~]# tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/<whatever>          <Enter>
Old-Polack

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



Lest we forget...

Offline aguila

  • Hero Member
  • *****
  • Posts: 1206
  • soaring high = no Windows here :-D
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #51 on: February 09, 2012, 09:18:15 AM »
Very interesting, thanks Old-Polack.

Good to have someone that knowledgable around.  :) :)
All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, Plextor PX-256M3 256 GB SSD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD

Offline Hondo

  • Full Member
  • ***
  • Posts: 186
  • What if it is a Samsquamch?
    • KLRWorld.com
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #52 on: February 09, 2012, 09:24:34 AM »
Ok guys, I have modded the fstab file to ext3.

Here's my next question though-

When I view the fstab file, it does not show the other partitions that are on the same drive as /home -

# Entry for /dev/sda1 :
UUID=e4c78aa0-44ca-4184-a8e6-3c6f25507570 / ext3 defaults 1 1
# Entry for /dev/sdc1 :
UUID=9748580c-b70e-4b96-94b3-6b6873a6ef4c /StorageDrive ext4 defaults 1 2
none /dev/pts devpts defaults 0 0
/dev/sr0 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
# Entry for /dev/sda2 :
UUID=2ef4bf39-2a9f-4705-9dde-4b63e0bee12e swap swap defaults 0 0
# Entry for /dev/sdb1
UUID=312f0be9-5d2f-4e43-b7f2-cfd850bc63e3 /home ext3 defaults 1 2


When I run the blkid command, it says-

[hondo@localhost ~]$ blkid
/dev/sda2: LABEL="/swap" UUID="2ef4bf39-2a9f-4705-9dde-4b63e0bee12e" TYPE="swap"
/dev/sdc1: LABEL="StorageDrive" UUID="9748580c-b70e-4b96-94b3-6b6873a6ef4c" TYPE="ext4"
/dev/sda1: LABEL="/" UUID="e4c78aa0-44ca-4184-a8e6-3c6f25507570" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb1: LABEL="/home" UUID="312f0be9-5d2f-4e43-b7f2-cfd850bc63e3" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb2: LABEL="/WD-Storage" UUID="22bac2ba-3686-4842-964b-09eccdc0df24" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb3: LABEL="/WD-Backup" UUID="64217a16-4065-4129-af35-4910f073fbc8" SEC_TYPE="ext2" TYPE="ext3"


What do I need to add to the fstab file to include those 2 other partitions? (sdb2 & sdb3)-


« Last Edit: February 09, 2012, 09:26:13 AM by Hondo »

Offline Hondo

  • Full Member
  • ***
  • Posts: 186
  • What if it is a Samsquamch?
    • KLRWorld.com
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #53 on: February 09, 2012, 10:05:25 AM »
Disregard- I punted the 2 extra partitions, created a new one as ext3, and saved it to fstab.

Thank you all very much for your hep- I really appreciate it!

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11689
  • ----IOFLU----
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #54 on: February 09, 2012, 10:18:15 AM »
Ok guys, I have modded the fstab file to ext3.

Here's my next question though-

When I view the fstab file, it does not show the other partitions that are on the same drive as /home -

# Entry for /dev/sda1 :
UUID=e4c78aa0-44ca-4184-a8e6-3c6f25507570 / ext3 defaults 1 1
# Entry for /dev/sdc1 :
UUID=9748580c-b70e-4b96-94b3-6b6873a6ef4c /StorageDrive ext4 defaults 1 2
none /dev/pts devpts defaults 0 0
/dev/sr0 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
# Entry for /dev/sda2 :
UUID=2ef4bf39-2a9f-4705-9dde-4b63e0bee12e swap swap defaults 0 0
# Entry for /dev/sdb1
UUID=312f0be9-5d2f-4e43-b7f2-cfd850bc63e3 /home ext3 defaults 1 2


When I run the blkid command, it says-

[hondo@localhost ~]$ blkid
/dev/sda2: LABEL="/swap" UUID="2ef4bf39-2a9f-4705-9dde-4b63e0bee12e" TYPE="swap"
/dev/sdc1: LABEL="StorageDrive" UUID="9748580c-b70e-4b96-94b3-6b6873a6ef4c" TYPE="ext4"
/dev/sda1: LABEL="/" UUID="e4c78aa0-44ca-4184-a8e6-3c6f25507570" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb1: LABEL="/home" UUID="312f0be9-5d2f-4e43-b7f2-cfd850bc63e3" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb2: LABEL="/WD-Storage" UUID="22bac2ba-3686-4842-964b-09eccdc0df24" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb3: LABEL="/WD-Backup" UUID="64217a16-4065-4129-af35-4910f073fbc8" SEC_TYPE="ext2" TYPE="ext3"


What do I need to add to the fstab file to include those 2 other partitions? (sdb2 & sdb3)-




First you need to create a permanent mount point directory for each partition you wish to add to /etc/fstab.

Then you need to make the entry. As you have already labeled your partitions, why are you not using those labels?

Example:

Let's say you want to mount the partition with the LABEL="/WD-Storage" on /mnt/storage, the /etc/fstab entry would be

LABEL=/WD-Storage   /mnt/storage   ext3   rw,auto,exec,noatime    0 0

if you wanted the partition to be automatically mounted every time you boot your machine.

Note: In the /etc/fstab entry the quotes " are not used.

If you wanted to mount the partition as your normal user, at will, only when you need it, the line would be

LABEL=/WD-Storage   /mnt/storage   ext3   rw,user,noauto,exec,noatime    0 0
Old-Polack

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



Lest we forget...

Offline Hondo

  • Full Member
  • ***
  • Posts: 186
  • What if it is a Samsquamch?
    • KLRWorld.com
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #55 on: February 11, 2012, 07:22:49 AM »
Thanks for the help O-P, but I'm a bit confused and having problems with my partitions (permissions).

Could you please give me a bit more guidance?

Here is the blkid output again-

/dev/sda2: LABEL="/swap" UUID="2ef4bf39-2a9f-4705-9dde-4b63e0bee12e" TYPE="swap"
/dev/sdc1: LABEL="StorageDrive" UUID="9748580c-b70e-4b96-94b3-6b6873a6ef4c" TYPE="ext4"
/dev/sda1: LABEL="/" UUID="e4c78aa0-44ca-4184-a8e6-3c6f25507570" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb1: LABEL="/home" UUID="312f0be9-5d2f-4e43-b7f2-cfd850bc63e3" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb5: LABEL="Backup" UUID="218599d0-589d-4d5a-acee-10a28cf02d07" TYPE="ext3"


the fstab file -

# Entry for /dev/sda1 :
UUID=e4c78aa0-44ca-4184-a8e6-3c6f25507570 / ext3 defaults 1 1
# Entry for /dev/sdc1 :
UUID=9748580c-b70e-4b96-94b3-6b6873a6ef4c /StorageDrive ext4 defaults 1 2
# Entry for /dev/sdb5 :
UUID=218599d0-589d-4d5a-acee-10a28cf02d07 /backup ext3 acl,relatime 1 2
none /dev/pts devpts defaults 0 0
# Entry for /dev/sdb1
UUID=312f0be9-5d2f-4e43-b7f2-cfd850bc63e3 /home ext3 defaults 1 2
/dev/sr0 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
# Entry for /dev/sda2 :
UUID=2ef4bf39-2a9f-4705-9dde-4b63e0bee12e swap swap defaults 0 0


I would like all of the partitions to be fully accessible/full permissions to my normal user (hondo) all of the time and still don't understand what I need to do.

Thanks -

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11689
  • ----IOFLU----
Re: *** SOLVED *** /home not recognized after hardware change
« Reply #56 on: February 11, 2012, 07:42:28 AM »
Thanks for the help O-P, but I'm a bit confused and having problems with my partitions (permissions).

Could you please give me a bit more guidance?

Here is the blkid output again-

/dev/sda2: LABEL="/swap" UUID="2ef4bf39-2a9f-4705-9dde-4b63e0bee12e" TYPE="swap"
/dev/sdc1: LABEL="StorageDrive" UUID="9748580c-b70e-4b96-94b3-6b6873a6ef4c" TYPE="ext4"
/dev/sda1: LABEL="/" UUID="e4c78aa0-44ca-4184-a8e6-3c6f25507570" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb1: LABEL="/home" UUID="312f0be9-5d2f-4e43-b7f2-cfd850bc63e3" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb5: LABEL="Backup" UUID="218599d0-589d-4d5a-acee-10a28cf02d07" TYPE="ext3"


the fstab file -

# Entry for /dev/sda1 :
UUID=e4c78aa0-44ca-4184-a8e6-3c6f25507570 / ext3 defaults 1 1
# Entry for /dev/sdc1 :
UUID=9748580c-b70e-4b96-94b3-6b6873a6ef4c /StorageDrive ext4 defaults 1 2
# Entry for /dev/sdb5 :
UUID=218599d0-589d-4d5a-acee-10a28cf02d07 /backup ext3 acl,relatime 1 2
none /dev/pts devpts defaults 0 0
# Entry for /dev/sdb1
UUID=312f0be9-5d2f-4e43-b7f2-cfd850bc63e3 /home ext3 defaults 1 2
/dev/sr0 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
# Entry for /dev/sda2 :
UUID=2ef4bf39-2a9f-4705-9dde-4b63e0bee12e swap swap defaults 0 0


I would like all of the partitions to be fully accessible/full permissions to my normal user (hondo) all of the time and still don't understand what I need to do.

Thanks -

The / partition permissions should not be changed... only root should have free access there. The partitions mounted on /StorageDrive and /backup can have their ownership given to your normal user with the following commands, while the partitions are mounted.

[root@localhost ~]# chown -R hondo:hondo /StorageDrive                <Enter>

[root@localhost ~]# chown -R hondo:hondo /backup                <Enter>
Old-Polack

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



Lest we forget...

Offline Hondo

  • Full Member
  • ***
  • Posts: 186
  • What if it is a Samsquamch?
    • KLRWorld.com
Re: /home not recognized after hardware change
« Reply #57 on: February 11, 2012, 08:14:43 PM »
Ok, I entered both commands in a terminal logged in as root (SU) and I still can't paste new files folders into those drives when logged in as my normal user.

I made sure that the drives/partitions were mounted too.

What am I doing wrong?  ???

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11689
  • ----IOFLU----
Re: /home not recognized after hardware change
« Reply #58 on: February 11, 2012, 09:18:57 PM »
Ok, I entered both commands in a terminal logged in as root (SU) and I still can't paste new files folders into those drives when logged in as my normal user.

I made sure that the drives/partitions were mounted too.

What am I doing wrong?  ???

You're telling me a story about what you think you've done, but not showing the exact details of what you actually did. Try doing it again, but this time copy/paste the prompt, command, and output of the command, into your next reply, so we can see exactly what you see.

Old-Polack

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



Lest we forget...

Offline Hondo

  • Full Member
  • ***
  • Posts: 186
  • What if it is a Samsquamch?
    • KLRWorld.com
Re: /home not recognized after hardware change
« Reply #59 on: February 11, 2012, 09:50:29 PM »
This is copied from Konsole -

Code: [Select]
[hondo@localhost ~]$ su
Password:
[root@localhost ~]# chown -R hondo:hondo /StorageDrive
[root@localhost ~]# chown -R hondo:hondo /backup
[root@localhost ~]#