How do I find the home directory from another installation on a HDD?
Clash 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.
debian mount raspberry-pi raspbian home
add a comment |Â
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.
debian mount raspberry-pi raspbian home
2
Issdb2
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 choosesdb2
? Could they be insdb1
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 infdisk -l
. Are those folders supposed to be hidden?
â Niclas
Sep 7 '17 at 14:50
add a comment |Â
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.
debian mount raspberry-pi raspbian home
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
debian mount raspberry-pi raspbian home
edited 7 mins ago
Rui F Ribeiro
37.3k1374118
37.3k1374118
asked Sep 7 '17 at 14:30
Niclas
1011
1011
2
Issdb2
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 choosesdb2
? Could they be insdb1
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 infdisk -l
. Are those folders supposed to be hidden?
â Niclas
Sep 7 '17 at 14:50
add a comment |Â
2
Issdb2
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 choosesdb2
? Could they be insdb1
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 infdisk -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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 insdb1
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