What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Keep sda1 as sda1?

jsmiddleton4

Very Senior Member
Some times for a reason that I have yet to figure out my external USB EXT3 formatted labeled/named hard drive will change its assignment from sda1 to sdc1. I have microSD card installed. Interestingly it never seems to change assigned mount.

Spin down exception is clicked.

Reboot resets it back to sda1. I have mapped links to the ext drive which of course suddenly stop working.

Is there a way to keep the sda1 fixed?

I did some searching and I'm not trying to do anything fancy, not saving VPN anything to stuff, etc. Just using an external storage device.
 
Is it an externally powered USB drive? Is it losing power intermittently (loose cable)?

Is the drive healthy? Can you use an external power source on it (if not already)?
 
RMerlin recommends that (where possible) assign the SDCARD with a label
Look here, this might help. My linking is bad, still learning. Read the rest of the linked tread as well.
 
Last edited:
Drive is healthy. Powered from the USB port of the RT-N66U.

Drive works well, no "drive" issues noted.

Reboot gets it back to sda1.

Will look at linked info.

link: Thanks but everything is labeled and I'm not running any scripts addressing either device, memory card or USB drive.
 
Have you tried the other USB port then?

I'm still leaning towards the self powered drive enclosure is the issue/problem.
 
When swapped initially drive goes to sdb1. Boot and its back to sda1.

Which I think is normal or expected.

I don't care what the router assigns to it, I just want it to stick. Frustrating when mapped drive links don't work because the assignment changes at the router.
 
i don't think the drive is failing or anything, this is just something that happens sometimes

you could try adding your drives to /etc/fstab

i'd take the lines pertaining to the drives from /etc/mtab and copy them into /jffs/configs/fstab with the UUID, like thus;

i'd pull this line from my /etc/mtab (my sdcard);
Code:
/dev/sda1 /tmp/mnt/sda1 ext3 rw,nodev,noatime,data=ordered 0 0
use the command blkid and you'll see output like thus;
Code:
/dev/sda2: UUID="fe04cbd1-a19e-4c1f-83e4-6648b5b2fe23"
/dev/sda1: UUID="84ad35fb-bdec-4b6d-a7b4-aa20282653cd"
/dev/sda: UUID="66c112f7-36be-4727-a01a-d96e4a42a8d7"
that's all just the sdcard. /dev/sda is the drive, sda1 is the first partition and in my case, sda2 is my swap partition. take the UUID from sda1, so the line that will go into fstab will look like thus;

Code:
UUID=84ad35fb-bdec-4b6d-a7b4-aa20282653cd /tmp/mnt/sda1 ext3 rw,nodev,noatime,data=ordered 0 0

i swapped /dev/sda1 for the UUID and stripped the quotes.

do the same thing for each drive and save fstab to /jffs/configs/fstab

[edit/]

crap, forgot, you probably need to create the mount points like thus;

Code:
#!/bin/sh
mkdir /mnt/sda1
mkdir /mnt/sdb1

save to /jffs/scripts/init-start

chmod a+rx /jffs/scripts/*
 
Last edited:
This is what I get. My USB drive is EXT3. I thought it was labeled. Coulda sworn I labeled it. Will be checking again....

/dev/sdb1: LABEL="SDHC CARD" UUID="D6E7-B525"
/dev/sda1: UUID="28df0776-775f-ce01-204d-0776775fce01"

Just checked and the drive is labeled, Download_Drive.
 
Last edited:
NOW the label stuck. Must've had too many characters or something.

/dev/sdb1: LABEL="SDHC CARD" UUID="D6E7-B525"
/dev/sda1: LABEL="Archives" UUID="28df0776-775f-ce01-204d-0776775fce01"
 
I'm pretty sure RMerlin mentioned somewhere that spaces in drive labels are a no no; you may want to change the SDHC card's name too to prevent possible future headaches with that storage device.
 
Interestingly there aren't any spaces in the name, wasn't in the name for the USB drive that didn't "stick" either. The SD Card is named sdhc_card. I'll attach a graphic of the drive listings.

It shows up upper case and with a space when looking at it via the Asus.
 

Attachments

  • Capture.JPG
    Capture.JPG
    12.2 KB · Views: 341
Same problem

Similar problem, only the partition with minidlna databse after reset sometimes duplicates Media(1) and Media.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top