USB HDD(ext4 filesystem) unable to mount

Moderator: Lillian.W@AST

Post Reply
phi
Posts: 2
youtube meble na wymiar Warszawa
Joined: Thu Oct 06, 2022 12:27 pm

USB HDD(ext4 filesystem) unable to mount

Post by phi »

i'm kind of frustrated at this point have been working on this for over a week.
background on issue:
have a 2 bay nas, both hdd are set as single. using ADM 3.5.9.RWM1.
bay 1 drive (volume 1) drive started failing, so i got a replacement drive.

i plugged in the new drive no issue.
i connected the old drive via usb it only mount the first partition , the other partitions remain unmounted.
so i connected the old drive via usb(using USB to SATA device) to my linux box. and i could mount and read all the partitions.

things i tried
1. plug the old drive into bay 2. new drive is in bay 1.
the drive is detected but cannot be mounted. there are 4 partitions. ext2 and linux raid for other 3.

2. transferred the files to another drive and connected it via USB and it cannot mount.
so i read the help file by ASUSTOR, and the USB connection seems to only support some filesystems. so i go another drive cleared it formatted it to ext4 in linux.
spent a few days to transfer the data off the old drive to the tmp drive. plugged the tmp drive into the nas USB port and it does not mount.
the partition is showing up but cannot mount. i plug the drive back to my linux box and it reads the drive fine.

3. i formatted the tmp drive in the NAS, and plug the tmp drive into linux box checked the partition and it looks the same.
i cannot figure out where i went wrong.

right now my options are
1.transfering the files over the network. (extremely slow)
2.transfer the files to the 'tmp' drive that has been formatted using the NAS and hope it works.
3. change to a new NAS brand (looking for a 4 bay anyway but costly)
4. old drive connect via USB and some how get the NAS to mount the partition.

i'm hopping someone can point out what i did wrong or what i'm missing.
thanks in advance.
User avatar
orion
Posts: 3482
Joined: Wed May 29, 2013 11:09 am

Re: USB HDD(ext4 filesystem) unable to mount

Post by orion »

You can use ssh to login NAS and execute command: 'mdadm' to create md device. Then you should be able to mount 'the old drive' (inserted to a USB port).

Code: Select all

mdadm --assemble [md device] [block devices]
Example

Code: Select all

sudo mdadm --assemble /dev/md3 /dev/sde4
sudo mount /dev/md3 /mnt/tmp
phi
Posts: 2
Joined: Thu Oct 06, 2022 12:27 pm

Re: USB HDD(ext4 filesystem) unable to mount

Post by phi »

OMG you are awesome!!!.
Thanks so much for the quick reply.

man i'm sooo stupid previously when i SSH in i tried to mount the usbdev.
never occured to me to look at the /dev/sd*

so for those who find this topic here is a more detailed process.
1. using a USB to sata device attach the HDD to the USB port of the NAS.
2. in the ADM, services -> enable the SSH.
3. you'll need a software to connect to ssh, i'm using putty
you can also use the ADM to install shell that can be accessed via browser. but i didint use that.
4. connect ssh

Code: Select all

ssh login_id@nas_ip_address
5. verify the device,

Code: Select all

ls /dev/sd*
for me ,i have 2 physical devices . those are normally labeled in order.
eg /dev/sda1 /dev/sda2 /dev/sdb1
the number represents the partitions.
the alphabet after the 'sd' is the device. on my nas "a, b" was assigned to the devices in the bay.
so my USB device was detected as /dev/sdc. and since the partition where the data is on is 4, the device is /dev/sdc4

6. make the md device. you can check the /dev folder to see which number not in use.

Code: Select all

sudo mdadm --assemble /dev/md3 /dev/sdc4
7. make a folder to mount.

Code: Select all

sudo mkdir /mnt/tmp
8. mount the device

Code: Select all

sudo mount /dev/m3 /mnt/tmp
9.verify that you did it correctly.
go to /mnt/tmp. do a 'ls' to check that your files are there.
10. copy the files out.
Post Reply

Return to “[Official] For AS-20X Series”