How do I find the home directory from another installation on a HDD?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I first installed a Raspberry Pi 3 with Raspbian GNU/Linux 7 (wheezy) through Berryboot on a HDD. I made some scripts in the /home/pi folder.



Now I reinstalled Raspbian on a USB stick instead, but I want to read and copy the files in /home/pi when the other disk is connected, but I can't find them. I tried mounting the disk:



sudo fdisk -l
mkdir /tmp/mount
mount /dev/sdb2 /tmp/mount



But when I list this directory, all I find is data images lost+found shared tmp.



So where are all the files that I usually see when I ls / like bin boot dev etc export home...?



At first I thought the might be on the SD card running the Pi, that I erased while reinstalled berryboot, but since I found my old home directory when I booted of the HDD, I think it seems to be hidden somewhere.



I didn't use encryption (that I know of), and I have passwords for both of the logins, even if the passwords are different.










share|improve this question



















  • 2




    Is sdb2 the correct partition to look at? Does the disk have other partitions?
    – Kusalananda
    Sep 7 '17 at 14:41







  • 1




    We can't really help without access to your device. The files are obviously somewhere else but we can't know where. Why did you choose sdb2? Could they be in sdb1 for instance? You say you found your old home directory when you booted off of the HDD. What HDD is that? And if you found it, isn't that the answer to your question?
    – terdon♦
    Sep 7 '17 at 14:41










  • If I boot with the HDD, sdb1 on the USB has some leftovers from what was on the USB stick before I installed it (on sdb2). If I boot from the USB, I can't mount sdb1. It says "wrong fs type, bad option, bad superblock on /dev/sdb1"
    – Niclas
    Sep 7 '17 at 14:45










  • When booting from either USB stick or HDD, I can find my home directory for that installation, but I can't find the home for the other device, that isn't currently used for booting, but is connected and shown in fdisk -l. Are those folders supposed to be hidden?
    – Niclas
    Sep 7 '17 at 14:50














up vote
0
down vote

favorite












I first installed a Raspberry Pi 3 with Raspbian GNU/Linux 7 (wheezy) through Berryboot on a HDD. I made some scripts in the /home/pi folder.



Now I reinstalled Raspbian on a USB stick instead, but I want to read and copy the files in /home/pi when the other disk is connected, but I can't find them. I tried mounting the disk:



sudo fdisk -l
mkdir /tmp/mount
mount /dev/sdb2 /tmp/mount



But when I list this directory, all I find is data images lost+found shared tmp.



So where are all the files that I usually see when I ls / like bin boot dev etc export home...?



At first I thought the might be on the SD card running the Pi, that I erased while reinstalled berryboot, but since I found my old home directory when I booted of the HDD, I think it seems to be hidden somewhere.



I didn't use encryption (that I know of), and I have passwords for both of the logins, even if the passwords are different.










share|improve this question



















  • 2




    Is sdb2 the correct partition to look at? Does the disk have other partitions?
    – Kusalananda
    Sep 7 '17 at 14:41







  • 1




    We can't really help without access to your device. The files are obviously somewhere else but we can't know where. Why did you choose sdb2? Could they be in sdb1 for instance? You say you found your old home directory when you booted off of the HDD. What HDD is that? And if you found it, isn't that the answer to your question?
    – terdon♦
    Sep 7 '17 at 14:41










  • If I boot with the HDD, sdb1 on the USB has some leftovers from what was on the USB stick before I installed it (on sdb2). If I boot from the USB, I can't mount sdb1. It says "wrong fs type, bad option, bad superblock on /dev/sdb1"
    – Niclas
    Sep 7 '17 at 14:45










  • When booting from either USB stick or HDD, I can find my home directory for that installation, but I can't find the home for the other device, that isn't currently used for booting, but is connected and shown in fdisk -l. Are those folders supposed to be hidden?
    – Niclas
    Sep 7 '17 at 14:50












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I first installed a Raspberry Pi 3 with Raspbian GNU/Linux 7 (wheezy) through Berryboot on a HDD. I made some scripts in the /home/pi folder.



Now I reinstalled Raspbian on a USB stick instead, but I want to read and copy the files in /home/pi when the other disk is connected, but I can't find them. I tried mounting the disk:



sudo fdisk -l
mkdir /tmp/mount
mount /dev/sdb2 /tmp/mount



But when I list this directory, all I find is data images lost+found shared tmp.



So where are all the files that I usually see when I ls / like bin boot dev etc export home...?



At first I thought the might be on the SD card running the Pi, that I erased while reinstalled berryboot, but since I found my old home directory when I booted of the HDD, I think it seems to be hidden somewhere.



I didn't use encryption (that I know of), and I have passwords for both of the logins, even if the passwords are different.










share|improve this question















I first installed a Raspberry Pi 3 with Raspbian GNU/Linux 7 (wheezy) through Berryboot on a HDD. I made some scripts in the /home/pi folder.



Now I reinstalled Raspbian on a USB stick instead, but I want to read and copy the files in /home/pi when the other disk is connected, but I can't find them. I tried mounting the disk:



sudo fdisk -l
mkdir /tmp/mount
mount /dev/sdb2 /tmp/mount



But when I list this directory, all I find is data images lost+found shared tmp.



So where are all the files that I usually see when I ls / like bin boot dev etc export home...?



At first I thought the might be on the SD card running the Pi, that I erased while reinstalled berryboot, but since I found my old home directory when I booted of the HDD, I think it seems to be hidden somewhere.



I didn't use encryption (that I know of), and I have passwords for both of the logins, even if the passwords are different.







debian mount raspberry-pi raspbian home






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 7 mins ago









Rui F Ribeiro

37.3k1374118




37.3k1374118










asked Sep 7 '17 at 14:30









Niclas

1011




1011







  • 2




    Is sdb2 the correct partition to look at? Does the disk have other partitions?
    – Kusalananda
    Sep 7 '17 at 14:41







  • 1




    We can't really help without access to your device. The files are obviously somewhere else but we can't know where. Why did you choose sdb2? Could they be in sdb1 for instance? You say you found your old home directory when you booted off of the HDD. What HDD is that? And if you found it, isn't that the answer to your question?
    – terdon♦
    Sep 7 '17 at 14:41










  • If I boot with the HDD, sdb1 on the USB has some leftovers from what was on the USB stick before I installed it (on sdb2). If I boot from the USB, I can't mount sdb1. It says "wrong fs type, bad option, bad superblock on /dev/sdb1"
    – Niclas
    Sep 7 '17 at 14:45










  • When booting from either USB stick or HDD, I can find my home directory for that installation, but I can't find the home for the other device, that isn't currently used for booting, but is connected and shown in fdisk -l. Are those folders supposed to be hidden?
    – Niclas
    Sep 7 '17 at 14:50












  • 2




    Is sdb2 the correct partition to look at? Does the disk have other partitions?
    – Kusalananda
    Sep 7 '17 at 14:41







  • 1




    We can't really help without access to your device. The files are obviously somewhere else but we can't know where. Why did you choose sdb2? Could they be in sdb1 for instance? You say you found your old home directory when you booted off of the HDD. What HDD is that? And if you found it, isn't that the answer to your question?
    – terdon♦
    Sep 7 '17 at 14:41










  • If I boot with the HDD, sdb1 on the USB has some leftovers from what was on the USB stick before I installed it (on sdb2). If I boot from the USB, I can't mount sdb1. It says "wrong fs type, bad option, bad superblock on /dev/sdb1"
    – Niclas
    Sep 7 '17 at 14:45










  • When booting from either USB stick or HDD, I can find my home directory for that installation, but I can't find the home for the other device, that isn't currently used for booting, but is connected and shown in fdisk -l. Are those folders supposed to be hidden?
    – Niclas
    Sep 7 '17 at 14:50







2




2




Is sdb2 the correct partition to look at? Does the disk have other partitions?
– Kusalananda
Sep 7 '17 at 14:41





Is sdb2 the correct partition to look at? Does the disk have other partitions?
– Kusalananda
Sep 7 '17 at 14:41





1




1




We can't really help without access to your device. The files are obviously somewhere else but we can't know where. Why did you choose sdb2? Could they be in sdb1 for instance? You say you found your old home directory when you booted off of the HDD. What HDD is that? And if you found it, isn't that the answer to your question?
– terdon♦
Sep 7 '17 at 14:41




We can't really help without access to your device. The files are obviously somewhere else but we can't know where. Why did you choose sdb2? Could they be in sdb1 for instance? You say you found your old home directory when you booted off of the HDD. What HDD is that? And if you found it, isn't that the answer to your question?
– terdon♦
Sep 7 '17 at 14:41












If I boot with the HDD, sdb1 on the USB has some leftovers from what was on the USB stick before I installed it (on sdb2). If I boot from the USB, I can't mount sdb1. It says "wrong fs type, bad option, bad superblock on /dev/sdb1"
– Niclas
Sep 7 '17 at 14:45




If I boot with the HDD, sdb1 on the USB has some leftovers from what was on the USB stick before I installed it (on sdb2). If I boot from the USB, I can't mount sdb1. It says "wrong fs type, bad option, bad superblock on /dev/sdb1"
– Niclas
Sep 7 '17 at 14:45












When booting from either USB stick or HDD, I can find my home directory for that installation, but I can't find the home for the other device, that isn't currently used for booting, but is connected and shown in fdisk -l. Are those folders supposed to be hidden?
– Niclas
Sep 7 '17 at 14:50




When booting from either USB stick or HDD, I can find my home directory for that installation, but I can't find the home for the other device, that isn't currently used for booting, but is connected and shown in fdisk -l. Are those folders supposed to be hidden?
– Niclas
Sep 7 '17 at 14:50















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f390963%2fhow-do-i-find-the-home-directory-from-another-installation-on-a-hdd%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f390963%2fhow-do-i-find-the-home-directory-from-another-installation-on-a-hdd%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?