Re: Odd FFS behavior

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: OpenBSD <misc@...>
Date: Thursday, October 25, 2007 - 3:52 am

Hi,

On 22/10/2007, Edd Barrett wrote:

I know what has happened?

---8<---
# ls
a_fragile_hope darkness_prevails
# ls /mnt/usb
palm volume.nam
# cp -R a_fragile_hope /mnt/usb
cp: /mnt/usb/a_fragile_hope/the_coroner.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/as_the_storm_unfolds.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/dawn_of_the_first_day.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/awaiting_the_flood.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/between_two_words.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/sirens_chant.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/hope.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/in_the_absence_of_light.ogg: No such file
or directo
ry
cp: /mnt/usb/a_fragile_hope/in_absense_of_light.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/the_starting.ogg: No such file or directory
cp: /mnt/usb/a_fragile_hope/at_the_end_of_the_tunnel.ogg: No such file
or direct
ory
# ls /mnt/usb
a_frag~1 palm volume.nam
---8<---

The directory made has been truncated msdos style. "a_frag~1".
Therefore when cp tries to copy files into the new directory, it can't
find the new filename.

The workaround is to do something like this, with a shorter filename
---8<---
# cp -R a_fragile_hope /mnt/usb/a
---8<---

--
Best Regards

Edd

---------------------------------------------------
http://students.dec.bournemouth.ac.uk/ebarrett

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Odd FFS behavior, Edd Barrett, (Mon Oct 22, 3:45 am)
Re: Odd FFS behavior, Edd Barrett, (Thu Oct 25, 3:52 am)
Re: Odd FFS behavior, Lars Hansson, (Thu Oct 25, 6:30 am)
Re: Odd FFS behavior, Edd Barrett, (Thu Oct 25, 8:06 am)
Odd msdos fs behaviour [was: Re: Odd FFS behavior], David Vasek, (Thu Oct 25, 4:57 am)
Re: Odd FFS behavior , Aaron W. Hsu, (Mon Oct 22, 12:49 pm)
Re: Odd FFS behavior, Otto Moerbeek, (Mon Oct 22, 4:14 am)
Re: Odd FFS behavior, Edd Barrett, (Mon Oct 22, 5:14 am)
Re: Odd FFS behavior, Otto Moerbeek, (Mon Oct 22, 5:46 am)
Re: Odd FFS behavior, David Vasek, (Mon Oct 22, 6:26 am)
Re: Odd FFS behavior, Denise H. G., (Mon Oct 22, 6:47 am)