Author Topic: [SOLVED] Borked a partition on second drive  (Read 291 times)

Offline Trio3b

  • Sr. Member
  • ****
  • Posts: 365
[SOLVED] Borked a partition on second drive
« on: March 08, 2013, 11:58:40 PM »
The following partitions/data were probably from a couple years back when I was experimenting around, but have too much stuff spread out over too many devices so trying to start consolidating/organizing.

PC #1 - pclos 2012 KDE on a custom whitebox. 80 gb HD (sda) in master position setup as  /, swap, /home (sda1,swap, sda5) respectively
PC #2 - pclos 2009.1 KDE 3.5.x on another custom whitebox. new WD 320gb in master position setup as  /,swap, /home, /?, /repos  (sdb1 (pclos), sdb7 (/home), sdb8 ( I have no idea why I created it but it does have some personal files on it),  sdb6 (repos) respectively

Pulled 320gb HD from PC#2 and put into slave position in PC #1 to use as a temp backup and of course this drive is now seen as sdb ( sdb7 is about 250 gb free space).  The 4 partitions of 320gb HD were mounted by PC#1 under /media as disk, disk-1, disk-2, disk-3

PC #2 is no longer.

Have decided I don't need 320gb drive as backup in PC#1 running all the time so pulled it and connected it via USB to daily driver laptop logged in as user01 and it showed up in Dolphin as disk, disk-1, disk-2, disk-3,  all read only.

 I just needed stuff off  sdb7 (disk-3)  and noticed it was owned by root although the subdirectories were owned by user01 ( I have several PC/laptops and of course use the same username). Could not transfer these files from 320 drive to lappy so I thought if I:
 chown -R user01:user01 disk-3  all would be well, but even as root, console returned that this was all read only.

So returned 320gb drive to PC#1 in slave position and all partitions EXCEPT the one I tinkered ( sdb7) with are visible in Dolphin and/or console.

 Accessing sdb from PCC disk management when 320gb drive is installed in PC#1 shows sdb7 and am able to mount and view contents but only in the PCC partition viewer. sdb7 no longer visible in either Dolphin or mountable via console in PC#1. error is "can't find  /dev/sdb7 in /etc/fstab or /etc/mtab" . These partitions never were listed in fstab before.


What did I screw up and how to get access to data on partition sdb7?

Thanks


« Last Edit: March 19, 2013, 05:37:34 PM by Trio3b »

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Borked a partition on second drive
« Reply #1 on: March 09, 2013, 12:40:33 AM »
The following partitions/data were probably from a couple years back when I was experimenting around, but have too much stuff spread out over too many devices so trying to start consolidating/organizing.

PC #1 - pclos 2012 KDE on a custom whitebox. 80 gb HD (sda) in master position setup as  /, swap, /home (sda1,swap, sda5) respectively
PC #2 - pclos 2009.1 KDE 3.5.x on another custom whitebox. new WD 320gb in master position setup as  /,swap, /home, /?, /repos  (sdb1 (pclos), sdb7 (/home), sdb8 ( I have no idea why I created it but it does have some personal files on it),  sdb6 (repos) respectively

Pulled 320gb HD from PC#2 and put into slave position in PC #1 to use as a temp backup and of course this drive is now seen as sdb ( sdb7 is about 250 gb free space).  The 4 partitions of 320gb HD were mounted by PC#1 under /media as disk, disk-1, disk-2, disk-3

PC #2 is no longer.

Have decided I don't need 320gb drive as backup in PC#1 running all the time so pulled it and connected it via USB to daily driver laptop logged in as user01 and it showed up in Dolphin as disk, disk-1, disk-2, disk-3,  all read only.

 I just needed stuff off  sdb7 (disk-3)  and noticed it was owned by root although the subdirectories were owned by user01 ( I have several PC/laptops and of course use the same username). Could not transfer these files from 320 drive to lappy so I thought if I:
 chown -R user01:user01 disk-3  all would be well, but even as root, console returned that this was all read only.

So returned 320gb drive to PC#1 in slave position and all partitions EXCEPT the one I tinkered ( sdb7) with are visible in Dolphin and/or console.

 Accessing sdb from PCC disk management when 320gb drive is installed in PC#1 shows sdb7 and am able to mount and view contents but only in the PCC partition viewer. sdb7 no longer visible in either Dolphin or mountable via console in PC#1. error is "can't find  /dev/sdb7 in /etc/fstab or /etc/mtab" . These partitions never were listed in fstab before.


What did I screw up and how to get access to data on partition sdb7?

Thanks




What filesystem is used on the problem partition?
Old-Polack

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



Lest we forget...

Offline Trio3b

  • Sr. Member
  • ****
  • Posts: 365
Re: Borked a partition on second drive
« Reply #2 on: March 09, 2013, 09:19:03 AM »
Ext 3. 


Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Borked a partition on second drive
« Reply #3 on: March 09, 2013, 09:31:42 AM »
In a terminal, as root;

[root@localhost ~]# mkdir /mnt/here                      <Enter>

[root@localhost ~]# mount -t ext3 /dev/sdb7 /mnt/here                       <Enter>

If you get returned to the prompt, without error messages, the partition should be mounted at /mnt/here, and you should be able to access it with Dolphin.

If you get an error message, post it exactly as you see it. (copy/paste)
Old-Polack

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



Lest we forget...

Offline Trio3b

  • Sr. Member
  • ****
  • Posts: 365
Re: Borked a partition on second drive
« Reply #4 on: March 12, 2013, 01:57:47 PM »
That did it! Wonder what I did when trying to chown that caused this?

All seems back to normal.

Thanks

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Borked a partition on second drive
« Reply #5 on: March 12, 2013, 06:32:55 PM »
That did it! Wonder what I did when trying to chown that caused this?

All seems back to normal.

Thanks

Are you now able to write to the partition; ie add files and create new directories as your normal user?
Old-Polack

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



Lest we forget...

Offline Trio3b

  • Sr. Member
  • ****
  • Posts: 365
Re: Borked a partition on second drive
« Reply #6 on: March 19, 2013, 05:37:04 PM »
Are you now able to write to the partition; ie add files and create new directories as your normal user?

Sorry O-P . Out of town. Yes.Am able to mount, create dirs and write files as normal user although I seem to remember the disk used to show up automatically in the "places" panel. Now it seems I need to right click in the places panel and select "show entries" and the disk shows up. Since I am not completely positive about this behavior I will assume all is well and marked solved.


 As a general rule when I format an ext drive via PCC it assigns root ownership to the "disk" but then I create backup dirs (as root)  for each user and then assign individual ownership and 755 permissions for each member's directory. I must have done something unexpected.
« Last Edit: March 19, 2013, 05:48:01 PM by Trio3b »