LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-17-2018, 10:56 AM   #16
headturner
LQ Newbie
 
Registered: Dec 2002
Location: Where the Columbia River is joined by the Yakima and the Snake
Distribution: Mint, Suse,
Posts: 25

Original Poster
Rep: Reputation: 2

Greetings: The original Mint setup was two 1.4 TB drives set up as /dev/sda and /dev/sdb at the time of install of the stand alone (no dual booting) Mint OS. The only things on the former /dev/sdb was what ever Mint put on it at the time of Install last year. It was in the machine because I had it, and it seamed a safer place to keep it in the computer than in a drawer in my desk.

The system you see is a new 931 gb drive with the new system loaded with mint, the 1.4 TB drive WAS the /dev/sda drive that is still good. The bad drive is out of the system entirely.
I think I mentined in the OP that I had removed both original drives, installed 1 new drive, set up Mint on that, and then put the still viable former /dev/sda back in as /dev/sdb that I wish to use.
 
Old 03-17-2018, 12:55 PM   #17
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,486

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
You originally were asking how to access and rescue data from the drive which was going bad. Your last post indicates that you installed a new Mint OS on a new drive and have the older working drive attached and you no longer have the old failing drive attached. I'm not sure what the question/problem is now?
 
1 members found this post helpful.
Old 03-17-2018, 01:44 PM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i can only refer back to my previous post #9.
on a hunch, i don't think the data is lost at all, op just doesn't know how to access it.
 
1 members found this post helpful.
Old 03-17-2018, 01:51 PM   #19
headturner
LQ Newbie
 
Registered: Dec 2002
Location: Where the Columbia River is joined by the Yakima and the Snake
Distribution: Mint, Suse,
Posts: 25

Original Poster
Rep: Reputation: 2
Greetings yancek: Please read the OP in full. I was not asking for ANY help with the BAD drive. I was asking for help recovering the stuff from the good drive which failed to boot after the bad one was removed. I installed a new copy of Mint from my original dvd on a seperate drive, then put the GOOD drive back in as a second to the new drive.
I can see the folders but have not found a way to access the actual information.
 
Old 03-17-2018, 02:01 PM   #20
headturner
LQ Newbie
 
Registered: Dec 2002
Location: Where the Columbia River is joined by the Yakima and the Snake
Distribution: Mint, Suse,
Posts: 25

Original Poster
Rep: Reputation: 2
In response to post #9
Quote:
michael@michael-Precision-WorkStation-R5400 ~ $ cd mnt; ls -al
total 25222
drwxr-xr-x 7 root root 1024 Mar 14 13:12 .
drwxr-xr-x 24 michael michael 4096 Mar 17 11:57 ..
-rw-r--r-- 1 root root 512 Apr 28 2017 backup_mbr
lrwxrwxrwx 1 root root 1 Oct 27 2014 boot -> .
-rw-r--r-- 1 root root 1484 Oct 21 2014 boot.readme
drwxr-xr-x 5 root root 1024 Mar 14 13:12 boot-sav
-rw-r--r-- 1 root root 148204 Oct 21 2014 config-3.16.6-2-desktop
-rw-r--r-- 1 root root 0 Oct 27 2014 do_purge_kernels
drwxr-xr-x 2 root root 1024 Oct 21 2014 dracut
drwxr-xr-x 5 root root 1024 Mar 13 20:50 grub
drwxr-xr-x 7 root root 1024 Apr 28 2017 grub2
lrwxrwxrwx 1 root root 23 Oct 27 2014 initrd -> initrd-3.16.6-2-desktop
-rw------- 1 root root 9374780 Apr 28 2017 initrd-3.16.6-2-desktop
drwx------ 2 root root 12288 Apr 28 2017 lost+found
-rw-r--r-- 1 root root 194992 Sep 25 2014 memtest.bin
-rw-r--r-- 1 root root 424448 Oct 27 2014 message
-rw-r--r-- 1 root root 309455 Oct 22 2014 symvers-3.16.6-2-desktop.gz
-rw-r--r-- 1 root root 516 Oct 22 2014 sysctl.conf-3.16.6-2-desktop
-rw-r--r-- 1 root root 3001645 Oct 21 2014 System.map-3.16.6-2-desktop
-rw-r--r-- 1 root root 6662593 Oct 22 2014 vmlinux-3.16.6-2-desktop.gz
lrwxrwxrwx 1 root root 24 Oct 27 2014 vmlinuz -> vmlinuz-3.16.6-2-desktop
-rw-r--r-- 1 root root 5679784 Oct 22 2014 vmlinuz-3.16.6-2-desktop
-rw-r--r-- 1 root root 65 Oct 22 2014 .vmlinuz-3.16.6-2-desktop.hmac
michael@michael-Precision-WorkStation-R5400 ~/mnt $

 
Old 03-17-2018, 02:31 PM   #21
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ what i thought, the files are all root owned.
you have, however, read permissions, so you can copy them to somewhere else.
if you want to modify them in place, you'll need elevated privileges (su, sudo etc.).
 
1 members found this post helpful.
Old 03-17-2018, 05:25 PM   #22
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,486

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
Your output in post #20 shows what appears to be a separate boot partition. Don't know why you would want to save that. From the post #12 output, your largest partition (1.3TB) is sdb3 which I expect is your /home or data partition and would contain the files you want. Try mounting sdb3 from your new Mint and take a look to see if the files are there. Generally, you need root privileges to copy TO a partition but not FROM that partition.

If you have problems accessing, post any commands you run and their output.
 
1 members found this post helpful.
Old 03-17-2018, 07:55 PM   #23
Steve R.
Member
 
Registered: Jun 2009
Location: Morehead City, NC
Distribution: Mint 20.3
Posts: 521

Rep: Reputation: 98
Quote:
Originally Posted by headturner View Post
After that I removed both drives, installed a new drive, installed Mint from the same DVD again.
When that was up and running I put the former /dev/sda in the machine as /dev/sdb.
Now said drive is recognized by the new copy of the OS but will not allow me to do anything but look at the folders.
I'm a bit late to this topic. I would like to focus on what you wrote above.
  1. Do you mount /dev/sdb with read/write privileges?
  2. Inspect, at random, some files on /dev/sdb to examine the owner and privileges. You many need to issue a recursive chown command to match your user id and group to that on the new /dev/sda.
  3. Have you inspected /dev/sdb (unmounted) with gparted to verify that there is no bootable partition?
  4. Do you only have user data files on /dev/sdb. No system files and no system directories?
 
1 members found this post helpful.
Old 03-17-2018, 09:29 PM   #24
headturner
LQ Newbie
 
Registered: Dec 2002
Location: Where the Columbia River is joined by the Yakima and the Snake
Distribution: Mint, Suse,
Posts: 25

Original Poster
Rep: Reputation: 2
Greetings Steve R.: While I have been on this board for a long time most of that time has been lurking. I finally got serious about switching over from the Dark Side (Windows) about a year ago, and because Mint seamed to be working so well for me I am coming to understand how out of touch I am with the inner workings of Linux.
To you questions

#1 Not sure how to go there.

#2 You Lost me at the Bakery!

#3 What I have seen is a partition that is marked as boot on a drive that will not boot on its own.

#4 The Quote from my post I think answers that "I put the former /dev/sda in the machine as /dev/sdb." Yes I am confident there are some system files and directory's on that drive.
 
Old 03-17-2018, 09:38 PM   #25
headturner
LQ Newbie
 
Registered: Dec 2002
Location: Where the Columbia River is joined by the Yakima and the Snake
Distribution: Mint, Suse,
Posts: 25

Original Poster
Rep: Reputation: 2
I also alluded to the fact that I have been making my living working on Mechanical devices and therefor computers, Operating systems, etc, have been an on again / off again diversion for me.
I truly admire people who can maneuver around with a long list of Command line stuff on the top of their heads, I'm just not there yet.

Thanks..
Michael
 
Old 03-18-2018, 01:21 AM   #26
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by headturner View Post
I also alluded to the fact that I have been making my living working on Mechanical devices and therefor computers, Operating systems, etc, have been an on again / off again diversion for me.
I truly admire people who can maneuver around with a long list of Command line stuff on the top of their heads, I'm just not there yet.
it really isn't that hard, i suggest you get going and acquire just a little bit of command line fu.

it seems to me that you have a really simple problem, a misunderstanding even, about where your files are and how to get to them, that could be solved with the simplest commands.

my suggestion would be to leave the GUI for this one, and do everything via terminal.
once you rescued your files, we'll find a solution to use that internal hard drive "normally".
 
1 members found this post helpful.
Old 03-18-2018, 08:01 AM   #27
Steve R.
Member
 
Registered: Jun 2009
Location: Morehead City, NC
Distribution: Mint 20.3
Posts: 521

Rep: Reputation: 98
Lets look at another approach based on the /dev/sda disk being fully functional, but missing some of you user data files.
  1. How much free space is on your /dev/sda disk?
  2. How much space is used by your user data files on the /dev/sdb disk?
  3. If you add the free space on the /dev/sda disk to the space used by your data files on /dev/sdb disk, would there still be free space available on your /dev/sda disk? Should adding these amounts exceed the capacity of the /dev/sda disk, this proposed approach will not work.
  4. Are all your user data files on the /dev/sdb disk under one directory? (They don't have to be, but it would be a lot easier.)

The reason for asking these questions is that there is a potential that you could copy all your data files to the /dev/sda disk. If that is the case, all your user files (NOT any system files) can be copied and your /dev/sdb disk would become redundant and could be eventually re-formatted at a later date. Obviously do not do anything to the /dev/sdb disk until you are satisfied that the /dev/sda disk is fully operational.

Assuming that you can copy all the user data files to /dev/sda disk, you may still need to use the recursive chown command. That can be discussed later, if needed.

Last edited by Steve R.; 03-18-2018 at 08:08 AM.
 
1 members found this post helpful.
Old 03-18-2018, 08:14 AM   #28
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,486

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
Quote:
/dev/sdb3 xfs 1.4T 37M 1.4T 1% /media/michael/485bfd93-4368-4863-8ed4-ad6c64f5b646
/dev/sdb2 btrfs 41G 3.5G 35G 10% /media/michael/148c0eb9-e311-4904-bf25-842de0343b6a
/dev/sdb1 ext4 379M 38M 317M 11% /media/michael/806dfa0b-410b-4d6c-8a91-d942ec190735
The above output from your post #6 shows what is your former sda drive which is now shown as sdb. If that is the drive from which you want to copy data FROM, you should be able to access any of the partitions from the new Mint by simply navigating to that directory. Although sdb3 is by far the largest partition, it and sdb1 have very little data on them as you can see (sdb1=38M; sdb3=37M). sdb1 appears to be a boot partition and sdb2 has 3.5GB of data on it. Navigate to "/media/michael/148c0eb9-e311-4904-bf25-842de0343b6a" in your file manager and you should be able to see the files you want.

Since the partition is accessible at that location, you should not need to mount again nor need write permissions as you simply want to copy data FROM that partition.

I'm not sure if that is all you want, are you hoping to be able to boot what is currently sdb since it appears to have the former OS on it, at least it has a boot partition. I see you tried running sudo update-grub earlier to try to get sdb included in the boot menu. Try running: sudo update-grub again from the newly installed Mint with sdb attached and watch the output.

Quote:
Now said drive is recognized by the new copy of the OS but will not allow me to do anything but look at the folders.
The above quote is from your initial post. How are you trying to access these file and what happens when you try to copy them from that location.

Last edited by yancek; 03-18-2018 at 08:21 AM.
 
1 members found this post helpful.
Old 03-21-2018, 06:58 PM   #29
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Is this issue still alive ?. If so, let's see the following output (use [code] tags, not [quote])
Have you done anything since creating this new system that you want to keep ?. Like bookmarks, passwords, new photos, that sort of thing ?. I'm thinking that large XFS filesystem on the old disk is going to be your old /home, and will have all your old data intact. We could just mount that, and carry on.
One proviso - did you create the same user when you built the latest system ?.
Code:
ls /media/michael/485bfd93-4368-4863-8ed4-ad6c64f5b646
ls /media/michael/148c0eb9-e311-4904-bf25-842de0343b6a
ls /home/$USER
Then again, maybe not - just noticed the usage. Try this command as well
Code:
du -h -d 1 /media/michael/148c0eb9-e311-4904-bf25-842de0343b6a/home

Last edited by syg00; 03-21-2018 at 07:17 PM. Reason: Then again ...
 
1 members found this post helpful.
Old 03-22-2018, 11:37 PM   #30
headturner
LQ Newbie
 
Registered: Dec 2002
Location: Where the Columbia River is joined by the Yakima and the Snake
Distribution: Mint, Suse,
Posts: 25

Original Poster
Rep: Reputation: 2
Greetings All: Thanks for all of the input! I found a way to copy what I want from the 1.5 t drive to the 1 t drive that is now my /dev/sda. In other words Problem solved!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sda drive to sdb, so new hdd can become sda? irgunII Slackware 5 03-07-2014 08:38 AM
[SOLVED] Grub: If exists sdb, then boot sdb, else sda defaultyeti Linux - Desktop 6 06-28-2011 02:38 AM
Error: /dev/sda: unrecognised disk label. >>Want to rescue data, but cannot mount it. hector3rd Linux - Hardware 6 08-20-2010 01:26 PM
[SOLVED] Install grub for a filesystem on sdb from a rescue system on sda simonb Linux - General 4 08-27-2009 11:39 PM
sda or sdb? stevest SUSE / openSUSE 7 12-18-2007 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration